summaryrefslogtreecommitdiff
path: root/include/linux/ata.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@redhat.com>2004-05-16 10:35:15 -0400
committerJeff Garzik <jgarzik@redhat.com>2004-05-16 10:35:15 -0400
commitd89ee0218780580d748a7d43344c87bb1153886a (patch)
tree481331d02e4abad6722d882711397d030689f396 /include/linux/ata.h
parent80e00375262ea73f746262e39f5ea41bdfe0ede5 (diff)
[libata] DMADIR support
DMADIR bit is necessary for some PATA->SATA bridges. These bridges require the OS driver to specify the data xfer direction, for PACKET (a.k.a. scsi) commands. A reliable DMADIR detection method hasn't yet been developed, and ATAPI is still a WIP, so DMADIR is enabled with an ifdef for now.
Diffstat (limited to 'include/linux/ata.h')
-rw-r--r--include/linux/ata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h
index 7275d89ace21..053fd4b64da6 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -134,6 +134,8 @@ enum {
/* ATAPI stuff */
ATAPI_PKT_DMA = (1 << 0),
+ ATAPI_DMADIR = (1 << 2), /* ATAPI data dir:
+ 0=to device, 1=to host */
/* cable types */
ATA_CBL_NONE = 0,