Revision 0ae18cee hw/versatilepb.c
b/hw/versatilepb.c | ||
---|---|---|
194 | 194 |
so many of the qemu PCI devices are not useable. */ |
195 | 195 |
for(n = 0; n < nb_nics; n++) { |
196 | 196 |
nd = &nd_table[n]; |
197 |
if (!nd->model) |
|
198 |
nd->model = done_smc ? "rtl8139" : "smc91c111"; |
|
199 |
if (strcmp(nd->model, "smc91c111") == 0) { |
|
197 |
|
|
198 |
if ((!nd->model && !done_smc) || strcmp(nd->model, "smc91c111") == 0) { |
|
200 | 199 |
smc91c111_init(nd, 0x10010000, sic[25]); |
200 |
done_smc = 1; |
|
201 | 201 |
} else { |
202 |
if (!nd->model) |
|
203 |
nd->model = "rtl8139"; |
|
202 | 204 |
pci_nic_init(pci_bus, nd, -1); |
203 | 205 |
} |
204 | 206 |
} |
Also available in: Unified diff