12#ifndef SCMI_PRIVATE_H_
13#define SCMI_PRIVATE_H_
17 ScmiProtocolIdBase = 0x10,
18 ScmiProtocolIdPowerDomain = 0x11,
19 ScmiProtocolIdSystemPower = 0x12,
20 ScmiProtocolIdPerformance = 0x13,
21 ScmiProtocolIdClock = 0x14,
22 ScmiProtocolIdSensor = 0x15
27 ScmiMessageTypeCommand = 0,
28 ScmiMessageTypeDelayedResponse = 2,
29 ScmiMessageTypeNotification = 3
35 ScmiNotSupported = -1,
36 ScmiInvalidParameters = -2,
42 ScmiGenericError = -8,
43 ScmiHardwareError = -9,
44 ScmiProtocolError = -10
49 ScmiMessageIdProtocolVersion = 0x0,
50 ScmiMessageIdProtocolAttributes = 0x1,
51 ScmiMessageIdProtocolMessageAttributes = 0x2
56 SCMI_PROTOCOL_ID ProtocolId;
65 UINT32 ReturnValues[];
69#define MESSAGE_TYPE_SHIFT 8
70#define PROTOCOL_ID_SHIFT 10
71#define SCMI_MESSAGE_HEADER(MsgId, MsgType, ProtocolId) ( \
72 MsgType << MESSAGE_TYPE_SHIFT | \
73 ProtocolId << PROTOCOL_ID_SHIFT | \
118 IN OUT UINT32 *PayloadLength,
119 OUT UINT32 **ReturnValues OPTIONAL
134 IN SCMI_PROTOCOL_ID ProtocolId,
149 IN SCMI_PROTOCOL_ID ProtocolId,
150 OUT UINT32 **ReturnValues
165 IN SCMI_PROTOCOL_ID ProtocolId,
166 OUT UINT32 **ReturnValues
EFI_STATUS ScmiGetProtocolVersion(IN SCMI_PROTOCOL_ID ProtocolId, OUT UINT32 *Version)
EFI_STATUS ScmiGetProtocolMessageAttributes(IN SCMI_PROTOCOL_ID ProtocolId, OUT UINT32 **ReturnValues)
EFI_STATUS ScmiCommandExecute(IN SCMI_COMMAND *Command, IN OUT UINT32 *PayloadLength, OUT UINT32 **ReturnValues OPTIONAL)
EFI_STATUS ScmiCommandGetPayload(OUT UINT32 **Payload)
EFI_STATUS ScmiGetProtocolAttributes(IN SCMI_PROTOCOL_ID ProtocolId, OUT UINT32 **ReturnValues)