Revision 146beee5
b/hw/piix4.c | ||
---|---|---|
86 | 86 |
static int piix4_initfn(PCIDevice *dev) |
87 | 87 |
{ |
88 | 88 |
PIIX4State *d = DO_UPCAST(PIIX4State, dev, dev); |
89 |
uint8_t *pci_conf; |
|
90 | 89 |
|
91 | 90 |
isa_bus_new(&d->dev.qdev); |
92 |
|
|
93 |
pci_conf = d->dev.config; |
|
94 |
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); |
|
95 |
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_0); // 82371AB/EB/MB PIIX4 PCI-to-ISA bridge |
|
96 |
pci_config_set_class(pci_conf, PCI_CLASS_BRIDGE_ISA); |
|
97 |
|
|
98 | 91 |
piix4_dev = &d->dev; |
99 | 92 |
qemu_register_reset(piix4_reset, d); |
100 | 93 |
return 0; |
... | ... | |
117 | 110 |
.qdev.no_user = 1, |
118 | 111 |
.no_hotplug = 1, |
119 | 112 |
.init = piix4_initfn, |
113 |
.vendor_id = PCI_VENDOR_ID_INTEL, |
|
114 |
.device_id = PCI_DEVICE_ID_INTEL_82371AB_0, // 82371AB/EB/MB PIIX4 PCI-to-ISA bridge |
|
115 |
.class_id = PCI_CLASS_BRIDGE_ISA, |
|
120 | 116 |
},{ |
121 | 117 |
/* end of list */ |
122 | 118 |
} |
Also available in: Unified diff