1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 #ifndef _ASMPPC64_OPAL_H_ 3 #define _ASMPPC64_OPAL_H_ 4 5 #include <stdint.h> 6 7 #define OPAL_SUCCESS 0 8 9 #define OPAL_CONSOLE_WRITE 1 10 #define OPAL_CONSOLE_READ 2 11 #define OPAL_CEC_POWER_DOWN 5 12 #define OPAL_POLL_EVENTS 10 13 #define OPAL_START_CPU 41 14 #define OPAL_QUERY_CPU_STATUS 42 15 #define OPAL_RETURN_CPU 69 16 #define OPAL_REINIT_CPUS 70 17 # define OPAL_REINIT_CPUS_HILE_BE (1 << 0) 18 # define OPAL_REINIT_CPUS_HILE_LE (1 << 1) 19 20 int64_t opal_call(int64_t token, int64_t arg1, int64_t arg2, int64_t arg3); 21 22 #endif 23