9
0
Fork 0
barebox/drivers/ata
Juergen Beisert 63690cc406 Don't try to guess the size of a disk if its size value is already given
Guessing the size of an attached harddisk (access via x86 BIOS) was needed
due to the fact, barebox can't query this information from the BIOS easily.

But with the SD/MMC cards, there will be a second user of the generic disk
handling routines. And with this media it is very easy to know its size.

This patch provides a workaround to keep the guessing feature if the size of
the registered disk is 0. If it is not 0, the given value will be used instead.

Note: This is in preparation to add MCI card support, which can be handled
like a disk drive.

Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-11 13:08:27 +02:00
..
Kconfig Add a low level disk drive access driver 2010-01-14 10:06:16 +01:00
Makefile Add a low level disk drive access driver 2010-01-14 10:06:16 +01:00
bios.c Add a low level disk drive access driver 2010-01-14 10:06:16 +01:00
disk_drive.c Don't try to guess the size of a disk if its size value is already given 2010-10-11 13:08:27 +02:00