symbian-qemu-0.9.1-12/qemu-symbian-svp/hw/etraxfs_dma.h
author Shane McErlean <shane.mcerlean@accenture.com>
Thu, 19 Aug 2010 17:55:25 +0100
changeset 100 99a56c5faf9c
parent 1 2fb8b9db1c86
permissions -rw-r--r--
SF Bug 1284 - QEMU has faulty instruction emulation for VMOV (between two ARM core registers and two single-precision registers)

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);