diff options
Diffstat (limited to 'arch/powerpc/include/asm/reg.h')
-rw-r--r-- | arch/powerpc/include/asm/reg.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index c9c67fc888c9..a6136515c7f2 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/asm/reg.h | |||
@@ -267,7 +267,17 @@ | |||
267 | #define SPRN_HSRR1 0x13B /* Hypervisor Save/Restore 1 */ | 267 | #define SPRN_HSRR1 0x13B /* Hypervisor Save/Restore 1 */ |
268 | #define SPRN_FSCR 0x099 /* Facility Status & Control Register */ | 268 | #define SPRN_FSCR 0x099 /* Facility Status & Control Register */ |
269 | #define FSCR_TAR (1 << (63-55)) /* Enable Target Address Register */ | 269 | #define FSCR_TAR (1 << (63-55)) /* Enable Target Address Register */ |
270 | #define FSCR_EBB (1 << (63-56)) /* Enable Event Based Branching */ | ||
270 | #define FSCR_DSCR (1 << (63-61)) /* Enable Data Stream Control Register */ | 271 | #define FSCR_DSCR (1 << (63-61)) /* Enable Data Stream Control Register */ |
272 | #define SPRN_HFSCR 0xbe /* HV=1 Facility Status & Control Register */ | ||
273 | #define HFSCR_TAR (1 << (63-55)) /* Enable Target Address Register */ | ||
274 | #define HFSCR_EBB (1 << (63-56)) /* Enable Event Based Branching */ | ||
275 | #define HFSCR_TM (1 << (63-58)) /* Enable Transactional Memory */ | ||
276 | #define HFSCR_PM (1 << (63-60)) /* Enable prob/priv access to PMU SPRs */ | ||
277 | #define HFSCR_BHRB (1 << (63-59)) /* Enable Branch History Rolling Buffer*/ | ||
278 | #define HFSCR_DSCR (1 << (63-61)) /* Enable Data Stream Control Register */ | ||
279 | #define HFSCR_VECVSX (1 << (63-62)) /* Enable VMX/VSX */ | ||
280 | #define HFSCR_FP (1 << (63-63)) /* Enable Floating Point */ | ||
271 | #define SPRN_TAR 0x32f /* Target Address Register */ | 281 | #define SPRN_TAR 0x32f /* Target Address Register */ |
272 | #define SPRN_LPCR 0x13E /* LPAR Control Register */ | 282 | #define SPRN_LPCR 0x13E /* LPAR Control Register */ |
273 | #define LPCR_VPM0 (1ul << (63-0)) | 283 | #define LPCR_VPM0 (1ul << (63-0)) |
@@ -290,6 +300,7 @@ | |||
290 | #define LPCR_PECE1 0x00002000 /* decrementer can cause exit */ | 300 | #define LPCR_PECE1 0x00002000 /* decrementer can cause exit */ |
291 | #define LPCR_PECE2 0x00001000 /* machine check etc can cause exit */ | 301 | #define LPCR_PECE2 0x00001000 /* machine check etc can cause exit */ |
292 | #define LPCR_MER 0x00000800 /* Mediated External Exception */ | 302 | #define LPCR_MER 0x00000800 /* Mediated External Exception */ |
303 | #define LPCR_MER_SH 11 | ||
293 | #define LPCR_LPES 0x0000000c | 304 | #define LPCR_LPES 0x0000000c |
294 | #define LPCR_LPES0 0x00000008 /* LPAR Env selector 0 */ | 305 | #define LPCR_LPES0 0x00000008 /* LPAR Env selector 0 */ |
295 | #define LPCR_LPES1 0x00000004 /* LPAR Env selector 1 */ | 306 | #define LPCR_LPES1 0x00000004 /* LPAR Env selector 1 */ |
@@ -631,6 +642,7 @@ | |||
631 | #define MMCR0_FCWAIT 0x00000002UL /* freeze counter in WAIT state */ | 642 | #define MMCR0_FCWAIT 0x00000002UL /* freeze counter in WAIT state */ |
632 | #define MMCR0_FCHV 0x00000001UL /* freeze conditions in hypervisor mode */ | 643 | #define MMCR0_FCHV 0x00000001UL /* freeze conditions in hypervisor mode */ |
633 | #define SPRN_MMCR1 798 | 644 | #define SPRN_MMCR1 798 |
645 | #define SPRN_MMCR2 769 | ||
634 | #define SPRN_MMCRA 0x312 | 646 | #define SPRN_MMCRA 0x312 |
635 | #define MMCRA_SDSYNC 0x80000000UL /* SDAR synced with SIAR */ | 647 | #define MMCRA_SDSYNC 0x80000000UL /* SDAR synced with SIAR */ |
636 | #define MMCRA_SDAR_DCACHE_MISS 0x40000000UL | 648 | #define MMCRA_SDAR_DCACHE_MISS 0x40000000UL |
@@ -649,6 +661,13 @@ | |||
649 | #define POWER7P_MMCRA_SIAR_VALID 0x10000000 /* P7+ SIAR contents valid */ | 661 | #define POWER7P_MMCRA_SIAR_VALID 0x10000000 /* P7+ SIAR contents valid */ |
650 | #define POWER7P_MMCRA_SDAR_VALID 0x08000000 /* P7+ SDAR contents valid */ | 662 | #define POWER7P_MMCRA_SDAR_VALID 0x08000000 /* P7+ SDAR contents valid */ |
651 | 663 | ||
664 | #define SPRN_MMCRH 316 /* Hypervisor monitor mode control register */ | ||
665 | #define SPRN_MMCRS 894 /* Supervisor monitor mode control register */ | ||
666 | #define SPRN_MMCRC 851 /* Core monitor mode control register */ | ||
667 | #define SPRN_EBBHR 804 /* Event based branch handler register */ | ||
668 | #define SPRN_EBBRR 805 /* Event based branch return register */ | ||
669 | #define SPRN_BESCR 806 /* Branch event status and control register */ | ||
670 | |||
652 | #define SPRN_PMC1 787 | 671 | #define SPRN_PMC1 787 |
653 | #define SPRN_PMC2 788 | 672 | #define SPRN_PMC2 788 |
654 | #define SPRN_PMC3 789 | 673 | #define SPRN_PMC3 789 |
@@ -659,6 +678,11 @@ | |||
659 | #define SPRN_PMC8 794 | 678 | #define SPRN_PMC8 794 |
660 | #define SPRN_SIAR 780 | 679 | #define SPRN_SIAR 780 |
661 | #define SPRN_SDAR 781 | 680 | #define SPRN_SDAR 781 |
681 | #define SPRN_SIER 784 | ||
682 | #define SIER_SIPR 0x2000000 /* Sampled MSR_PR */ | ||
683 | #define SIER_SIHV 0x1000000 /* Sampled MSR_HV */ | ||
684 | #define SIER_SIAR_VALID 0x0400000 /* SIAR contents valid */ | ||
685 | #define SIER_SDAR_VALID 0x0200000 /* SDAR contents valid */ | ||
662 | 686 | ||
663 | #define SPRN_PA6T_MMCR0 795 | 687 | #define SPRN_PA6T_MMCR0 795 |
664 | #define PA6T_MMCR0_EN0 0x0000000000000001UL | 688 | #define PA6T_MMCR0_EN0 0x0000000000000001UL |