From: Gerd Hoffmann Date: Thu, 9 Dec 2010 07:39:45 +0000 (+0100) Subject: ahci: set dma feature flag X-Git-Tag: rel-0.6.2~51 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c19fc71c7acac9d2b591469ee6f714b297db2d3c;p=seabios.git ahci: set dma feature flag Signed-off-by: Gerd Hoffmann --- diff --git a/src/ahci.c b/src/ahci.c index 6c3127a..ee50e8f 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); }