shithub: riscv

ref: 8c9d28f4f8ab0305689f9f1f95e137e2f20e375c
dir: /sys/src/9/bitsy/sa1110dma.h/

View raw version

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);