Revision 7cba16a7

b/hw/rtl8139.c
3453 3453
    uint8_t *pci_conf;
3454 3454

  
3455 3455
    pci_conf = s->dev.config;
3456
    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_REALTEK);
3457
    pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_REALTEK_8139);
3458
    pci_conf[PCI_REVISION_ID] = RTL8139_PCI_REVID; /* >=0x20 is for 8139C+ */
3459
    pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET);
3460 3456
    pci_conf[PCI_INTERRUPT_PIN] = 1;    /* interrupt pin 0 */
3461 3457
    /* TODO: start of capability list, but no capability
3462 3458
     * list bit in status register, and offset 0xdc seems unused. */
......
3510 3506
    .init       = pci_rtl8139_init,
3511 3507
    .exit       = pci_rtl8139_uninit,
3512 3508
    .romfile    = "pxe-rtl8139.rom",
3509
    .vendor_id  = PCI_VENDOR_ID_REALTEK,
3510
    .device_id  = PCI_DEVICE_ID_REALTEK_8139,
3511
    .revision   = RTL8139_PCI_REVID, /* >=0x20 is for 8139C+ */
3512
    .class_id   = PCI_CLASS_NETWORK_ETHERNET,
3513 3513
    .qdev.props = (Property[]) {
3514 3514
        DEFINE_NIC_PROPERTIES(RTL8139State, conf),
3515 3515
        DEFINE_PROP_END_OF_LIST(),

Also available in: Unified diff