aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mcd/mcdreg.h
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2002-10-04 07:14:19 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2002-10-04 07:14:19 +0000
commit3ae5b53264d07f54cc232c3bdea5ed6eb2416032 (patch)
treef1c7fcb7c464397ece74e41049e057af9f751505 /sys/dev/mcd/mcdreg.h
parent0910374b7f20aacb16cecba36937b51a63127b9f (diff)
downloadsrc-3ae5b53264d07f54cc232c3bdea5ed6eb2416032.tar.gz
src-3ae5b53264d07f54cc232c3bdea5ed6eb2416032.zip
newbus & bus_space the mcd(4) driver.
Notes
Notes: svn path=/head/; revision=104445
Diffstat (limited to 'sys/dev/mcd/mcdreg.h')
-rw-r--r--sys/dev/mcd/mcdreg.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/dev/mcd/mcdreg.h b/sys/dev/mcd/mcdreg.h
index f0f75f7b2254..6d542af6a13c 100644
--- a/sys/dev/mcd/mcdreg.h
+++ b/sys/dev/mcd/mcdreg.h
@@ -53,6 +53,10 @@
#endif
#endif
+/* toc */
+#define MCD_MAXTOCS 104 /* from the Linux driver */
+#define MCD_LASTPLUS1 170 /* special toc entry */
+
typedef unsigned char bcd_t;
#define M_msf(msf) msf[0]
#define S_msf(msf) msf[1]
@@ -61,13 +65,13 @@ typedef unsigned char bcd_t;
/* io lines used */
#define MCD_IO_BASE 0x300
-#define mcd_command 0
-#define mcd_status 0
-#define mcd_rdata 0
+#define MCD_REG_COMMAND 0
+#define MCD_REG_STATUS 0
+#define MCD_REG_RDATA 0
-#define mcd_reset 1
-#define mcd_ctl2 2 /* XXX Is this right? */
-#define mcd_config 3
+#define MCD_REG_RESET 1
+#define MCD_REG_CTL2 2 /* XXX Is this right? */
+#define MCD_REG_CONFIG 3
#define MCD_MASK_DMA 0x07 /* bits 2-0 = DMA channel */
#define MCD_MASK_IRQ 0x70 /* bits 6-4 = INT number */