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

« back to all changes in this revision

Viewing changes to hw/ivshmem.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:
779
779
 
780
780
static void ivshmem_class_init(ObjectClass *klass, void *data)
781
781
{
 
782
    DeviceClass *dc = DEVICE_CLASS(klass);
782
783
    PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
783
784
 
784
785
    k->init = pci_ivshmem_init;
786
787
    k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;
787
788
    k->device_id = 0x1110;
788
789
    k->class_id = PCI_CLASS_MEMORY_RAM;
 
790
    dc->reset = ivshmem_reset;
 
791
    dc->props = ivshmem_properties;
789
792
}
790
793
 
791
 
static DeviceInfo ivshmem_info = {
792
 
    .name = "ivshmem",
793
 
    .size = sizeof(IVShmemState),
794
 
    .reset = ivshmem_reset,
795
 
    .props = ivshmem_properties,
796
 
    .class_init = ivshmem_class_init,
 
794
static TypeInfo ivshmem_info = {
 
795
    .name          = "ivshmem",
 
796
    .parent        = TYPE_PCI_DEVICE,
 
797
    .instance_size = sizeof(IVShmemState),
 
798
    .class_init    = ivshmem_class_init,
797
799
};
798
800
 
799
 
static void ivshmem_register_devices(void)
 
801
static void ivshmem_register_types(void)
800
802
{
801
 
    pci_qdev_register(&ivshmem_info);
 
803
    type_register_static(&ivshmem_info);
802
804
}
803
805
 
804
 
device_init(ivshmem_register_devices)
 
806
type_init(ivshmem_register_types)