/openbmc/qemu/include/hw/pci/ |
H A D | pci.h | 274 OBJECT_DECLARE_TYPE(PCIBus, PCIBusClass, PCI_BUS) 278 typedef void (*pci_bus_dev_fn)(PCIBus *b, PCIDevice *d, void *opaque); 279 typedef void (*pci_bus_fn)(PCIBus *b, void *opaque); 280 typedef void *(*pci_bus_ret_fn)(PCIBus *b, void *opaque); 282 bool pci_bus_is_express(const PCIBus *bus); 284 void pci_root_bus_init(PCIBus *bus, size_t bus_size, DeviceState *parent, 288 PCIBus *pci_root_bus_new(DeviceState *parent, const char *name, 291 void pci_root_bus_cleanup(PCIBus *bus); 292 void pci_bus_irqs(PCIBus *bus, pci_set_irq_fn set_irq, 294 void pci_bus_map_irqs(PCIBus *bus, pci_map_irq_fn map_irq); [all …]
|
H A D | pci_bus.h | 18 int (*bus_num)(PCIBus *bus); 19 uint16_t (*numa_node)(PCIBus *bus); 33 struct PCIBus { struct 49 QLIST_HEAD(, PCIBus) child; /* this will be replaced by qdev later */ argument 50 QLIST_ENTRY(PCIBus) sibling;/* this will be replaced by qdev later */ 60 static inline bool pci_bus_is_cxl(PCIBus *bus) in pci_bus_is_cxl() argument 65 static inline bool pci_bus_is_root(PCIBus *bus) in pci_bus_is_root() 70 static inline bool pci_bus_allows_extended_config_space(PCIBus *bus) in pci_bus_allows_extended_config_space()
|
H A D | pci_host.h | 47 PCIBus *bus; 56 const char *(*root_bus_path)(PCIHostState *, PCIBus *); 65 void pci_data_write(PCIBus *s, uint32_t addr, uint32_t val, unsigned len); 66 uint32_t pci_data_read(PCIBus *s, uint32_t addr, unsigned len);
|
H A D | pcie_port.h | 43 PCIDevice *pcie_find_port_by_pn(PCIBus *bus, uint8_t pn); 44 PCIDevice *pcie_find_port_first(PCIBus *bus); 45 int pcie_count_ds_ports(PCIBus *bus);
|
H A D | pci_bridge.h | 64 PCIBus sec_bus; 127 PCIDevice *pci_bridge_get_device(PCIBus *bus); 128 PCIBus *pci_bridge_get_sec_bus(PCIBridge *br);
|
H A D | shpc.h | 33 PCIBus *sec_bus; 41 int shpc_init(PCIDevice *dev, PCIBus *sec_bus, MemoryRegion *bar,
|
/openbmc/qemu/hw/pci/ |
H A D | pci.c | 114 VMSTATE_INT32_EQUAL(nirq, PCIBus, NULL), 115 VMSTATE_VARRAY_INT32(irq_count, PCIBus, 151 PCIBus *bus = container_of(notifier, PCIBus, machine_done); in pcibus_machine_done() 163 PCIBus *bus = PCI_BUS(qbus); in pci_bus_realize() 173 PCIBus *bus = PCI_BUS(qbus); in pcie_bus_realize() 189 PCIBus *parent_bus = pci_get_bus(bus->parent_dev); in pcie_bus_realize() 199 PCIBus *bus = PCI_BUS(qbus); in pci_bus_unrealize() 206 static int pcibus_num(PCIBus *bus) in pcibus_num() 214 static uint16_t pcibus_numa_node(PCIBus *bus) in pcibus_numa_node() 240 .instance_size = sizeof(PCIBus), [all …]
|
H A D | pci-qmp-cmds.c | 31 static PciDeviceInfoList *qmp_query_pci_devices(PCIBus *bus, int bus_num); 68 static PciBridgeInfo *qmp_query_pci_bridge(PCIDevice *dev, PCIBus *bus, in qmp_query_pci_bridge() 94 PCIBus *child_bus = pci_find_bus_nr(bus, in qmp_query_pci_bridge() 106 static PciDeviceInfo *qmp_query_pci_device(PCIDevice *dev, PCIBus *bus, in qmp_query_pci_device() 157 static PciDeviceInfoList *qmp_query_pci_devices(PCIBus *bus, int bus_num) in qmp_query_pci_devices() 173 static PciInfo *qmp_query_pci_bus(PCIBus *bus, int bus_num) in qmp_query_pci_bus()
|
H A D | pci-internal.h | 18 PCIBus *pci_find_bus_nr(PCIBus *bus, int bus_num);
|
H A D | pcie_host.c | 28 static inline PCIDevice *pcie_dev_find_by_mmcfg_addr(PCIBus *s, in pcie_dev_find_by_mmcfg_addr() 39 PCIBus *s = e->pci.bus; in pcie_mmcfg_data_write() 57 PCIBus *s = e->pci.bus; in pcie_mmcfg_data_read()
|
H A D | pci_host.c | 49 static inline PCIDevice *pci_dev_find_by_addr(PCIBus *bus, uint32_t addr) in pci_dev_find_by_addr() 57 static void pci_adjust_config_limit(PCIBus *bus, uint32_t *limit) in pci_adjust_config_limit() 126 void pci_data_write(PCIBus *s, uint32_t addr, uint32_t val, unsigned len) in pci_data_write() 142 uint32_t pci_data_read(PCIBus *s, uint32_t addr, unsigned len) in pci_data_read()
|
H A D | pci_bridge.c | 66 PCIDevice *pci_bridge_get_device(PCIBus *bus) in pci_bridge_get_device() 72 PCIBus *pci_bridge_get_sec_bus(PCIBridge *br) in pci_bridge_get_sec_bus() 165 static void pci_bridge_init_vga_aliases(PCIBridge *br, PCIBus *parent, in pci_bridge_init_vga_aliases() 191 PCIBus *parent = pci_get_bus(pd); in pci_bridge_region_init() 220 PCIBus *parent = pci_get_bus(pd); in pci_bridge_region_del() 344 PCIBus *parent = pci_get_bus(dev); in pci_bridge_initfn() 346 PCIBus *sec_bus = &br->sec_bus; in pci_bridge_initfn()
|
H A D | pcie_port.c | 129 PCIDevice *pcie_find_port_by_pn(PCIBus *bus, uint8_t pn) in pcie_find_port_by_pn() 155 PCIDevice *pcie_find_port_first(PCIBus *bus) in pcie_find_port_first() 174 int pcie_count_ds_ports(PCIBus *bus) in pcie_count_ds_ports()
|
/openbmc/qemu/hw/acpi/ |
H A D | pcihp.c | 54 PCIBus *bus; 57 static int acpi_pcihp_get_bsel(PCIBus *bus) in acpi_pcihp_get_bsel() 79 static void *acpi_set_bsel(PCIBus *bus, void *opaque) in acpi_set_bsel() 104 PCIBus *bus; in acpi_set_pci_info() 124 static void acpi_pcihp_test_hotplug_bus(PCIBus *bus, void *opaque) in acpi_pcihp_test_hotplug_bus() 132 static PCIBus *acpi_pcihp_find_hotplug_bus(AcpiPciHpState *s, int bsel) in acpi_pcihp_find_hotplug_bus() 187 PCIBus *bus = acpi_pcihp_find_hotplug_bus(s, bsel); in acpi_pcihp_eject_slot() 233 PCIBus *bus = acpi_pcihp_find_hotplug_bus(s, bsel); in acpi_pcihp_update_hotplug_bus() 291 PCIBus *bus; in acpi_pcihp_device_plug_cb() 304 PCIBus *sec = pci_bridge_get_sec_bus(PCI_BRIDGE(pdev)); in acpi_pcihp_device_plug_cb() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | soundhw.c | 40 int (*init_pci) (PCIBus *bus, const char *audiodev); 47 int (*init_pci)(PCIBus *bus, const char *audiodev)) in pci_register_soundhw() 114 PCIBus *pci_bus = (PCIBus *) object_resolve_path_type("", TYPE_PCI_BUS, NULL); in soundhw_init()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-iommu.h | 38 PCIBus *bus; 49 PCIBus *bus; 62 PCIBus *primary_bus;
|
/openbmc/qemu/include/hw/acpi/ |
H A D | pcihp.h | 50 PCIBus *root; 58 void acpi_pcihp_init(Object *owner, AcpiPciHpState *, PCIBus *root, 75 void build_append_pcihp_slots(Aml *parent_scope, PCIBus *bus);
|
/openbmc/qemu/hw/pci-bridge/ |
H A D | pci_expander_bridge.c | 46 PCIBus parent_obj; 73 static int pxb_bus_num(PCIBus *bus) in pxb_bus_num() 80 static uint16_t pxb_bus_numa_node(PCIBus *bus) in pxb_bus_numa_node() 130 PCIBus *rootbus) in pxb_host_root_bus_path() 144 const PCIBus *pxb_bus; in pxb_host_ofw_unit_address() 209 void pxb_cxl_hook_up_registers(CXLState *cxl_state, PCIBus *bus, Error **errp) in pxb_cxl_hook_up_registers() 253 static void pxb_register_bus(PCIDevice *dev, PCIBus *pxb_bus, Error **errp) in pxb_register_bus() 255 PCIBus *bus = pci_get_bus(dev); in pxb_register_bus() 338 PCIBus *bus; in pxb_dev_realize_common()
|
/openbmc/qemu/include/hw/arm/ |
H A D | smmu-common.h | 124 PCIBus *bus; 134 PCIBus *bus; 156 PCIBus *pci_bus; 159 PCIBus *primary_bus;
|
/openbmc/qemu/hw/alpha/ |
H A D | pci.c | 46 PCIBus *b = opaque; in bw_conf1_read() 53 PCIBus *b = opaque; in bw_conf1_write()
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_pci_vfio.c | 150 static void spapr_eeh_pci_find_device(PCIBus *bus, PCIDevice *pdev, in spapr_eeh_pci_find_device() 236 static void spapr_phb_vfio_eeh_clear_dev_msix(PCIBus *bus, in spapr_phb_vfio_eeh_clear_dev_msix() 266 static void spapr_phb_vfio_eeh_clear_bus_msix(PCIBus *bus, void *opaque) in spapr_phb_vfio_eeh_clear_bus_msix()
|
/openbmc/qemu/hw/remote/ |
H A D | iommu.c | 39 static AddressSpace *remote_iommu_find_add_as(PCIBus *pci_bus, in remote_iommu_find_add_as() 107 void remote_iommu_setup(PCIBus *pci_bus) in remote_iommu_setup()
|
/openbmc/qemu/include/hw/i386/ |
H A D | pc.h | 34 PCIBus *pcibus; 192 DeviceState *pc_vga_init(ISABus *isa_bus, PCIBus *pci_bus); 198 void pc_nic_init(PCMachineClass *pcmc, ISABus *isa_bus, PCIBus *pci_bus);
|
/openbmc/qemu/include/qemu/ |
H A D | typedefs.h | 80 typedef struct PCIBus PCIBus; typedef
|
/openbmc/qemu/include/hw/pci-host/ |
H A D | pnv_phb3.h | 58 PCIBus *bus; 108 PCIBus parent;
|