mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Allow selection of emulated network card.
rtl8139 emulation. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1745 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d861b05ea3
commit
a41b2ff2dd
13 changed files with 2983 additions and 25 deletions
14
hw/pci.c
14
hw/pci.c
|
@ -1837,3 +1837,17 @@ void pci_bios_init(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Initialize a PCI NIC. */
|
||||
void pci_nic_init(PCIBus *bus, NICInfo *nd)
|
||||
{
|
||||
if (strcmp(nd->model, "ne2k_pci") == 0) {
|
||||
pci_ne2000_init(bus, nd);
|
||||
} else if (strcmp(nd->model, "rtl8139") == 0) {
|
||||
pci_rtl8139_init(bus, nd);
|
||||
} else {
|
||||
fprintf(stderr, "qemu: Unsupported NIC: %s\n", nd->model);
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue