1*ae8c8068SEtienne Carriere /* SPDX-License-Identifier: BSD-3-Clause */ 2*ae8c8068SEtienne Carriere /* 3*ae8c8068SEtienne Carriere * Copyright (c) 2015-2019, Arm Limited and Contributors. All rights reserved. 4*ae8c8068SEtienne Carriere */ 5*ae8c8068SEtienne Carriere #ifndef SCMI_MSG_SCMI_H 6*ae8c8068SEtienne Carriere #define SCMI_MSG_SCMI_H 7*ae8c8068SEtienne Carriere 8*ae8c8068SEtienne Carriere #define SCMI_PROTOCOL_ID_BASE 0x10 9*ae8c8068SEtienne Carriere #define SCMI_PROTOCOL_ID_POWER_DOMAIN 0x11 10*ae8c8068SEtienne Carriere #define SCMI_PROTOCOL_ID_SYS_POWER 0x12 11*ae8c8068SEtienne Carriere #define SCMI_PROTOCOL_ID_PERF 0x13 12*ae8c8068SEtienne Carriere #define SCMI_PROTOCOL_ID_CLOCK 0x14 13*ae8c8068SEtienne Carriere #define SCMI_PROTOCOL_ID_SENSOR 0x15 14*ae8c8068SEtienne Carriere #define SCMI_PROTOCOL_ID_RESET_DOMAIN 0x16 15*ae8c8068SEtienne Carriere 16*ae8c8068SEtienne Carriere /* SCMI error codes reported to agent through server-to-agent messages */ 17*ae8c8068SEtienne Carriere #define SCMI_SUCCESS 0 18*ae8c8068SEtienne Carriere #define SCMI_NOT_SUPPORTED (-1) 19*ae8c8068SEtienne Carriere #define SCMI_INVALID_PARAMETERS (-2) 20*ae8c8068SEtienne Carriere #define SCMI_DENIED (-3) 21*ae8c8068SEtienne Carriere #define SCMI_NOT_FOUND (-4) 22*ae8c8068SEtienne Carriere #define SCMI_OUT_OF_RANGE (-5) 23*ae8c8068SEtienne Carriere #define SCMI_BUSY (-6) 24*ae8c8068SEtienne Carriere #define SCMI_COMMS_ERROR (-7) 25*ae8c8068SEtienne Carriere #define SCMI_GENERIC_ERROR (-8) 26*ae8c8068SEtienne Carriere #define SCMI_HARDWARE_ERROR (-9) 27*ae8c8068SEtienne Carriere #define SCMI_PROTOCOL_ERROR (-10) 28*ae8c8068SEtienne Carriere 29*ae8c8068SEtienne Carriere #endif /* SCMI_MSG_SCMI_H */ 30