Revision 65ff544b

b/hw/ide/via.c
160 160
    PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev);;
161 161
    uint8_t *pci_conf = d->dev.config;
162 162

  
163
    pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_VIA);
164
    pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_VIA_IDE);
165
    pci_config_set_class(pci_conf, PCI_CLASS_STORAGE_IDE);
166 163
    pci_config_set_prog_interface(pci_conf, 0x8a); /* legacy ATA mode */
167
    pci_config_set_revision(pci_conf,0x06); /* Revision 0.6 */
168 164
    pci_set_long(pci_conf + PCI_CAPABILITY_LIST, 0x000000c0);
169 165

  
170 166
    qemu_register_reset(via_reset, d);
......
191 187
    .qdev.size    = sizeof(PCIIDEState),
192 188
    .qdev.no_user = 1,
193 189
    .init         = vt82c686b_ide_initfn,
190
    .vendor_id    = PCI_VENDOR_ID_VIA,
191
    .device_id    = PCI_DEVICE_ID_VIA_IDE,
192
    .revision     = 0x06,
193
    .class_id     = PCI_CLASS_STORAGE_IDE,
194 194
};
195 195

  
196 196
static void via_ide_register(void)

Also available in: Unified diff