Revision e72d5c9d

b/hw/e1000.c
1164 1164

  
1165 1165
    pci_conf = d->dev.config;
1166 1166

  
1167
    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
1168
    pci_config_set_device_id(pci_conf, E1000_DEVID);
1169 1167
    /* TODO: we have no capabilities, so why is this bit set? */
1170 1168
    pci_set_word(pci_conf + PCI_STATUS, PCI_STATUS_CAP_LIST);
1171
    pci_conf[PCI_REVISION_ID] = 0x03;
1172
    pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET);
1173 1169
    /* TODO: RST# value should be 0, PCI spec 6.2.4 */
1174 1170
    pci_conf[PCI_CACHE_LINE_SIZE] = 0x10;
1175 1171

  
......
1221 1217
    .init       = pci_e1000_init,
1222 1218
    .exit       = pci_e1000_uninit,
1223 1219
    .romfile    = "pxe-e1000.rom",
1220
    .vendor_id  = PCI_VENDOR_ID_INTEL,
1221
    .device_id  = E1000_DEVID,
1222
    .revision   = 0x03,
1223
    .class_id   = PCI_CLASS_NETWORK_ETHERNET,
1224 1224
    .qdev.props = (Property[]) {
1225 1225
        DEFINE_NIC_PROPERTIES(E1000State, conf),
1226 1226
        DEFINE_PROP_END_OF_LIST(),

Also available in: Unified diff