diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-10 16:17:21 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-10 16:17:21 +0000 |
commit | abcebc7e803f243ef244e06349a4b911daa738f4 (patch) | |
tree | dfdf7fd8882c42e5124487063909c5eca019fddb /hw/ne2000.c | |
parent | f158755072f368d539b31851b308bec985893abb (diff) |
Devfn number for network PCI cards, by Aurelien Jarno.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2314 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ne2000.c')
-rw-r--r-- | hw/ne2000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ne2000.c b/hw/ne2000.c index 94700c17b9..a045a20430 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -781,7 +781,7 @@ 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(PCIBus *bus, NICInfo *nd) +void pci_ne2000_init(PCIBus *bus, NICInfo *nd, int devfn) { PCINE2000State *d; NE2000State *s; @@ -789,7 +789,7 @@ void pci_ne2000_init(PCIBus *bus, NICInfo *nd) d = (PCINE2000State *)pci_register_device(bus, "NE2000", sizeof(PCINE2000State), - -1, + devfn, NULL, NULL); pci_conf = d->dev.config; pci_conf[0x00] = 0xec; // Realtek 8029 |