~kris/9p

9hist

ref: cb022755bb38120afd94832ce53d3ebfbefed3fe 9hist/carrera/audio.h -rw-r--r-- 683 bytes
cb022755 — David du Colombier Plan 9 from Bell Labs 1998-02-13 28 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
enum
{
	Bufsize		= 16*1024,	/* 92 ms each */
	Nbuf		= 16,		/* 1.5 seconds total */
	Dma		= 6,
	Irq		= 7,

	SBswab		= 1,

	DMA2_WRMASK	= 0xd4,
	DMA2_WRMODE	= 0xd6,
	DMA2_CLRBP	= 0xd8,

	DMA6_ADDRESS	= 0xc8,
	DMA6_COUNT	= 0xca,
	DMA6_LPAGE	= 0x89,
	DMA6_HPAGE	= 0x489,

	Dspport		= 0x220,

	PORT_RESET	= Dspport + 0x6,
	PORT_READ	= Dspport + 0xA,
	PORT_WRITE	= Dspport + 0xC,
	PORT_WSTATUS	= Dspport + 0xC,
	PORT_RSTATUS	= Dspport + 0xE,

	PORT_MIXER_ADDR	= Dspport + 0x4,
	PORT_MIXER_DATA	= Dspport + 0x5,

	PORT_CLRI8	= Dspport + 0xE,
	PORT_CLRI16	= Dspport + 0xF,
	PORT_CLRI401	= Dspport + 0x100,
};

#define	setvec(a,b,c)
#define	outb(a,b)	EISAOUTB(a,b)
#define	inb(a)		EISAINB(a)