summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/mcdreg.h
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-01-16 23:34:17 +0000
committerjkh <jkh@FreeBSD.org>1994-01-16 23:34:17 +0000
commit43bf825f4fa9df70298eaa4ef36fff79ed53da0a (patch)
tree23ac90d573eb2c506e13ac39360f146298dce1cc /sys/i386/isa/mcdreg.h
parent7cf4cede8a3ec8d5b081a7fdfee3ced54c5ec53f (diff)
downloadFreeBSD-src-43bf825f4fa9df70298eaa4ef36fff79ed53da0a.zip
FreeBSD-src-43bf825f4fa9df70298eaa4ef36fff79ed53da0a.tar.gz
From Gary Clark II:
1. Fixed probe to work with FX mitsumi's. 2. Added some defines in prep for adding interupts and dma
Diffstat (limited to 'sys/i386/isa/mcdreg.h')
-rw-r--r--sys/i386/isa/mcdreg.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/i386/isa/mcdreg.h b/sys/i386/isa/mcdreg.h
index 83664a7..c5c95d8 100644
--- a/sys/i386/isa/mcdreg.h
+++ b/sys/i386/isa/mcdreg.h
@@ -1,6 +1,7 @@
/*
* Copyright 1993 by Holger Veit (data part)
* Copyright 1993 by Brian Moore (audio part)
+ * Changes Copyright 1993 by Gary Clark II
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -40,7 +41,7 @@
* the manufacturer or anyone else might provide better documentation,
* so this file (and the driver) will then have a better quality.
*
- * $Id$
+ * $Id: mcdreg.h,v 1.1 1993/10/12 06:08:31 rgrimes Exp $
*/
#ifndef MCD_H
@@ -67,8 +68,8 @@ typedef unsigned char bcd_t;
#define mcd_reset 1
#define mcd_xfer 1
#define mcd_ctl2 2 /* XXX Is this right? */
-
#define mcd_config 3
+
#define MCD_MASK_DMA 0x07 /* bits 2-0 = DMA channel */
#define MCD_MASK_IRQ 0x70 /* bits 6-4 = INT number */
/* 001 = int 2,9 */
@@ -77,8 +78,15 @@ typedef unsigned char bcd_t;
/* 100 = int 10 */
/* 101 = int 11 */
/* flags */
-#define STATUS_AVAIL 0xb
-#define DATA_AVAIL 0xf
+#define STATUS_AVAIL 0xB
+#define DATA_AVAIL 0xF
+
+/* New Flags */
+#define M_STATUS_AVAIL 0xFB
+#define M_DATA_AVAIL 0xFD
+
+/* New Commands */
+#define M_RESET 0x00
/* ports */
#define MCD_DATA 0
OpenPOWER on IntegriCloud