From d89ee0218780580d748a7d43344c87bb1153886a Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Sun, 16 May 2004 10:35:15 -0400 Subject: [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. --- include/linux/ata.h | 2 ++ include/linux/libata.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include/linux') 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, diff --git a/include/linux/libata.h b/include/linux/libata.h index c2172feb0d37..077f6461ab2a 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -40,6 +40,7 @@ #undef ATA_ENABLE_ATAPI /* define to enable ATAPI support */ #undef ATA_ENABLE_PATA /* define to enable PATA support in some * low-level drivers */ +#undef ATAPI_ENABLE_DMADIR /* enables ATAPI DMADIR bridge support */ /* note: prints function name for you */ -- cgit v1.2.3