diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2023-10-20 00:07:45 +0100 |
---|---|---|
committer | David Woodhouse <dwmw@amazon.co.uk> | 2024-02-02 16:23:47 +0000 |
commit | 8d39f9ba14d64a147324778d3e1013eee4643e06 (patch) | |
tree | a2a303be9faa874709506b64a4f0d6c7b08cf517 /include/hw | |
parent | 1785ae69ea262dbcfbd2d59d25ee5e7501701460 (diff) | |
download | qemu-8d39f9ba14d64a147324778d3e1013eee4643e06.zip qemu-8d39f9ba14d64a147324778d3e1013eee4643e06.tar.gz qemu-8d39f9ba14d64a147324778d3e1013eee4643e06.tar.bz2 |
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>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/net/ne2000-isa.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/net/ne2000-isa.h b/include/hw/net/ne2000-isa.h index af59ee0..73bae10 100644 --- a/include/hw/net/ne2000-isa.h +++ b/include/hw/net/ne2000-isa.h @@ -22,8 +22,6 @@ static inline ISADevice *isa_ne2000_init(ISABus *bus, int base, int irq, { ISADevice *d; - qemu_check_nic_model(nd, "ne2k_isa"); - d = isa_try_new(TYPE_ISA_NE2000); if (d) { DeviceState *dev = DEVICE(d); |