Revision d6fd1e66

b/hw/eepro100.c
397 397

  
398 398
    /* PCI Vendor ID */
399 399
    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
400
    /* PCI Device ID */
401
    pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82551IT);
400
    /* PCI Device ID depends on device and is set below. */
402 401
    /* PCI Command */
403 402
    PCI_CONFIG_16(PCI_COMMAND, 0x0000);
404 403
    /* PCI Status */
......
446 445

  
447 446
    switch (device) {
448 447
    case i82551:
449
        //~ PCI_CONFIG_16(PCI_DEVICE_ID, 0x1209);
448
        pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82551IT);
450 449
        PCI_CONFIG_8(PCI_REVISION_ID, 0x0f);
451 450
        break;
452 451
    case i82557B:
453
        PCI_CONFIG_16(PCI_DEVICE_ID, 0x1229);
452
        pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82557);
454 453
        PCI_CONFIG_8(PCI_REVISION_ID, 0x02);
455 454
        break;
456 455
    case i82557C:
457
        PCI_CONFIG_16(PCI_DEVICE_ID, 0x1229);
456
        pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82557);
458 457
        PCI_CONFIG_8(PCI_REVISION_ID, 0x03);
459 458
        break;
460 459
    case i82558B:
461
        PCI_CONFIG_16(PCI_DEVICE_ID, 0x1229);
460
        pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82557);
462 461
        PCI_CONFIG_16(PCI_STATUS, 0x2810);
463 462
        PCI_CONFIG_8(PCI_REVISION_ID, 0x05);
464 463
        break;
465 464
    case i82559C:
466
        PCI_CONFIG_16(PCI_DEVICE_ID, 0x1229);
465
        pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82557);
467 466
        PCI_CONFIG_16(PCI_STATUS, 0x2810);
468 467
        //~ PCI_CONFIG_8(PCI_REVISION_ID, 0x08);
469 468
        break;
470 469
    case i82559ER:
471
        //~ PCI_CONFIG_16(PCI_DEVICE_ID, 0x1209);
470
        pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82551IT);
472 471
        PCI_CONFIG_16(PCI_STATUS, 0x2810);
473 472
        PCI_CONFIG_8(PCI_REVISION_ID, 0x09);
474 473
        break;
b/hw/pci.h
59 59

  
60 60
/* Intel (0x8086) */
61 61
#define PCI_DEVICE_ID_INTEL_82551IT      0x1209
62
#define PCI_DEVICE_ID_INTEL_82557        0x1229
62 63

  
63 64
/* Red Hat / Qumranet (for QEMU) -- see pci-ids.txt */
64 65
#define PCI_VENDOR_ID_REDHAT_QUMRANET    0x1af4

Also available in: Unified diff