Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/psci/smccc.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
* These are documented in the document ARM DEN 0070A. | * These are documented in the document ARM DEN 0070A. | ||||
*/ | */ | ||||
#define SMCCC_VERSION \ | #define SMCCC_VERSION \ | ||||
SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 0) | SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 0) | ||||
#define SMCCC_ARCH_FEATURES \ | #define SMCCC_ARCH_FEATURES \ | ||||
SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 1) | SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 1) | ||||
#define SMCCC_ARCH_WORKAROUND_1 \ | #define SMCCC_ARCH_WORKAROUND_1 \ | ||||
SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 0x8000) | SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 0x8000) | ||||
#define SMCCC_ARCH_WORKAROUND_2 \ | |||||
SMCCC_FUNC_ID(SMCCC_FAST_CALL, SMCCC_32BIT_CALL, 0, 0x7fff) | |||||
/* The return values from ARM DEN 0070A. */ | /* The return values from ARM DEN 0070A. */ | ||||
#define SMCCC_RET_SUCCESS 0 | #define SMCCC_RET_SUCCESS 0 | ||||
#define SMCCC_RET_NOT_SUPPORTED -1 | #define SMCCC_RET_NOT_SUPPORTED -1 | ||||
#define SMCCC_RET_NOT_REQUIRED -2 | #define SMCCC_RET_NOT_REQUIRED -2 | ||||
int32_t smccc_arch_features(uint32_t); | int32_t smccc_arch_features(uint32_t); | ||||
int smccc_arch_workaround_1(void); | int smccc_arch_workaround_1(void); | ||||
int smccc_arch_workaround_2(bool); | |||||
#endif /* _PSCI_SMCCC_H_ */ | #endif /* _PSCI_SMCCC_H_ */ |