aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ata.h')
-rw-r--r--include/linux/ata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h
index a5b74efab067..6fec2f6f2d59 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -181,6 +181,7 @@ enum {
181 ATA_TFLAG_ISADDR = (1 << 1), /* enable r/w to nsect/lba regs */ 181 ATA_TFLAG_ISADDR = (1 << 1), /* enable r/w to nsect/lba regs */
182 ATA_TFLAG_DEVICE = (1 << 2), /* enable r/w to device reg */ 182 ATA_TFLAG_DEVICE = (1 << 2), /* enable r/w to device reg */
183 ATA_TFLAG_WRITE = (1 << 3), /* data dir: host->dev==1 (write) */ 183 ATA_TFLAG_WRITE = (1 << 3), /* data dir: host->dev==1 (write) */
184 ATA_TFLAG_POLLING = (1 << 4), /* set nIEN to 1 and use polling */
184}; 185};
185 186
186enum ata_tf_protocols { 187enum ata_tf_protocols {
@@ -250,6 +251,8 @@ struct ata_taskfile {
250 ((u64) (id)[(n) + 1] << 16) | \ 251 ((u64) (id)[(n) + 1] << 16) | \
251 ((u64) (id)[(n) + 0]) ) 252 ((u64) (id)[(n) + 0]) )
252 253
254#define ata_id_cdb_intr(id) (((id)[0] & 0x60) == 0x20)
255
253static inline int atapi_cdb_len(u16 *dev_id) 256static inline int atapi_cdb_len(u16 *dev_id)
254{ 257{
255 u16 tmp = dev_id[0] & 0x3; 258 u16 tmp = dev_id[0] & 0x3;