xref: /rk3399_ARM-atf/include/drivers/scmi.h (revision 26dccba6dd1313113252357f433c8085f2c63a09)
1*b4734308SPeng Fan /* SPDX-License-Identifier: BSD-3-Clause */
2*b4734308SPeng Fan /*
3*b4734308SPeng Fan  * Copyright (c) 2015-2019, Arm Limited and Contributors. All rights reserved.
4*b4734308SPeng Fan  */
5*b4734308SPeng Fan #ifndef SCMI_MSG_SCMI_H
6*b4734308SPeng Fan #define SCMI_MSG_SCMI_H
7*b4734308SPeng Fan 
8*b4734308SPeng Fan #define SCMI_PROTOCOL_ID_BASE			0x10U
9*b4734308SPeng Fan #define SCMI_PROTOCOL_ID_POWER_DOMAIN		0x11U
10*b4734308SPeng Fan #define SCMI_PROTOCOL_ID_SYS_POWER		0x12U
11*b4734308SPeng Fan #define SCMI_PROTOCOL_ID_PERF			0x13U
12*b4734308SPeng Fan #define SCMI_PROTOCOL_ID_CLOCK			0x14U
13*b4734308SPeng Fan #define SCMI_PROTOCOL_ID_SENSOR			0x15U
14*b4734308SPeng Fan #define SCMI_PROTOCOL_ID_RESET_DOMAIN		0x16U
15*b4734308SPeng Fan 
16*b4734308SPeng Fan /* SCMI error codes reported to agent through server-to-agent messages */
17*b4734308SPeng Fan #define SCMI_SUCCESS			0
18*b4734308SPeng Fan #define SCMI_NOT_SUPPORTED		(-1)
19*b4734308SPeng Fan #define SCMI_INVALID_PARAMETERS		(-2)
20*b4734308SPeng Fan #define SCMI_DENIED			(-3)
21*b4734308SPeng Fan #define SCMI_NOT_FOUND			(-4)
22*b4734308SPeng Fan #define SCMI_OUT_OF_RANGE		(-5)
23*b4734308SPeng Fan #define SCMI_BUSY			(-6)
24*b4734308SPeng Fan #define SCMI_COMMS_ERROR		(-7)
25*b4734308SPeng Fan #define SCMI_GENERIC_ERROR		(-8)
26*b4734308SPeng Fan #define SCMI_HARDWARE_ERROR		(-9)
27*b4734308SPeng Fan #define SCMI_PROTOCOL_ERROR		(-10)
28*b4734308SPeng Fan 
29*b4734308SPeng Fan #endif /* SCMI_MSG_SCMI_H */
30