Revision 173a543b hw/piix_pci.c
b/hw/piix_pci.c | ||
---|---|---|
195 | 195 |
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_INTEL); |
196 | 196 |
pci_config_set_device_id(d->config, PCI_DEVICE_ID_INTEL_82441); |
197 | 197 |
d->config[0x08] = 0x02; // revision |
198 |
d->config[0x0a] = 0x00; // class_sub = host2pci |
|
199 |
d->config[0x0b] = 0x06; // class_base = PCI_bridge |
|
198 |
pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST); |
|
200 | 199 |
d->config[0x0e] = 0x00; // header_type |
201 | 200 |
|
202 | 201 |
d->config[0x72] = 0x02; /* SMRAM */ |
... | ... | |
337 | 336 |
|
338 | 337 |
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); |
339 | 338 |
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371SB_0); // 82371SB PIIX3 PCI-to-ISA bridge (Step A1) |
340 |
pci_conf[0x0a] = 0x01; // class_sub = PCI_ISA |
|
341 |
pci_conf[0x0b] = 0x06; // class_base = PCI_bridge |
|
339 |
pci_config_set_class(pci_conf, PCI_CLASS_BRIDGE_ISA); |
|
342 | 340 |
pci_conf[0x0e] = 0x80; // header_type = PCI_multifunction, generic |
343 | 341 |
|
344 | 342 |
piix3_reset(d); |
... | ... | |
359 | 357 |
|
360 | 358 |
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); |
361 | 359 |
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_0); // 82371AB/EB/MB PIIX4 PCI-to-ISA bridge |
362 |
pci_conf[0x0a] = 0x01; // class_sub = PCI_ISA |
|
363 |
pci_conf[0x0b] = 0x06; // class_base = PCI_bridge |
|
360 |
pci_config_set_class(pci_conf, PCI_CLASS_BRIDGE_ISA); |
|
364 | 361 |
pci_conf[0x0e] = 0x80; // header_type = PCI_multifunction, generic |
365 | 362 |
|
366 | 363 |
piix4_reset(d); |
Also available in: Unified diff