summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2000-04-03 00:28:43 +0000
committercg <cg@FreeBSD.org>2000-04-03 00:28:43 +0000
commitcb309fc3fbb4be23b21c62512be2f98855d27fa0 (patch)
treeef6f761afdbe7fa494eb0f4bef61b5658f098f90
parent20377982190872f774f9ac05975b0d9c933d3ee7 (diff)
downloadFreeBSD-src-cb309fc3fbb4be23b21c62512be2f98855d27fa0.zip
FreeBSD-src-cb309fc3fbb4be23b21c62512be2f98855d27fa0.tar.gz
fix missing defines and prototype for emu_vdump()
-rw-r--r--sys/dev/sound/pci/emu10k1.c3
-rw-r--r--sys/dev/sound/pci/emu10k1.h12
-rw-r--r--sys/gnu/dev/sound/pci/emu10k1.h12
3 files changed, 21 insertions, 6 deletions
diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c
index b9bb854..098259a 100644
--- a/sys/dev/sound/pci/emu10k1.c
+++ b/sys/dev/sound/pci/emu10k1.c
@@ -124,6 +124,9 @@ static void *emu_memalloc(struct sc_info *sc, u_int32_t sz);
static int emu_memfree(struct sc_info *sc, void *buf);
#endif
static int emu_memstart(struct sc_info *sc, void *buf);
+#ifdef EMUDEBUG
+static void emu_vdump(struct sc_info *sc, struct emu_voice *v);
+#endif
/* talk to the card */
static u_int32_t emu_rd(struct sc_info *, int, int);
diff --git a/sys/dev/sound/pci/emu10k1.h b/sys/dev/sound/pci/emu10k1.h
index 69a1df6..52c4ac2 100644
--- a/sys/dev/sound/pci/emu10k1.h
+++ b/sys/dev/sound/pci/emu10k1.h
@@ -35,8 +35,8 @@
*/
-#ifndef _8010_H
-#define _8010_H
+#ifndef EMU10K1_H
+#define EMU10K1_H
/* ------------------- DEFINES -------------------- */
@@ -663,4 +663,10 @@
#define HIWORD_RESULT_MASK 0x000ffc00 /* Instruction result */
#define HIWORD_OPA_MASK 0x000003ff /* Instruction operand A */
-#endif /* _8010_H */
+#define ENABLE 0xffffffff
+#define DISABLE 0x00000000
+
+#define ENV_ON 0x80
+#define ENV_OFF 0x00
+
+#endif /* EMU10K1_H */
diff --git a/sys/gnu/dev/sound/pci/emu10k1.h b/sys/gnu/dev/sound/pci/emu10k1.h
index 69a1df6..52c4ac2 100644
--- a/sys/gnu/dev/sound/pci/emu10k1.h
+++ b/sys/gnu/dev/sound/pci/emu10k1.h
@@ -35,8 +35,8 @@
*/
-#ifndef _8010_H
-#define _8010_H
+#ifndef EMU10K1_H
+#define EMU10K1_H
/* ------------------- DEFINES -------------------- */
@@ -663,4 +663,10 @@
#define HIWORD_RESULT_MASK 0x000ffc00 /* Instruction result */
#define HIWORD_OPA_MASK 0x000003ff /* Instruction operand A */
-#endif /* _8010_H */
+#define ENABLE 0xffffffff
+#define DISABLE 0x00000000
+
+#define ENV_ON 0x80
+#define ENV_OFF 0x00
+
+#endif /* EMU10K1_H */
OpenPOWER on IntegriCloud