1 /* 2 * ARM Generic Interrupt Controller v3 3 * 4 * Copyright (c) 2015 Huawei. 5 * Copyright (c) 2016 Linaro Limited 6 * Written by Shlomo Pongratz, Peter Maydell 7 * 8 * This code is licensed under the GPL, version 2 or (at your option) 9 * any later version. 10 */ 11 12 #ifndef HW_ARM_GICV3_H 13 #define HW_ARM_GICV3_H 14 15 #include "arm_gicv3_common.h" 16 17 #define TYPE_ARM_GICV3 "arm-gicv3" 18 #define ARM_GICV3(obj) OBJECT_CHECK(GICv3State, (obj), TYPE_ARM_GICV3) 19 #define ARM_GICV3_CLASS(klass) \ 20 OBJECT_CLASS_CHECK(ARMGICv3Class, (klass), TYPE_ARM_GICV3) 21 #define ARM_GICV3_GET_CLASS(obj) \ 22 OBJECT_GET_CLASS(ARMGICv3Class, (obj), TYPE_ARM_GICV3) 23 24 typedef struct ARMGICv3Class { 25 /*< private >*/ 26 ARMGICv3CommonClass parent_class; 27 /*< public >*/ 28 29 DeviceRealize parent_realize; 30 } ARMGICv3Class; 31 32 #endif 33