~kris/9p

9hist

ref: 6f23a16735e2b3235cdca1fad1b2fa8f30c7be84 9hist/alphapc/audio.h -rw-r--r-- 352 bytes
6f23a167 — David du Colombier Plan 9 from Bell Labs 1999-12-07 26 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
enum
{
	Bufsize		= 16*1024,	/* 92 ms each */
	Nbuf		= 16,		/* 1.5 seconds total */
	Dma		= 5,
	IrqAUDIO	= 5,
	SBswab		= 0,
};

#define seteisadma(a, b)	dmainit(a, Bufsize);
#define CACHELINESZ		128
#define UNCACHED(type, v)	(type*)((ulong)(v))
#define dcflush(a, b)

#define Int0vec			VectorPIC
#define setvec(v, f, a)		intrenable(v, f, a, BUSUNKNOWN)