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/net | |
| parent | 1785ae69ea262dbcfbd2d59d25ee5e7501701460 (diff) | |
| download | focaccia-qemu-8d39f9ba14d64a147324778d3e1013eee4643e06.tar.gz focaccia-qemu-8d39f9ba14d64a147324778d3e1013eee4643e06.zip | |
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/net')
| -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 af59ee0b02..73bae10ad1 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); |