diff options
author | David S. Miller <davem@davemloft.net> | 2008-11-28 05:26:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-04 12:17:09 -0500 |
commit | 3178a07c33747305b7f7140bd55b0f77e7f239eb (patch) | |
tree | e4860d742405a4b7d92d3df9e6f911fc057e8123 /arch/sparc/include/asm/hypervisor.h | |
parent | 6a5726dd6fcc330ef386016e160389e05fd0015d (diff) |
sparc64: Add performance counter hypervisor calls for sun4v.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/hypervisor.h')
-rw-r--r-- | arch/sparc/include/asm/hypervisor.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/hypervisor.h b/arch/sparc/include/asm/hypervisor.h index 109ae24ba242..bafe5a631b6d 100644 --- a/arch/sparc/include/asm/hypervisor.h +++ b/arch/sparc/include/asm/hypervisor.h | |||
@@ -2713,6 +2713,30 @@ extern unsigned long sun4v_ldc_revoke(unsigned long channel, | |||
2713 | */ | 2713 | */ |
2714 | #define HV_FAST_SET_PERFREG 0x101 | 2714 | #define HV_FAST_SET_PERFREG 0x101 |
2715 | 2715 | ||
2716 | #define HV_N2_PERF_SPARC_CTL 0x0 | ||
2717 | #define HV_N2_PERF_DRAM_CTL0 0x1 | ||
2718 | #define HV_N2_PERF_DRAM_CNT0 0x2 | ||
2719 | #define HV_N2_PERF_DRAM_CTL1 0x3 | ||
2720 | #define HV_N2_PERF_DRAM_CNT1 0x4 | ||
2721 | #define HV_N2_PERF_DRAM_CTL2 0x5 | ||
2722 | #define HV_N2_PERF_DRAM_CNT2 0x6 | ||
2723 | #define HV_N2_PERF_DRAM_CTL3 0x7 | ||
2724 | #define HV_N2_PERF_DRAM_CNT3 0x8 | ||
2725 | |||
2726 | #define HV_FAST_N2_GET_PERFREG 0x104 | ||
2727 | #define HV_FAST_N2_SET_PERFREG 0x105 | ||
2728 | |||
2729 | #ifndef __ASSEMBLY__ | ||
2730 | extern unsigned long sun4v_niagara_getperf(unsigned long reg, | ||
2731 | unsigned long *val); | ||
2732 | extern unsigned long sun4v_niagara_setperf(unsigned long reg, | ||
2733 | unsigned long val); | ||
2734 | extern unsigned long sun4v_niagara2_getperf(unsigned long reg, | ||
2735 | unsigned long *val); | ||
2736 | extern unsigned long sun4v_niagara2_setperf(unsigned long reg, | ||
2737 | unsigned long val); | ||
2738 | #endif | ||
2739 | |||
2716 | /* MMU statistics services. | 2740 | /* MMU statistics services. |
2717 | * | 2741 | * |
2718 | * The hypervisor maintains MMU statistics and privileged code provides | 2742 | * The hypervisor maintains MMU statistics and privileged code provides |