Support ATA disks with 4K sectors.

* include/grub/ata.h (grub_ata): New member log_sector_size.
	* grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
	(grub_ata_identify): Read sector size.
	(grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-07-25 08:14:34 +02:00
parent 9222759765
commit 6795300e7f
3 changed files with 30 additions and 3 deletions

View file

@ -170,6 +170,7 @@ struct grub_ata
/* Sector count. */
grub_uint64_t size;
grub_uint32_t log_sector_size;
/* CHS maximums. */
grub_uint16_t cylinders;