Revision 18f1c729

b/hw/ne2000.c
721 721
    uint8_t *pci_conf;
722 722

  
723 723
    pci_conf = d->dev.config;
724
    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_REALTEK);
725
    pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_REALTEK_8029);
726
    pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET);
727 724
    /* TODO: RST# value should be 0. PCI spec 6.2.4 */
728 725
    pci_conf[PCI_INTERRUPT_PIN] = 1; // interrupt pin 0
729 726

  
......
767 764
    .qdev.vmsd  = &vmstate_pci_ne2000,
768 765
    .init       = pci_ne2000_init,
769 766
    .exit       = pci_ne2000_exit,
767
    .vendor_id  = PCI_VENDOR_ID_REALTEK,
768
    .device_id  = PCI_DEVICE_ID_REALTEK_8029,
769
    .class_id   = PCI_CLASS_NETWORK_ETHERNET,
770 770
    .qdev.props = (Property[]) {
771 771
        DEFINE_NIC_PROPERTIES(PCINE2000State, ne2000.c),
772 772
        DEFINE_PROP_END_OF_LIST(),

Also available in: Unified diff