summaryrefslogtreecommitdiff
path: root/sys/src/9/bitsy/sa1110dma.h
blob: 24810e8d4f4728984ee055a5adf88fe8c265cd4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
enum {
	Port4MCP		= 0x80060008,
	Port4SSP		= 0x8007006c,
	AudioDMA		= 0xa,
	SSPXmitDMA		= 0xe,
	SSPRecvDMA		= 0xf,
};

void	dmainit(void);
int		dmaalloc(int, int, int, int, int, ulong, void (*)(void*, ulong), void*);
void	dmareset(int, int, int, int, int, int, ulong);
void	dmafree(int);

ulong	dmastart(int, ulong, int);

void	dmawait(int);
void	dmastop(int);
int		dmaidle(int);