hw/arm/orangepi: check for potential NULL pointer when calling blk_is_available
[qemu/ar7.git] / include / hw / intc / realview_gic.h
blob1783ea11b9f2dc5358785207e5ad600a51a22b5e
1 /*
2 * ARM RealView Emulation Baseboard Interrupt Controller
4 * Copyright (c) 2006-2007 CodeSourcery.
5 * Written by Paul Brook
7 * This code is licensed under the GPL.
8 */
10 #ifndef HW_INTC_REALVIEW_GIC_H
11 #define HW_INTC_REALVIEW_GIC_H
13 #include "hw/sysbus.h"
14 #include "hw/intc/arm_gic.h"
16 #define TYPE_REALVIEW_GIC "realview_gic"
17 #define REALVIEW_GIC(obj) \
18 OBJECT_CHECK(RealViewGICState, (obj), TYPE_REALVIEW_GIC)
20 typedef struct RealViewGICState {
21 SysBusDevice parent_obj;
23 MemoryRegion container;
25 GICState gic;
26 } RealViewGICState;
28 #endif