* include/grub/ata.h (grub_ata): Add a new element maxbuffer.

* grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
	* grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
	* grub-core/disk/ahci.c (grub_ahci_open): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-01-29 19:00:30 +01:00
parent 74310bd8a7
commit 2b5336a24a
5 changed files with 16 additions and 2 deletions

View file

@ -484,6 +484,7 @@ grub_pata_open (int id, int devnum, struct grub_ata *ata)
ata->data = devfnd;
ata->dma = 0;
ata->maxbuffer = 256 * 512;
ata->present = &devfnd->present;
return GRUB_ERR_NONE;