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/r2d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/r2d.c') diff --git a/hw/r2d.c b/hw/r2d.c index 5d5eb1e498..88853e7102 100644 --- a/hw/r2d.c +++ b/hw/r2d.c @@ -230,9 +230,9 @@ static void r2d_init(ram_addr_t ram_size, int vga_ram_size, drives_table[drive_get_index(IF_IDE, 0, 0)].bdrv, NULL); /* NIC: rtl8139 on-board, and 2 slots. */ - pci_rtl8139_init(pci, &nd_table[0], 2 << 3); + pci_nic_init(pci, &nd_table[0], 2 << 3, "rtl8139"); for (i = 1; i < nb_nics; i++) - pci_nic_init(pci, &nd_table[i], -1); + pci_nic_init(pci, &nd_table[i], -1, "ne2k_pci"); /* Todo: register on board registers */ { -- cgit 1.4.1