root / hw / etraxfs_dma.h @ a6307b08
History | View | Annotate | Download (568 Bytes)
1 |
struct etraxfs_dma_client
|
---|---|
2 |
{ |
3 |
/* DMA controller. */
|
4 |
int channel;
|
5 |
void *ctrl;
|
6 |
|
7 |
/* client. */
|
8 |
struct
|
9 |
{ |
10 |
int (*push)(void *opaque, unsigned char *buf, int len); |
11 |
void (*pull)(void *opaque); |
12 |
void *opaque;
|
13 |
} client; |
14 |
}; |
15 |
|
16 |
void *etraxfs_dmac_init(target_phys_addr_t base, int nr_channels); |
17 |
void etraxfs_dmac_connect(void *opaque, int channel, qemu_irq *line, |
18 |
int input);
|
19 |
void etraxfs_dmac_connect_client(void *opaque, int c, |
20 |
struct etraxfs_dma_client *cl);
|
21 |
int etraxfs_dmac_input(struct etraxfs_dma_client *client, |
22 |
void *buf, int len, int eop); |