summaryrefslogtreecommitdiff
path: root/hw/ne2000.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-21 19:43:00 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-21 19:43:00 +0000
commit46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806 (patch)
tree98b646b43c0032b4d2fafb8ad16d7bde2fbd69bc /hw/ne2000.c
parent7c29d0c0cff07660e8f012f0befb01962ac5f7f6 (diff)
downloadqemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.tar.gz
qemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.tar.bz2
qemu-46e50e9d58aa0fd6ab8f5cadceb8b55ee7e1d806.zip
added PCI bus
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@961 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ne2000.c')
-rw-r--r--hw/ne2000.c7
1 files changed, 4 insertions, 3 deletions
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