diff options
Diffstat (limited to 'hw/pci/pci.h')
-rw-r--r-- | hw/pci/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/pci/pci.h b/hw/pci/pci.h index d837a65c2d..37fb52222f 100644 --- a/hw/pci/pci.h +++ b/hw/pci/pci.h @@ -339,6 +339,11 @@ typedef enum { typedef int (*pci_hotplug_fn)(DeviceState *qdev, PCIDevice *pci_dev, PCIHotplugState state); + +#define TYPE_PCI_BUS "PCI" +#define PCI_BUS(obj) OBJECT_CHECK(PCIBus, (obj), TYPE_PCI_BUS) +#define TYPE_PCIE_BUS "PCIE" + void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent, const char *name, MemoryRegion *address_space_mem, |