summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/uapi/asm
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2013-04-12 14:08:46 (GMT)
committerStuart Yoder <stuart.yoder@freescale.com>2013-05-02 23:00:45 (GMT)
commit4bc47c67b97c2870a8e2aa620e98908bfcf5e9c4 (patch)
tree2c6f6ebf1da23a5913d3319a0c6e1429de8bc341 /arch/powerpc/include/uapi/asm
parentcc4d699db3c52e125844cd27a76c7dc6a212f2fb (diff)
downloadlinux-fsl-qoriq-4bc47c67b97c2870a8e2aa620e98908bfcf5e9c4.tar.xz
kvm/ppc/mpic: in-kernel MPIC emulation
Hook the MPIC code up to the KVM interfaces, add locking, etc. Signed-off-by: Scott Wood <scottwood@freescale.com> [agraf: add stub function for kvmppc_mpic_set_epr, non-booke, 64bit] Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include/uapi/asm')
-rw-r--r--arch/powerpc/include/uapi/asm/kvm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/include/uapi/asm/kvm.h b/arch/powerpc/include/uapi/asm/kvm.h
index 5aefeb9..a13963e 100644
--- a/arch/powerpc/include/uapi/asm/kvm.h
+++ b/arch/powerpc/include/uapi/asm/kvm.h
@@ -396,6 +396,14 @@ struct kvm_get_htab_header {
__u16 n_invalid;
};
+/* Device control API: PPC-specific devices */
+#define KVM_DEV_MPIC_GRP_MISC 1
+#define KVM_DEV_MPIC_BASE_ADDR 0 /* 64-bit */
+
+#define KVM_DEV_MPIC_GRP_REGISTER 2 /* 32-bit */
+#define KVM_DEV_MPIC_GRP_IRQ_ACTIVE 3 /* 32-bit */
+
+/* One-Reg API: PPC-specific registers */
#define KVM_REG_PPC_HIOR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x1)
#define KVM_REG_PPC_IAC1 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x2)
#define KVM_REG_PPC_IAC2 (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0x3)