aboutsummaryrefslogtreecommitdiff
path: root/hw/pcnet.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-10 16:17:21 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-10 16:17:21 +0000
commitabcebc7e803f243ef244e06349a4b911daa738f4 (patch)
treedfdf7fd8882c42e5124487063909c5eca019fddb /hw/pcnet.c
parentf158755072f368d539b31851b308bec985893abb (diff)
downloadqemu-abcebc7e803f243ef244e06349a4b911daa738f4.zip
qemu-abcebc7e803f243ef244e06349a4b911daa738f4.tar.gz
qemu-abcebc7e803f243ef244e06349a4b911daa738f4.tar.bz2
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/pcnet.c')
-rw-r--r--hw/pcnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pcnet.c b/hw/pcnet.c
index f242cd1..3bdddeb 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -1889,7 +1889,7 @@ static void pci_physical_memory_read(void *dma_opaque, target_phys_addr_t addr,
cpu_physical_memory_read(addr, buf, len);
}
-void pci_pcnet_init(PCIBus *bus, NICInfo *nd)
+void pci_pcnet_init(PCIBus *bus, NICInfo *nd, int devfn)
{
PCNetState *d;
uint8_t *pci_conf;
@@ -1900,7 +1900,7 @@ void pci_pcnet_init(PCIBus *bus, NICInfo *nd)
#endif
d = (PCNetState *)pci_register_device(bus, "PCNet", sizeof(PCNetState),
- -1, NULL, NULL);
+ devfn, NULL, NULL);
pci_conf = d->dev.config;