projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80c2b6e
)
ahci: set dma feature flag
author
Gerd Hoffmann
<kraxel@redhat.com>
Thu, 9 Dec 2010 07:39:45 +0000
(08:39 +0100)
committer
Kevin O'Connor
<kevin@koconnor.net>
Sun, 12 Dec 2010 19:00:33 +0000
(14:00 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/ahci.c
patch
|
blob
|
history
diff --git
a/src/ahci.c
b/src/ahci.c
index 6c3127ae4c6421add41d784a0a9e4d07468f97b7..ee50e8fe88877ac31e6987161a846a03054cb543 100644
(file)
--- 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);
}