summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/gsc/harmonyreg.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-02-05 08:47:06 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-02-05 08:47:06 +0000
commit000c59c5ecadeeaf9c15ee74aff432337795cc10 (patch)
treea9fcd18230431c834e6c0279f4e5392a3a7e80a2 /sys/arch/hppa/gsc/harmonyreg.h
parente6cf03899f11f3af06d27a1d205307adf5620a55 (diff)
Get rid of the pops:
- interrupt is called when the block has been DMA'd... since LASI seems to include a FIFO this is -not- the same as block completion which we have to poll for. Luckily the FIFO is deep enough that polling in the interrupt handler seems to work. - This probably breaks capture, but I'll fix that when I get up tomorrow. (committed to the tune of Fugazi's "Waiting Room")
Diffstat (limited to 'sys/arch/hppa/gsc/harmonyreg.h')
-rw-r--r--sys/arch/hppa/gsc/harmonyreg.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/hppa/gsc/harmonyreg.h b/sys/arch/hppa/gsc/harmonyreg.h
index 6dbc6a198f0..8e9f2d62ad5 100644
--- a/sys/arch/hppa/gsc/harmonyreg.h
+++ b/sys/arch/hppa/gsc/harmonyreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: harmonyreg.h,v 1.2 2003/01/30 01:23:24 jason Exp $ */
+/* $OpenBSD: harmonyreg.h,v 1.3 2003/02/05 08:47:05 jason Exp $ */
/*
* Copyright (c) 2003 Jason L. Wright (jason@thought.net)
@@ -36,6 +36,9 @@
* "712 I/O Subsystem ERS", Revision 1.1, 12 February 1993
*/
+/* harmony always uses a 4K buffer */
+#define HARMONY_BUFSIZE 4096
+
#define HARMONY_NREGS 0x40
#define HARMONY_ID 0x00 /* identification */
@@ -122,6 +125,12 @@
#define GAINCTL_OUTPUT_RIGHT_S 0
#define GAINCTL_OUTPUT_BITS 6
+/* HARMONY_PCURADD */
+#define PCURADD_BUFMASK (~(HARMONY_BUFSIZE - 1))
+
+/* HARMONY_RCURADD */
+#define PCURADD_BUFMASK (~(HARMONY_BUFSIZE - 1))
+
/* HARMONY_DSTATUS */
#define DSTATUS_IE 0x80000000 /* interrupt enable */
#define DSTATUS_PN 0x00000200 /* playback next empty */