summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-02-10 21:25:42 +0200
committerMichael S. Tsirkin <mst@redhat.com>2010-02-14 16:10:53 +0200
commit186993ee2fec8da1dc7d9ca15df295ab76a5b789 (patch)
tree09c4f7292eb62e40cf099c94539da661ddd55edd
parentbc798c77e54f73b637e02bdc02bd799660adb7b7 (diff)
downloadhqemu-186993ee2fec8da1dc7d9ca15df295ab76a5b789.zip
hqemu-186993ee2fec8da1dc7d9ca15df295ab76a5b789.tar.gz
pci: move pcibus_t to qemu-common
move pcibus_t to qemu-common.h to simplify header dependencies. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--hw/pci.h1
-rw-r--r--qemu-common.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/hw/pci.h b/hw/pci.h
index 8b511d2..37ebdc4 100644
--- a/hw/pci.h
+++ b/hw/pci.h
@@ -70,7 +70,6 @@
#define PCI_DEVICE_ID_VIRTIO_BALLOON 0x1002
#define PCI_DEVICE_ID_VIRTIO_CONSOLE 0x1003
-typedef uint64_t pcibus_t;
#define FMT_PCIBUS PRIx64
typedef void PCIConfigWriteFunc(PCIDevice *pci_dev,
diff --git a/qemu-common.h b/qemu-common.h
index b09f717..192991f 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -225,6 +225,8 @@ typedef struct I2SCodec I2SCodec;
typedef struct DeviceState DeviceState;
typedef struct SSIBus SSIBus;
+typedef uint64_t pcibus_t;
+
/* CPU save/load. */
void cpu_save(QEMUFile *f, void *opaque);
int cpu_load(QEMUFile *f, void *opaque, int version_id);
OpenPOWER on IntegriCloud