hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 19 Oct 2023 23:07:45 +0000 (00:07 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 2 Feb 2024 16:23:47 +0000 (16:23 +0000)
commit8d39f9ba14d64a147324778d3e1013eee4643e06
treea2a303be9faa874709506b64a4f0d6c7b08cf517
parent1785ae69ea262dbcfbd2d59d25ee5e7501701460
hw/i386/pc: use qemu_get_nic_info() and pci_init_nic_devices()

Eliminate direct access to nd_table[] and nb_nics by processing the the
Xen and ISA NICs first and then calling pci_init_nic_devices() for the
rest.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
hw/i386/pc.c
include/hw/net/ne2000-isa.h