qemu-e2k/hw/pci
David Woodhouse 1785ae69ea hw/pci: add pci_init_nic_devices(), pci_init_nic_in_slot()
The loop over nd_table[] to add PCI NICs is repeated in quite a few
places. Add a helper function to do it.

Some platforms also try to instantiate a specific model in a specific
slot, to match the real hardware. Add pci_init_nic_in_slot() for that
purpose.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
2024-02-02 16:23:47 +00:00
..
Kconfig kconfig: Add PCIe devices to s390x machines 2023-07-14 11:10:57 +02:00
meson.build meson: remove CONFIG_ALL 2023-12-31 09:11:28 +01:00
msi.c
msix.c hw/pci: Constify VMState 2023-12-30 07:38:06 +11:00
pci_bridge.c pci: SLT must be RO 2023-10-04 04:53:52 -04:00
pci_host.c hw/pci: Constify VMState 2023-12-30 07:38:06 +11:00
pci-hmp-cmds.c
pci-internal.h
pci-qmp-cmds.c
pci-stub.c
pci.c hw/pci: add pci_init_nic_devices(), pci_init_nic_in_slot() 2024-02-02 16:23:47 +00:00
pcie_aer.c hw/pci: Constify VMState 2023-12-30 07:38:06 +11:00
pcie_doe.c
pcie_host.c
pcie_port.c
pcie_sriov.c pcie_sriov: Remove g_new assertion 2023-12-02 15:56:49 -05:00
pcie.c pcie: Specify 0 for ARI next function numbers 2023-07-10 18:59:32 -04:00
shpc.c hw/pci: Constify VMState 2023-12-30 07:38:06 +11:00
slotid_cap.c
trace-events
trace.h