[SeaBIOS] [PATCH 1/4] ahci: set dma feature flag
Gerd Hoffmann
kraxel at redhat.com
Wed Dec 8 11:24:11 CET 2010
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
src/ahci.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ahci.c b/src/ahci.c
index ee404d4..ed37b38 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -50,6 +50,7 @@ static void sata_prep_readwrite(struct sata_cmd_fis *fis,
command = (iswrite ? ATA_CMD_WRITE_DMA
: ATA_CMD_READ_DMA);
}
+ SET_FLATPTR(fis->feature, 1); /* dma */
SET_FLATPTR(fis->command, command);
SET_FLATPTR(fis->sector_count, op->count);
SET_FLATPTR(fis->lba_low, lba);
@@ -62,6 +63,7 @@ static void sata_prep_atapi(struct sata_cmd_fis *fis, u16 blocksize)
{
memset_fl(fis, 0, sizeof(*fis));
SET_FLATPTR(fis->command, ATA_CMD_PACKET);
+ SET_FLATPTR(fis->feature, 1); /* dma */
SET_FLATPTR(fis->lba_mid, blocksize);
SET_FLATPTR(fis->lba_high, blocksize >> 8);
}
--
1.7.1
More information about the SeaBIOS
mailing list