mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 20:19:44 +00:00
2c99f7252e
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5624 c046a42c-6fe2-441c-8c8c-71466251a162
24 lines
587 B
C
24 lines
587 B
C
struct etraxfs_dma_client
|
|
{
|
|
/* DMA controller. */
|
|
int channel;
|
|
void *ctrl;
|
|
|
|
/* client. */
|
|
struct
|
|
{
|
|
int (*push)(void *opaque, unsigned char *buf, int len);
|
|
void (*pull)(void *opaque);
|
|
void *opaque;
|
|
} client;
|
|
};
|
|
|
|
void *etraxfs_dmac_init(CPUState *env, target_phys_addr_t base,
|
|
int nr_channels);
|
|
void etraxfs_dmac_connect(void *opaque, int channel, qemu_irq *line,
|
|
int input);
|
|
void etraxfs_dmac_connect_client(void *opaque, int c,
|
|
struct etraxfs_dma_client *cl);
|
|
int etraxfs_dmac_input(struct etraxfs_dma_client *client,
|
|
void *buf, int len, int eop);
|