Revision 76ab9583 hw/spapr_pci.c
b/hw/spapr_pci.c | ||
---|---|---|
202 | 202 |
return 0; |
203 | 203 |
} |
204 | 204 |
|
205 |
static int spapr_main_pci_host_init(PCIDevice *d) |
|
206 |
{ |
|
207 |
return 0; |
|
208 |
} |
|
209 |
|
|
210 |
static void spapr_main_pci_host_class_init(ObjectClass *klass, void *data) |
|
211 |
{ |
|
212 |
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); |
|
213 |
|
|
214 |
k->init = spapr_main_pci_host_init; |
|
215 |
} |
|
216 |
|
|
217 |
static TypeInfo spapr_main_pci_host_info = { |
|
218 |
.name = "spapr-pci-host-bridge-pci", |
|
219 |
.parent = TYPE_PCI_DEVICE, |
|
220 |
.instance_size = sizeof(PCIDevice), |
|
221 |
.class_init = spapr_main_pci_host_class_init, |
|
222 |
}; |
|
223 |
|
|
224 | 205 |
static void spapr_phb_class_init(ObjectClass *klass, void *data) |
225 | 206 |
{ |
226 | 207 |
SysBusDeviceClass *sdc = SYS_BUS_DEVICE_CLASS(klass); |
... | ... | |
238 | 219 |
static void spapr_register_types(void) |
239 | 220 |
{ |
240 | 221 |
type_register_static(&spapr_phb_info); |
241 |
type_register_static(&spapr_main_pci_host_info); |
|
242 | 222 |
} |
243 | 223 |
|
244 | 224 |
type_init(spapr_register_types) |
Also available in: Unified diff