]>
Commit | Line | Data |
---|---|---|
1ba13a5d EI |
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 | ||
c227f099 | 16 | void *etraxfs_dmac_init(target_phys_addr_t base, int nr_channels); |
1ba13a5d EI |
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); | |
1ba13a5d EI |
21 | int etraxfs_dmac_input(struct etraxfs_dma_client *client, |
22 | void *buf, int len, int eop); |