4 #include "hw/pci/pci.h"
7 * PCI Bus datastructures.
9 * Do not access the following members directly;
10 * use accessor functions in pci.h
13 typedef struct PCIBusClass
{
15 BusClass parent_class
;
18 bool (*is_root
)(PCIBus
*bus
);
19 int (*bus_num
)(PCIBus
*bus
);
20 uint16_t (*numa_node
)(PCIBus
*bus
);
25 PCIIOMMUFunc iommu_fn
;
28 uint32_t slot_reserved_mask
;
29 pci_set_irq_fn set_irq
;
30 pci_map_irq_fn map_irq
;
31 pci_route_irq_fn route_intx_to_irq
;
33 PCIDevice
*devices
[PCI_SLOT_MAX
* PCI_FUNC_MAX
];
34 PCIDevice
*parent_dev
;
35 MemoryRegion
*address_space_mem
;
36 MemoryRegion
*address_space_io
;
38 QLIST_HEAD(, PCIBus
) child
; /* this will be replaced by qdev later */
39 QLIST_ENTRY(PCIBus
) sibling
;/* this will be replaced by qdev later */
41 /* The bus IRQ state is the logical OR of the connected devices.
42 Keep a count of the number of devices with raised IRQs. */
46 Notifier machine_done
;
49 #endif /* QEMU_PCI_BUS_H */