Convert mulscc
[qemu/hppa.git] / hw / etraxfs_dma.h
blobc29dab9763c61d6b5e10912fecd5a83fbecafc1c
1 struct etraxfs_dma_client
3 /* DMA controller. */
4 int channel;
5 void *ctrl;
7 /* client. */
8 struct
10 int (*push)(void *opaque, unsigned char *buf, int len);
11 void (*pull)(void *opaque);
12 void *opaque;
13 } client;
16 void *etraxfs_dmac_init(CPUState *env, target_phys_addr_t base,
17 int nr_channels);
18 void etraxfs_dmac_connect(void *opaque, int channel, qemu_irq *line,
19 int input);
20 void etraxfs_dmac_connect_client(void *opaque, int c,
21 struct etraxfs_dma_client *cl);
22 int etraxfs_dmac_input(struct etraxfs_dma_client *client,
23 void *buf, int len, int eop);