Revision abcebc7e hw/ne2000.c

b/hw/ne2000.c
781 781
    register_ioport_read(addr + 0x1f, 1, 1, ne2000_reset_ioport_read, s);
782 782
}
783 783

  
784
void pci_ne2000_init(PCIBus *bus, NICInfo *nd)
784
void pci_ne2000_init(PCIBus *bus, NICInfo *nd, int devfn)
785 785
{
786 786
    PCINE2000State *d;
787 787
    NE2000State *s;
......
789 789
    
790 790
    d = (PCINE2000State *)pci_register_device(bus,
791 791
                                              "NE2000", sizeof(PCINE2000State),
792
                                              -1, 
792
                                              devfn, 
793 793
                                              NULL, NULL);
794 794
    pci_conf = d->dev.config;
795 795
    pci_conf[0x00] = 0xec; // Realtek 8029

Also available in: Unified diff