~dannf/qemu-linaro/qemu-highbank-ppa

« back to all changes in this revision

Viewing changes to hw/xen_platform.c

  • Committer: Steve Langasek
  • Date: 2012-03-15 21:13:19 UTC
  • mfrom: (0.1.15)
  • Revision ID: steve.langasek@canonical.com-20120315211319-f1j3ot1ihx30b2s9
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
374
374
 
375
375
static void xen_platform_class_init(ObjectClass *klass, void *data)
376
376
{
 
377
    DeviceClass *dc = DEVICE_CLASS(klass);
377
378
    PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
378
379
 
379
380
    k->init = xen_platform_initfn;
383
384
    k->subsystem_vendor_id = PCI_VENDOR_ID_XEN;
384
385
    k->subsystem_id = PCI_DEVICE_ID_XEN_PLATFORM;
385
386
    k->revision = 1;
 
387
    dc->desc = "XEN platform pci device";
 
388
    dc->reset = platform_reset;
 
389
    dc->vmsd = &vmstate_xen_platform;
386
390
}
387
391
 
388
 
static DeviceInfo xen_platform_info = {
389
 
    .name = "xen-platform",
390
 
    .desc = "XEN platform pci device",
391
 
    .size = sizeof(PCIXenPlatformState),
392
 
    .vmsd = &vmstate_xen_platform,
393
 
    .reset = platform_reset,
394
 
    .class_init = xen_platform_class_init,
 
392
static TypeInfo xen_platform_info = {
 
393
    .name          = "xen-platform",
 
394
    .parent        = TYPE_PCI_DEVICE,
 
395
    .instance_size = sizeof(PCIXenPlatformState),
 
396
    .class_init    = xen_platform_class_init,
395
397
};
396
398
 
397
 
static void xen_platform_register(void)
 
399
static void xen_platform_register_types(void)
398
400
{
399
 
    pci_qdev_register(&xen_platform_info);
 
401
    type_register_static(&xen_platform_info);
400
402
}
401
403
 
402
 
device_init(xen_platform_register);
 
404
type_init(xen_platform_register_types)