ompic.c (95a9457fd44ad97c518858a4e1586a5498f9773c) | ompic.c (4f67d30b5e74e060b8dbe10528829b47345cd6e8) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Authors: Stafford Horne <shorne@gmail.com> 7 */ 8 --- 147 unchanged lines hidden (view full) --- 156 VMSTATE_END_OF_LIST() 157 } 158}; 159 160static void or1k_ompic_class_init(ObjectClass *klass, void *data) 161{ 162 DeviceClass *dc = DEVICE_CLASS(klass); 163 | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Authors: Stafford Horne <shorne@gmail.com> 7 */ 8 --- 147 unchanged lines hidden (view full) --- 156 VMSTATE_END_OF_LIST() 157 } 158}; 159 160static void or1k_ompic_class_init(ObjectClass *klass, void *data) 161{ 162 DeviceClass *dc = DEVICE_CLASS(klass); 163 |
164 dc->props = or1k_ompic_properties; | 164 device_class_set_props(dc, or1k_ompic_properties); |
165 dc->realize = or1k_ompic_realize; 166 dc->vmsd = &vmstate_or1k_ompic; 167} 168 169static const TypeInfo or1k_ompic_info = { 170 .name = TYPE_OR1K_OMPIC, 171 .parent = TYPE_SYS_BUS_DEVICE, 172 .instance_size = sizeof(OR1KOMPICState), 173 .instance_init = or1k_ompic_init, 174 .class_init = or1k_ompic_class_init, 175}; 176 177static void or1k_ompic_register_types(void) 178{ 179 type_register_static(&or1k_ompic_info); 180} 181 182type_init(or1k_ompic_register_types) | 165 dc->realize = or1k_ompic_realize; 166 dc->vmsd = &vmstate_or1k_ompic; 167} 168 169static const TypeInfo or1k_ompic_info = { 170 .name = TYPE_OR1K_OMPIC, 171 .parent = TYPE_SYS_BUS_DEVICE, 172 .instance_size = sizeof(OR1KOMPICState), 173 .instance_init = or1k_ompic_init, 174 .class_init = or1k_ompic_class_init, 175}; 176 177static void or1k_ompic_register_types(void) 178{ 179 type_register_static(&or1k_ompic_info); 180} 181 182type_init(or1k_ompic_register_types) |