mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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
This commit is contained in:
parent
f158755072
commit
abcebc7e80
10 changed files with 20 additions and 20 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue