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