Revision a41b2ff2 hw/pci.c
b/hw/pci.c | ||
---|---|---|
1837 | 1837 |
} |
1838 | 1838 |
} |
1839 | 1839 |
} |
1840 |
|
|
1841 |
/* Initialize a PCI NIC. */ |
|
1842 |
void pci_nic_init(PCIBus *bus, NICInfo *nd) |
|
1843 |
{ |
|
1844 |
if (strcmp(nd->model, "ne2k_pci") == 0) { |
|
1845 |
pci_ne2000_init(bus, nd); |
|
1846 |
} else if (strcmp(nd->model, "rtl8139") == 0) { |
|
1847 |
pci_rtl8139_init(bus, nd); |
|
1848 |
} else { |
|
1849 |
fprintf(stderr, "qemu: Unsupported NIC: %s\n", nd->model); |
|
1850 |
exit (1); |
|
1851 |
} |
|
1852 |
} |
|
1853 |
|
Also available in: Unified diff