mirror of
https://github.com/qemu/qemu.git
synced 2025-08-16 06:43:21 +00:00
hw/ppc: use pci_init_nic_devices()
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
0aff81618b
commit
36b6968d34
@ -1079,9 +1079,7 @@ void ppce500_init(MachineState *machine)
|
|||||||
|
|
||||||
if (pci_bus) {
|
if (pci_bus) {
|
||||||
/* Register network interfaces. */
|
/* Register network interfaces. */
|
||||||
for (i = 0; i < nb_nics; i++) {
|
pci_init_nic_devices(pci_bus, mc->default_nic);
|
||||||
pci_nic_init_nofail(&nd_table[i], pci_bus, mc->default_nic, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Register spinning region */
|
/* Register spinning region */
|
||||||
|
@ -444,9 +444,7 @@ static void ppc_core99_init(MachineState *machine)
|
|||||||
graphic_depth = 15;
|
graphic_depth = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < nb_nics; i++) {
|
pci_init_nic_devices(pci_bus, mc->default_nic);
|
||||||
pci_nic_init_nofail(&nd_table[i], pci_bus, mc->default_nic, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The NewWorld NVRAM is not located in the MacIO device */
|
/* The NewWorld NVRAM is not located in the MacIO device */
|
||||||
if (kvm_enabled() && qemu_real_host_page_size() > 4096) {
|
if (kvm_enabled() && qemu_real_host_page_size() > 4096) {
|
||||||
|
@ -277,9 +277,7 @@ static void ppc_heathrow_init(MachineState *machine)
|
|||||||
|
|
||||||
pci_vga_init(pci_bus);
|
pci_vga_init(pci_bus);
|
||||||
|
|
||||||
for (i = 0; i < nb_nics; i++) {
|
pci_init_nic_devices(pci_bus, mc->default_nic);
|
||||||
pci_nic_init_nofail(&nd_table[i], pci_bus, mc->default_nic, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* MacIO IDE */
|
/* MacIO IDE */
|
||||||
ide_drive_get(hd, ARRAY_SIZE(hd));
|
ide_drive_get(hd, ARRAY_SIZE(hd));
|
||||||
|
@ -161,7 +161,6 @@ static void bamboo_init(MachineState *machine)
|
|||||||
DeviceState *uicdev;
|
DeviceState *uicdev;
|
||||||
SysBusDevice *uicsbd;
|
SysBusDevice *uicsbd;
|
||||||
int success;
|
int success;
|
||||||
int i;
|
|
||||||
|
|
||||||
if (kvm_enabled()) {
|
if (kvm_enabled()) {
|
||||||
error_report("machine %s does not support the KVM accelerator",
|
error_report("machine %s does not support the KVM accelerator",
|
||||||
@ -234,14 +233,11 @@ static void bamboo_init(MachineState *machine)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pcibus) {
|
if (pcibus) {
|
||||||
/* Register network interfaces. */
|
/*
|
||||||
for (i = 0; i < nb_nics; i++) {
|
* There are no PCI NICs on the Bamboo board, but there are
|
||||||
/*
|
* PCI slots, so we can pick whatever default model we want.
|
||||||
* There are no PCI NICs on the Bamboo board, but there are
|
*/
|
||||||
* PCI slots, so we can pick whatever default model we want.
|
pci_init_nic_devices(pcibus, mc->default_nic);
|
||||||
*/
|
|
||||||
pci_nic_init_nofail(&nd_table[i], pcibus, mc->default_nic, NULL);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Load kernel. */
|
/* Load kernel. */
|
||||||
|
Loading…
Reference in New Issue
Block a user