Revision 0647b949

b/hw/ac97.c
1281 1281
    AC97LinkState *s = DO_UPCAST (AC97LinkState, dev, dev);
1282 1282
    uint8_t *c = s->dev.config;
1283 1283

  
1284
    pci_config_set_vendor_id (c, PCI_VENDOR_ID_INTEL); /* ro */
1285
    pci_config_set_device_id (c, PCI_DEVICE_ID_INTEL_82801AA_5); /* ro */
1286

  
1287 1284
    /* TODO: no need to override */
1288 1285
    c[PCI_COMMAND] = 0x00;      /* pcicmd pci command rw, ro */
1289 1286
    c[PCI_COMMAND + 1] = 0x00;
......
1292 1289
    c[PCI_STATUS] = PCI_STATUS_FAST_BACK;      /* pcists pci status rwc, ro */
1293 1290
    c[PCI_STATUS + 1] = PCI_STATUS_DEVSEL_MEDIUM >> 8;
1294 1291

  
1295
    c[PCI_REVISION_ID] = 0x01;      /* rid revision ro */
1296 1292
    c[PCI_CLASS_PROG] = 0x00;      /* pi programming interface ro */
1297
    pci_config_set_class (c, PCI_CLASS_MULTIMEDIA_AUDIO); /* ro */
1298 1293

  
1299 1294
    /* TODO set when bar is registered. no need to override. */
1300 1295
    /* nabmar native audio mixer base address rw */
......
1341 1336
    .qdev.size    = sizeof (AC97LinkState),
1342 1337
    .qdev.vmsd    = &vmstate_ac97,
1343 1338
    .init         = ac97_initfn,
1339
    .vendor_id    = PCI_VENDOR_ID_INTEL,
1340
    .device_id    = PCI_DEVICE_ID_INTEL_82801AA_5,
1341
    .revision     = 0x01,
1342
    .class_id     = PCI_CLASS_MULTIMEDIA_AUDIO,
1344 1343
};
1345 1344

  
1346 1345
static void ac97_register (void)

Also available in: Unified diff