mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
1785ae69ea
commit
8d39f9ba14
2 changed files with 19 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue