summaryrefslogtreecommitdiffstats
path: root/hw/openpic.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2012-12-08 05:17:14 +0100
committerAlexander Graf <agraf@suse.de>2012-12-14 13:12:56 +0100
commitd0b7263134dfd4d487698b639f2069951f3fdb26 (patch)
treeae51714095238103ce68da45913c9da7346fa709 /hw/openpic.h
parent5bac0701113f4de4fee053a3939b0f569a04b88c (diff)
downloadhqemu-d0b7263134dfd4d487698b639f2069951f3fdb26.zip
hqemu-d0b7263134dfd4d487698b639f2069951f3fdb26.tar.gz
openpic: convert to qdev
This patch converts the OpenPIC device to qdev. Along the way it renames the "openpic" target to "raven" and the "mpic" target to "fsl_mpic_20", to better reflect the actual models they implement. This way we have a generic OpenPIC device now that can handle different flavors of the OpenPIC specification. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/openpic.h')
-rw-r--r--hw/openpic.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/openpic.h b/hw/openpic.h
index 8a68f20..e226d7b 100644
--- a/hw/openpic.h
+++ b/hw/openpic.h
@@ -11,11 +11,7 @@ enum {
OPENPIC_OUTPUT_NB,
};
-/* OpenPIC capability flags */
-#define OPENPIC_FLAG_IDE_CRIT (1 << 0)
+#define OPENPIC_MODEL_RAVEN 0
+#define OPENPIC_MODEL_FSL_MPIC_20 1
-qemu_irq *openpic_init (MemoryRegion **pmem, int nb_cpus,
- qemu_irq **irqs);
-qemu_irq *mpic_init (MemoryRegion *address_space, hwaddr base,
- int nb_cpus, qemu_irq **irqs);
#endif /* __OPENPIC_H__ */
OpenPOWER on IntegriCloud