~ubuntu-branches/ubuntu/wily/qemu-kvm-spice/wily

« back to all changes in this revision

Viewing changes to hw/etraxfs_dma.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-10-19 10:44:56 UTC
  • Revision ID: james.westby@ubuntu.com-20111019104456-xgvskumk3sxi97f4
Tags: upstream-0.15.0+noroms
ImportĀ upstreamĀ versionĀ 0.15.0+noroms

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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(target_phys_addr_t base, int nr_channels);
 
17
void etraxfs_dmac_connect(void *opaque, int channel, qemu_irq *line,
 
18
                          int input);
 
19
void etraxfs_dmac_connect_client(void *opaque, int c, 
 
20
                                 struct etraxfs_dma_client *cl);
 
21
int etraxfs_dmac_input(struct etraxfs_dma_client *client, 
 
22
                       void *buf, int len, int eop);