We need quite a bunch of new constants for PPC64, so let's define
them now.

These constants will be used in later patches.

Signed-off-by: Alexander Graf <ag...@suse.de>
---
 arch/powerpc/include/asm/kvm_asm.h |   39 ++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/include/asm/kvm_asm.h 
b/arch/powerpc/include/asm/kvm_asm.h
index 56bfae5..2dead75 100644
--- a/arch/powerpc/include/asm/kvm_asm.h
+++ b/arch/powerpc/include/asm/kvm_asm.h
@@ -49,6 +49,45 @@
 #define BOOKE_INTERRUPT_SPE_FP_ROUND 34
 #define BOOKE_INTERRUPT_PERFORMANCE_MONITOR 35
 
+/* 970 */
+
+#define PPC970_INTERRUPT_SYSTEM_RESET  0x100
+#define PPC970_INTERRUPT_MACHINE_CHECK 0x200
+#define PPC970_INTERRUPT_DATA_STORAGE  0x300
+#define PPC970_INTERRUPT_DATA_SEGMENT  0x380
+#define PPC970_INTERRUPT_INST_STORAGE  0x400
+#define PPC970_INTERRUPT_INST_SEGMENT  0x480
+#define PPC970_INTERRUPT_EXTERNAL      0x500
+#define PPC970_INTERRUPT_ALIGNMENT     0x600
+#define PPC970_INTERRUPT_PROGRAM       0x700
+#define PPC970_INTERRUPT_FP_UNAVAIL    0x800
+#define PPC970_INTERRUPT_DECREMENTER   0x900
+#define PPC970_INTERRUPT_SYSCALL       0xc00
+#define PPC970_INTERRUPT_TRACE         0xd00
+#define PPC970_INTERRUPT_PERFMON       0xf00
+#define PPC970_INTERRUPT_ALTIVEC       0xf20
+#define PPC970_INTERRUPT_VSX           0xf40
+
+#define PPC970_IRQPRIO_SYSTEM_RESET            0
+#define PPC970_IRQPRIO_DATA_SEGMENT            1
+#define PPC970_IRQPRIO_INST_SEGMENT            2
+#define PPC970_IRQPRIO_DATA_STORAGE            3
+#define PPC970_IRQPRIO_INST_STORAGE            4
+#define PPC970_IRQPRIO_ALIGNMENT               5
+#define PPC970_IRQPRIO_PROGRAM                 6
+#define PPC970_IRQPRIO_FP_UNAVAIL              7
+#define PPC970_IRQPRIO_ALTIVEC                 8
+#define PPC970_IRQPRIO_VSX                     9
+#define PPC970_IRQPRIO_SYSCALL                 10
+#define PPC970_IRQPRIO_MACHINE_CHECK           11
+#define PPC970_IRQPRIO_DEBUG                   12
+#define PPC970_IRQPRIO_EXTERNAL                        13
+#define PPC970_IRQPRIO_DECREMENTER             14
+#define PPC970_IRQPRIO_PERFORMANCE_MONITOR     15
+#define PPC970_IRQPRIO_MAX                     16
+
+#define PPC970_HFLAG_DCBZ32                    0x1
+
 #define RESUME_FLAG_NV          (1<<0)  /* Reload guest nonvolatile state? */
 #define RESUME_FLAG_HOST        (1<<1)  /* Resume host? */
 
-- 
1.6.0.2

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to