]> git.proxmox.com Git - qemu.git/blame - hw/etraxfs_dma.h
Merge remote-tracking branch 'kraxel/usb.31' into staging
[qemu.git] / hw / etraxfs_dma.h
CommitLineData
1ba13a5d
EI
1struct 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 16void *etraxfs_dmac_init(target_phys_addr_t base, int nr_channels);
1ba13a5d
EI
17void etraxfs_dmac_connect(void *opaque, int channel, qemu_irq *line,
18 int input);
19void etraxfs_dmac_connect_client(void *opaque, int c,
20 struct etraxfs_dma_client *cl);
1ba13a5d
EI
21int etraxfs_dmac_input(struct etraxfs_dma_client *client,
22 void *buf, int len, int eop);