From 46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806 Mon Sep 17 00:00:00 2001 From: bellard Date: Mon, 21 Jun 2004 19:43:00 +0000 Subject: added PCI bus git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@961 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/ne2000.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'hw/ne2000.c') diff --git a/hw/ne2000.c b/hw/ne2000.c index 9f35f19911..50a34173f1 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -613,14 +613,15 @@ static void ne2000_map(PCIDevice *pci_dev, int region_num, register_ioport_read(addr + 0x1f, 1, 1, ne2000_reset_ioport_read, s); } -void pci_ne2000_init(NetDriverState *nd) +void pci_ne2000_init(PCIBus *bus, NetDriverState *nd) { PCINE2000State *d; NE2000State *s; uint8_t *pci_conf; - d = (PCINE2000State *)pci_register_device("NE2000", sizeof(PCINE2000State), - 0, -1, + d = (PCINE2000State *)pci_register_device(bus, + "NE2000", sizeof(PCINE2000State), + -1, NULL, NULL); pci_conf = d->dev.config; pci_conf[0x00] = 0xec; // Realtek 8029 -- cgit v1.2.3-55-g7522