isa: Remove isa_init_ioport_range and isa_init_ioport
[qemu.git] / hw / virtio-pci.h
blob14c10f7d67c2be78ef434117f0e9c99bd607ea5b
1 /*
2 * Virtio PCI Bindings
4 * Copyright IBM, Corp. 2007
5 * Copyright (c) 2009 CodeSourcery
7 * Authors:
8 * Anthony Liguori <aliguori@us.ibm.com>
9 * Paul Brook <paul@codesourcery.com>
11 * This work is licensed under the terms of the GNU GPL, version 2. See
12 * the COPYING file in the top-level directory.
15 #ifndef QEMU_VIRTIO_PCI_H
16 #define QEMU_VIRTIO_PCI_H
18 #include "virtio-net.h"
19 #include "virtio-serial.h"
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;
42 void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev);
44 /* Virtio ABI version, if we increment this, we break the guest driver. */
45 #define VIRTIO_PCI_ABI_VERSION 0
47 #endif