mips_gic.c (95a9457fd44ad97c518858a4e1586a5498f9773c) | mips_gic.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 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. 7 * Authors: Sanjay Lal <sanjayl@kymasys.com> 8 * --- 434 unchanged lines hidden (view full) --- 443 DEFINE_PROP_INT32("num-irq", MIPSGICState, num_irq, 256), 444 DEFINE_PROP_END_OF_LIST(), 445}; 446 447static void mips_gic_class_init(ObjectClass *klass, void *data) 448{ 449 DeviceClass *dc = DEVICE_CLASS(klass); 450 | 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 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. 7 * Authors: Sanjay Lal <sanjayl@kymasys.com> 8 * --- 434 unchanged lines hidden (view full) --- 443 DEFINE_PROP_INT32("num-irq", MIPSGICState, num_irq, 256), 444 DEFINE_PROP_END_OF_LIST(), 445}; 446 447static void mips_gic_class_init(ObjectClass *klass, void *data) 448{ 449 DeviceClass *dc = DEVICE_CLASS(klass); 450 |
451 dc->props = mips_gic_properties; | 451 device_class_set_props(dc, mips_gic_properties); |
452 dc->realize = mips_gic_realize; 453} 454 455static const TypeInfo mips_gic_info = { 456 .name = TYPE_MIPS_GIC, 457 .parent = TYPE_SYS_BUS_DEVICE, 458 .instance_size = sizeof(MIPSGICState), 459 .instance_init = mips_gic_init, 460 .class_init = mips_gic_class_init, 461}; 462 463static void mips_gic_register_types(void) 464{ 465 type_register_static(&mips_gic_info); 466} 467 468type_init(mips_gic_register_types) | 452 dc->realize = mips_gic_realize; 453} 454 455static const TypeInfo mips_gic_info = { 456 .name = TYPE_MIPS_GIC, 457 .parent = TYPE_SYS_BUS_DEVICE, 458 .instance_size = sizeof(MIPSGICState), 459 .instance_init = mips_gic_init, 460 .class_init = mips_gic_class_init, 461}; 462 463static void mips_gic_register_types(void) 464{ 465 type_register_static(&mips_gic_info); 466} 467 468type_init(mips_gic_register_types) |