arm11scu.c (95a9457fd44ad97c518858a4e1586a5498f9773c) | arm11scu.c (4f67d30b5e74e060b8dbe10528829b47345cd6e8) |
---|---|
1/* 2 * ARM11MPCore Snoop Control Unit (SCU) emulation 3 * 4 * Copyright (c) 2006-2007 CodeSourcery. 5 * Copyright (c) 2013 SUSE LINUX Products GmbH 6 * Written by Paul Brook and Andreas Färber 7 * 8 * This code is licensed under the GPL. --- 71 unchanged lines hidden (view full) --- 80 DEFINE_PROP_END_OF_LIST() 81}; 82 83static void arm11_scu_class_init(ObjectClass *oc, void *data) 84{ 85 DeviceClass *dc = DEVICE_CLASS(oc); 86 87 dc->realize = arm11_scu_realize; | 1/* 2 * ARM11MPCore Snoop Control Unit (SCU) emulation 3 * 4 * Copyright (c) 2006-2007 CodeSourcery. 5 * Copyright (c) 2013 SUSE LINUX Products GmbH 6 * Written by Paul Brook and Andreas Färber 7 * 8 * This code is licensed under the GPL. --- 71 unchanged lines hidden (view full) --- 80 DEFINE_PROP_END_OF_LIST() 81}; 82 83static void arm11_scu_class_init(ObjectClass *oc, void *data) 84{ 85 DeviceClass *dc = DEVICE_CLASS(oc); 86 87 dc->realize = arm11_scu_realize; |
88 dc->props = arm11_scu_properties; | 88 device_class_set_props(dc, arm11_scu_properties); |
89} 90 91static const TypeInfo arm11_scu_type_info = { 92 .name = TYPE_ARM11_SCU, 93 .parent = TYPE_SYS_BUS_DEVICE, 94 .instance_size = sizeof(ARM11SCUState), 95 .instance_init = arm11_scu_init, 96 .class_init = arm11_scu_class_init, 97}; 98 99static void arm11_scu_register_types(void) 100{ 101 type_register_static(&arm11_scu_type_info); 102} 103 104type_init(arm11_scu_register_types) | 89} 90 91static const TypeInfo arm11_scu_type_info = { 92 .name = TYPE_ARM11_SCU, 93 .parent = TYPE_SYS_BUS_DEVICE, 94 .instance_size = sizeof(ARM11SCUState), 95 .instance_init = arm11_scu_init, 96 .class_init = arm11_scu_class_init, 97}; 98 99static void arm11_scu_register_types(void) 100{ 101 type_register_static(&arm11_scu_type_info); 102} 103 104type_init(arm11_scu_register_types) |