Skip to contentSkip to conversation

ata: Add defines for the iordy bits

PATCH Applied Alan 2 participants 2 messages Feb 5, 2007 – Feb 7, 2007 libata

lore
Share & tools
lore

Alan

author
#0 lore raw

PATCH 1/1 ata: Add defines for the iordy bits

IORDY and IORDY enable/disable flags.

include/linux/ata.h +2 -0
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.20-rc6-mm3/include/linux/ata.h linux-2.6.20-rc6-mm3/include/linux/ata.h
@@ -299,6 +300,8 @@
 #define ata_id_queue_depth(id)	(((id)[75] & 0x1f) + 1)
 #define ata_id_removeable(id)	((id)[0] & (1 << 7))
 #define ata_id_has_dword_io(id)	((id)[50] & (1 << 0))
+#define ata_id_iordy_disable(id) ((id)[49] & (1 << 10))
+#define ata_id_has_iordy(id) ((id)[49] & (1 << 9))
 #define ata_id_u32(id,n)	\
 	(((u32) (id)[(n) + 1] << 16) | ((u32) (id)[(n)]))
 #define ata_id_u64(id,n)	\