Revision deb54399 hw/rtl8139.c

b/hw/rtl8139.c
1187 1187
    s->eeprom.contents[0] = 0x8129;
1188 1188
#if 1
1189 1189
    // PCI vendor and device ID should be mirrored here
1190
    s->eeprom.contents[1] = 0x10ec;
1191
    s->eeprom.contents[2] = 0x8139;
1190
    s->eeprom.contents[1] = PCI_VENDOR_ID_REALTEK;
1191
    s->eeprom.contents[2] = PCI_DEVICE_ID_REALTEK_8139;
1192 1192
#endif
1193 1193

  
1194 1194
    s->eeprom.contents[7] = s->macaddr[0] | s->macaddr[1] << 8;
......
3425 3425
                                              devfn,
3426 3426
                                              NULL, NULL);
3427 3427
    pci_conf = d->dev.config;
3428
    pci_conf[0x00] = 0xec; /* Realtek 8139 */
3429
    pci_conf[0x01] = 0x10;
3430
    pci_conf[0x02] = 0x39;
3431
    pci_conf[0x03] = 0x81;
3428
    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_REALTEK);
3429
    pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_REALTEK_8139);
3432 3430
    pci_conf[0x04] = 0x05; /* command = I/O space, Bus Master */
3433 3431
    pci_conf[0x08] = RTL8139_PCI_REVID; /* PCI revision ID; >=0x20 is for 8139C+ */
3434 3432
    pci_conf[0x0a] = 0x00; /* ethernet network controller */

Also available in: Unified diff