Revision a614f52d
b/hw/grackle_pci.c | ||
---|---|---|
104 | 104 |
|
105 | 105 |
static int grackle_pci_host_init(PCIDevice *d) |
106 | 106 |
{ |
107 |
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_MOTOROLA); |
|
108 |
pci_config_set_device_id(d->config, PCI_DEVICE_ID_MOTOROLA_MPC106); |
|
109 |
d->config[0x08] = 0x00; // revision |
|
110 | 107 |
d->config[0x09] = 0x01; |
111 |
pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST); |
|
112 | 108 |
return 0; |
113 | 109 |
} |
114 | 110 |
|
... | ... | |
116 | 112 |
.qdev.name = "grackle", |
117 | 113 |
.qdev.size = sizeof(PCIDevice), |
118 | 114 |
.init = grackle_pci_host_init, |
115 |
.vendor_id = PCI_VENDOR_ID_MOTOROLA, |
|
116 |
.device_id = PCI_DEVICE_ID_MOTOROLA_MPC106, |
|
117 |
.revision = 0x00, |
|
118 |
.class_id = PCI_CLASS_BRIDGE_HOST, |
|
119 | 119 |
}; |
120 | 120 |
|
121 | 121 |
static void grackle_register_devices(void) |
Also available in: Unified diff