shithub: riscv

ref: 04c3a6f66e3b895a087124ed415f01e23e21ee10
dir: /sys/src/9/alphapc/audio.h/

View raw version
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
#define setvec(v, f, a)		intrenable(v, f, a, BUSUNKNOWN, "audio")