diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-19 00:48:55 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-11-05 17:47:30 +0100 |
commit | ce31825de64c305cbf0def5657edac21aab7368b (patch) | |
tree | 4c7d5bff1c2876039a26a6e43f285f8c10c303e4 /include | |
parent | 612daf06283e2cf6b3aa6178826516512d219de0 (diff) | |
download | qemu-ce31825de64c305cbf0def5657edac21aab7368b.tar.gz qemu-ce31825de64c305cbf0def5657edac21aab7368b.tar.bz2 qemu-ce31825de64c305cbf0def5657edac21aab7368b.zip |
realview_gic: Prepare for QOM embedding
Move state struct, type constant and cast macro to a new header.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/intc/realview_gic.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/hw/intc/realview_gic.h b/include/hw/intc/realview_gic.h new file mode 100644 index 0000000000..1783ea11b9 --- /dev/null +++ b/include/hw/intc/realview_gic.h @@ -0,0 +1,28 @@ +/* + * ARM RealView Emulation Baseboard Interrupt Controller + * + * Copyright (c) 2006-2007 CodeSourcery. + * Written by Paul Brook + * + * This code is licensed under the GPL. + */ + +#ifndef HW_INTC_REALVIEW_GIC_H +#define HW_INTC_REALVIEW_GIC_H + +#include "hw/sysbus.h" +#include "hw/intc/arm_gic.h" + +#define TYPE_REALVIEW_GIC "realview_gic" +#define REALVIEW_GIC(obj) \ + OBJECT_CHECK(RealViewGICState, (obj), TYPE_REALVIEW_GIC) + +typedef struct RealViewGICState { + SysBusDevice parent_obj; + + MemoryRegion container; + + GICState gic; +} RealViewGICState; + +#endif |