Lines Matching +full:psci +full:- +full:0
1 /*-
31 #include <dev/psci/smccc.h>
46 /* Handler to let us call into the PSCI/SMCCC firmware */
52 return (psci_callfn(a, b, c, d, 0, 0, 0, 0, NULL)); in psci_call()
57 * PSCI return codes.
59 #define PSCI_RETVAL_SUCCESS 0
60 #define PSCI_RETVAL_NOT_SUPPORTED -1
61 #define PSCI_RETVAL_INVALID_PARAMS -2
62 #define PSCI_RETVAL_DENIED -3
63 #define PSCI_RETVAL_ALREADY_ON -4
64 #define PSCI_RETVAL_ON_PENDING -5
65 #define PSCI_RETVAL_INTERNAL_FAILURE -6
66 #define PSCI_RETVAL_NOT_PRESENT -7
67 #define PSCI_RETVAL_DISABLED -8
69 * Used to signal PSCI is not available, e.g. to start a CPU.
74 * PSCI function codes (as per PSCI v0.2).
77 #define PSCI_FNID_VERSION 0x84000000
78 #define PSCI_FNID_CPU_SUSPEND 0xc4000001
79 #define PSCI_FNID_CPU_OFF 0x84000002
80 #define PSCI_FNID_CPU_ON 0xc4000003
81 #define PSCI_FNID_AFFINITY_INFO 0xc4000004
82 #define PSCI_FNID_MIGRATE 0xc4000005
83 #define PSCI_FNID_MIGRATE_INFO_TYPE 0x84000006
84 #define PSCI_FNID_MIGRATE_INFO_UP_CPU 0xc4000007
85 #define PSCI_FNID_SYSTEM_OFF 0x84000008
86 #define PSCI_FNID_SYSTEM_RESET 0x84000009
87 #define PSCI_FNID_FEATURES 0x8400000a
89 #define PSCI_FNID_VERSION 0x84000000
90 #define PSCI_FNID_CPU_SUSPEND 0x84000001
91 #define PSCI_FNID_CPU_OFF 0x84000002
92 #define PSCI_FNID_CPU_ON 0x84000003
93 #define PSCI_FNID_AFFINITY_INFO 0x84000004
94 #define PSCI_FNID_MIGRATE 0x84000005
95 #define PSCI_FNID_MIGRATE_INFO_TYPE 0x84000006
96 #define PSCI_FNID_MIGRATE_INFO_UP_CPU 0x84000007
97 #define PSCI_FNID_SYSTEM_OFF 0x84000008
98 #define PSCI_FNID_SYSTEM_RESET 0x84000009
99 #define PSCI_FNID_FEATURES 0x8400000a
102 #define PSCI_VER_MAJOR(v) (((v) >> 16) & 0xFF)
103 #define PSCI_VER_MINOR(v) ((v) & 0xFF)
106 #define PSCI_AFFINITY_INFO_ON 0