0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef _ASM_MSHYPERV_H
0019 #define _ASM_MSHYPERV_H
0020
0021 #include <linux/types.h>
0022 #include <linux/arm-smccc.h>
0023 #include <asm/hyperv-tlfs.h>
0024
0025
0026
0027
0028
0029
0030 void hv_set_vpreg(u32 reg, u64 value);
0031 u64 hv_get_vpreg(u32 reg);
0032 void hv_get_vpreg_128(u32 reg, struct hv_get_vp_registers_output *result);
0033
0034 static inline void hv_set_register(unsigned int reg, u64 value)
0035 {
0036 hv_set_vpreg(reg, value);
0037 }
0038
0039 static inline u64 hv_get_register(unsigned int reg)
0040 {
0041 return hv_get_vpreg(reg);
0042 }
0043
0044
0045 #define HV_SMCCC_FUNC_NUMBER 1
0046 #define HV_FUNC_ID ARM_SMCCC_CALL_VAL( \
0047 ARM_SMCCC_STD_CALL, \
0048 ARM_SMCCC_SMC_64, \
0049 ARM_SMCCC_OWNER_VENDOR_HYP, \
0050 HV_SMCCC_FUNC_NUMBER)
0051
0052 #include <asm-generic/mshyperv.h>
0053
0054 #endif