From cb457d7679840b95de361c42921e601bd224ecf5 Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 13 Jan 2009 19:47:10 +0000 Subject: Make pci_nic_init() use qemu_setup_nic_model() (Mark McLoughlin) Add a table of PCI NIC models to pass to qemu_setup_nic_model(). While we're at it, also add a corresponding table of NIC init functions. Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6287 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/sun4u.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'hw/sun4u.c') diff --git a/hw/sun4u.c b/hw/sun4u.c index 35f299c..91e7538 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -535,11 +535,8 @@ static void sun4uv_init(ram_addr_t RAM_size, int vga_ram_size, } } - for(i = 0; i < nb_nics; i++) { - if (!nd_table[i].model) - nd_table[i].model = "ne2k_pci"; - pci_nic_init(pci_bus, &nd_table[i], -1); - } + for(i = 0; i < nb_nics; i++) + pci_nic_init(pci_bus, &nd_table[i], -1, "ne2k_pci"); irq = qemu_allocate_irqs(cpu_set_irq, env, MAX_PILS); if (drive_get_max_bus(IF_IDE) >= MAX_IDE_BUS) { -- cgit v1.1