mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 14:08:32 +00:00
qemu: return PCIDevice on net device init and record devfn (Marcelo Tosatti)
Change the PCI network drivers init functions to return the PCIDev, to inform which slot has been hot-plugged. Also record PCIDevice structure on NICInfo to locate for release on hot-removal. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6593 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
@@ -3414,7 +3414,7 @@ static void rtl8139_timer(void *opaque)
|
||||
}
|
||||
#endif /* RTL8139_ONBOARD_TIMER */
|
||||
|
||||
void pci_rtl8139_init(PCIBus *bus, NICInfo *nd, int devfn)
|
||||
PCIDevice *pci_rtl8139_init(PCIBus *bus, NICInfo *nd, int devfn)
|
||||
{
|
||||
PCIRTL8139State *d;
|
||||
RTL8139State *s;
|
||||
@@ -3466,4 +3466,5 @@ void pci_rtl8139_init(PCIBus *bus, NICInfo *nd, int devfn)
|
||||
qemu_mod_timer(s->timer,
|
||||
rtl8139_get_next_tctr_time(s,qemu_get_clock(vm_clock)));
|
||||
#endif /* RTL8139_ONBOARD_TIMER */
|
||||
return (PCIDevice *)d;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user