Statistics
| Branch: | Revision:

root / hw / virtio-pci.h @ 8d3a8c1e

History | View | Annotate | Download (1 kB)

1
/*
2
 * Virtio PCI Bindings
3
 *
4
 * Copyright IBM, Corp. 2007
5
 * Copyright (c) 2009 CodeSourcery
6
 *
7
 * Authors:
8
 *  Anthony Liguori   <aliguori@us.ibm.com>
9
 *  Paul Brook        <paul@codesourcery.com>
10
 *
11
 * This work is licensed under the terms of the GNU GPL, version 2.  See
12
 * the COPYING file in the top-level directory.
13
 */
14

    
15
#ifndef QEMU_VIRTIO_PCI_H
16
#define QEMU_VIRTIO_PCI_H
17

    
18
#include "virtio-net.h"
19
#include "virtio-serial.h"
20

    
21
typedef struct {
22
    PCIDevice pci_dev;
23
    VirtIODevice *vdev;
24
    MemoryRegion bar;
25
    MemoryRegion msix_bar;
26
    uint32_t flags;
27
    uint32_t class_code;
28
    uint32_t nvectors;
29
    BlockConf block;
30
    char *block_serial;
31
    NICConf nic;
32
    uint32_t host_features;
33
#ifdef CONFIG_LINUX
34
    V9fsConf fsconf;
35
#endif
36
    virtio_serial_conf serial;
37
    virtio_net_conf net;
38
    bool ioeventfd_disabled;
39
    bool ioeventfd_started;
40
} VirtIOPCIProxy;
41

    
42
void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
43

    
44
/* Virtio ABI version, if we increment this, we break the guest driver. */
45
#define VIRTIO_PCI_ABI_VERSION          0
46

    
47
#endif