summaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-06-18 03:58:07 +0200
committerAlexander Graf <agraf@suse.de>2013-07-01 01:11:14 +0200
commite1766344fd1d3cb7421f734f89a9356fdec98398 (patch)
treef46bfe17dfd2368600340dfcb0e27c44300701d1 /include/hw
parentd85937e683f6ff4d68293cb24c780fb1f6820d2c (diff)
downloadqemu-e1766344fd1d3cb7421f734f89a9356fdec98398.zip
intc/openpic: QOM'ify
Introduce type constant and cast macro. Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ppc/openpic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ppc/openpic.h b/include/hw/ppc/openpic.h
index 1fe4865e1d..ef3f5c3e97 100644
--- a/include/hw/ppc/openpic.h
+++ b/include/hw/ppc/openpic.h
@@ -4,6 +4,8 @@
#include "qemu-common.h"
#include "hw/qdev.h"
+#define TYPE_OPENPIC "openpic"
+
/* OpenPIC have 5 outputs per CPU connected and one IRQ out single output */
enum {
OPENPIC_OUTPUT_INT = 0, /* IRQ */