History

firmware: smccc: Add the definition for SMCCCv1.2 version/error codes

Add the definition for SMCCC v1.2 version and new error code added. While at it, also add a note that ARM DEN 0070A is deprecated and is now merged into the main SMCCC specification(ARM DEN 0028C).

Sudeep Holla committed 6 years ago

Commit 0441bfe1 parent 15c704a1 file · +7 −2Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/arm-smccc.h+7−2
@@ -12,7 +12,7 @@ · 11 unmodified lines
12 * specified in12 * specified in
13 * https://developer.arm.com/docs/den0028/latest13 * https://developer.arm.com/docs/den0028/latest
14 *14 *
15 * This code is up-to-date with version DEN 0028 B15 * This code is up-to-date with version DEN 0028 C
16 */16 */
17 17
18#define ARM_SMCCC_STD_CALL _AC(0,U)18#define ARM_SMCCC_STD_CALL _AC(0,U)
@@ -58,6 +58,7 @@ · 39 unmodified lines
58 58
59#define ARM_SMCCC_VERSION_1_0 0x1000059#define ARM_SMCCC_VERSION_1_0 0x10000
60#define ARM_SMCCC_VERSION_1_1 0x1000160#define ARM_SMCCC_VERSION_1_1 0x10001
61#define ARM_SMCCC_VERSION_1_2 0x10002
61 62
62#define ARM_SMCCC_VERSION_FUNC_ID \63#define ARM_SMCCC_VERSION_FUNC_ID \
63 ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \64 ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, \
@@ -316,10 +317,14 @@ asmlinkage void __arm_smccc_hvc(unsigned long a0, unsigned long a1, · 252 unmodified lines
316 */317 */
317#define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)318#define arm_smccc_1_1_hvc(...) __arm_smccc_1_1(SMCCC_HVC_INST, __VA_ARGS__)
318 319
319/* Return codes defined in ARM DEN 0070A */320/*
321 * Return codes defined in ARM DEN 0070A
322 * ARM DEN 0070A is now merged/consolidated into ARM DEN 0028 C
323 */
320#define SMCCC_RET_SUCCESS 0324#define SMCCC_RET_SUCCESS 0
321#define SMCCC_RET_NOT_SUPPORTED -1325#define SMCCC_RET_NOT_SUPPORTED -1
322#define SMCCC_RET_NOT_REQUIRED -2326#define SMCCC_RET_NOT_REQUIRED -2
327#define SMCCC_RET_INVALID_PARAMETER -3
323 328
324/*329/*
325 * Like arm_smccc_1_1* but always returns SMCCC_RET_NOT_SUPPORTED.330 * Like arm_smccc_1_1* but always returns SMCCC_RET_NOT_SUPPORTED.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t