diff options
| author | David Woodhouse <dwmw@amazon.co.uk> | 2023-10-20 01:05:31 +0100 |
|---|---|---|
| committer | David Woodhouse <dwmw@amazon.co.uk> | 2024-02-02 16:23:47 +0000 |
| commit | 1785ae69ea262dbcfbd2d59d25ee5e7501701460 (patch) | |
| tree | dcb0ca9f1da64bd2fe4fcb5cd9fa78e10af4c9fa /hw/xen/xen_devconfig.c | |
| parent | 93125e4b4f4b96c8fdce7ae73d8d702f37d9f3b2 (diff) | |
| download | focaccia-qemu-1785ae69ea262dbcfbd2d59d25ee5e7501701460.tar.gz focaccia-qemu-1785ae69ea262dbcfbd2d59d25ee5e7501701460.zip | |
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>
Diffstat (limited to 'hw/xen/xen_devconfig.c')
0 files changed, 0 insertions, 0 deletions