]> err.no Git - linux-2.6/commitdiff
ata: Add defines for the iordy bits
authorAlan <alan@lxorguk.ukuu.org.uk>
Mon, 5 Feb 2007 16:17:19 +0000 (16:17 +0000)
committerJeff Garzik <jeff@garzik.org>
Fri, 9 Feb 2007 22:39:39 +0000 (17:39 -0500)
IORDY and IORDY enable/disable flags.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
include/linux/ata.h

index 3a50739e25a61bb6fd3bc618e9b078d5b302d2ca..18e401ff7eafb6ed6fee60693e65b1c35b3254a8 100644 (file)
@@ -299,6 +299,8 @@ struct ata_taskfile {
 #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)       \