aboutsummaryrefslogtreecommitdiff
path: root/hw/rtl8139.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/rtl8139.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/rtl8139.c')
-rw-r--r--hw/rtl8139.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c
index db6353a..94fc2fc 100644
--- a/hw/rtl8139.c
+++ b/hw/rtl8139.c
@@ -3409,7 +3409,7 @@ static void rtl8139_timer(void *opaque)
}
#endif /* RTL8139_ONBOARD_TIMER */
-void pci_rtl8139_init(PCIBus *bus, NICInfo *nd)
+void pci_rtl8139_init(PCIBus *bus, NICInfo *nd, int devfn)
{
PCIRTL8139State *d;
RTL8139State *s;
@@ -3417,7 +3417,7 @@ void pci_rtl8139_init(PCIBus *bus, NICInfo *nd)
d = (PCIRTL8139State *)pci_register_device(bus,
"RTL8139", sizeof(PCIRTL8139State),
- -1,
+ devfn,
NULL, NULL);
pci_conf = d->dev.config;
pci_conf[0x00] = 0xec; /* Realtek 8139 */