symbian-qemu-0.9.1-12/qemu-symbian-svp/hw/etraxfs_dma.h
changeset 1 2fb8b9db1c86
equal deleted inserted replaced
0:ffa851df0825 1:2fb8b9db1c86
       
     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 
       
    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);