Revision 0d2b962d
b/hw/xen_platform.c | ||
---|---|---|
290 | 290 |
|
291 | 291 |
pci_conf = d->pci_dev.config; |
292 | 292 |
|
293 |
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_XEN); |
|
294 |
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_XEN_PLATFORM); |
|
295 |
pci_set_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID, PCI_VENDOR_ID_XEN); |
|
296 |
pci_set_word(pci_conf + PCI_SUBSYSTEM_ID, PCI_DEVICE_ID_XEN_PLATFORM); |
|
297 |
|
|
298 | 293 |
pci_set_word(pci_conf + PCI_COMMAND, PCI_COMMAND_IO | PCI_COMMAND_MEMORY); |
299 | 294 |
|
300 |
pci_config_set_revision(pci_conf, 1); |
|
301 | 295 |
pci_config_set_prog_interface(pci_conf, 0); |
302 | 296 |
|
303 |
pci_config_set_class(pci_conf, PCI_CLASS_OTHERS << 8 | 0x80); |
|
304 |
|
|
305 | 297 |
pci_conf[PCI_INTERRUPT_PIN] = 1; |
306 | 298 |
|
307 | 299 |
pci_register_bar(&d->pci_dev, 0, 0x100, |
... | ... | |
330 | 322 |
.qdev.size = sizeof(PCIXenPlatformState), |
331 | 323 |
.qdev.vmsd = &vmstate_xen_platform, |
332 | 324 |
.qdev.reset = platform_reset, |
325 |
|
|
326 |
.vendor_id = PCI_VENDOR_ID_XEN, |
|
327 |
.device_id = PCI_DEVICE_ID_XEN_PLATFORM, |
|
328 |
.class_id = PCI_CLASS_OTHERS << 8 | 0x80, |
|
329 |
.subsystem_vendor_id = PCI_VENDOR_ID_XEN, |
|
330 |
.subsystem_id = PCI_DEVICE_ID_XEN_PLATFORM, |
|
331 |
.revision = 1, |
|
333 | 332 |
}; |
334 | 333 |
|
335 | 334 |
static void xen_platform_register(void) |
Also available in: Unified diff