summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1999-07-22 02:51:16 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1999-07-22 02:51:16 +0000
commit7ef77e86739fadc6a05aad588c19c8ffd9074fea (patch)
tree4f166da93b7c6f22f1d1388472e46f8bf3f5e933
parent45e9f01dba2a7b325e94df434d5eecfed7670655 (diff)
Added ATAPI capabilities to the increasingly poorly named ata_drive_datas
-rw-r--r--sys/dev/ata/atavar.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ata/atavar.h b/sys/dev/ata/atavar.h
index 8e8cb7c5f2f..e536d55e41d 100644
--- a/sys/dev/ata/atavar.h
+++ b/sys/dev/ata/atavar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atavar.h,v 1.1 1999/07/18 21:25:17 csapuntz Exp $ */
+/* $OpenBSD: atavar.h,v 1.2 1999/07/22 02:51:15 csapuntz Exp $ */
/* $NetBSD: atavar.h,v 1.13 1999/03/10 13:11:43 bouyer Exp $ */
/*
@@ -69,6 +69,10 @@ struct ata_drive_datas {
*/
u_int8_t state;
+#define ACAP_LEN 0x01 /* 16 byte commands */
+ /* 0x20-0x40 reserved for ATAPI_CFG_DRQ_MASK */
+ u_int8_t atapi_cap;
+
/* Number of DMA errors. Reset to 0 after every successful transfers. */
u_int8_t n_dmaerrs;
/* downgrade mode after this many successive errors */