summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2008-01-01 03:09:16 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2008-01-01 03:09:16 +0000
commit6baee70e0d879f2028becaa81b367a21d714d138 (patch)
treefc4a92db23304688dd36cc36f5ada9e317e5be80 /sys/dev
parent0c67ab8bf7edbef019be3f16d6fecf3415f936b8 (diff)
provide a thing for use with %b to show which xa flags are set.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ata/atascsi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ata/atascsi.h b/sys/dev/ata/atascsi.h
index 39472937452..551e8c29060 100644
--- a/sys/dev/ata/atascsi.h
+++ b/sys/dev/ata/atascsi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.h,v 1.31 2007/12/28 16:19:14 dlg Exp $ */
+/* $OpenBSD: atascsi.h,v 1.32 2008/01/01 03:09:15 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -282,6 +282,10 @@ struct ata_xfer {
#define ATA_F_PIO (1<<4)
#define ATA_F_PACKET (1<<5)
#define ATA_F_NCQ (1<<6)
+#define ATA_FMT_FLAGS "\020" "\007NCQ" "\006PACKET" \
+ "\005PIO" "\004POLL" "\003NOWAIT" \
+ "\002WRITE" "\001READ"
+
volatile int state;
#define ATA_S_SETUP 0
#define ATA_S_PENDING 1