OUT UINT32 *Version\r
)\r
{\r
- return ScmiGetProtocolVersion (SCMI_PROTOCOL_ID_CLOCK, Version);\r
+ return ScmiGetProtocolVersion (ScmiProtocolIdClock, Version);\r
}\r
\r
/** Return total number of clock devices supported by the clock management\r
EFI_STATUS Status;\r
UINT32 *ReturnValues;\r
\r
- Status = ScmiGetProtocolAttributes (SCMI_PROTOCOL_ID_CLOCK, &ReturnValues);\r
+ Status = ScmiGetProtocolAttributes (ScmiProtocolIdClock, &ReturnValues);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
\r
*MessageParams = ClockId;\r
\r
- Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK;\r
+ Cmd.ProtocolId = ScmiProtocolIdClock;\r
Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_ATTRIBUTES;\r
\r
PayloadLength = sizeof (ClockId);\r
return Status;\r
}\r
\r
- Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK;\r
+ Cmd.ProtocolId = ScmiProtocolIdClock;\r
Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_DESCRIBE_RATES;\r
\r
*MessageParams++ = ClockId;\r
// Fill arguments for clock protocol command.\r
*MessageParams = ClockId;\r
\r
- Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK;\r
+ Cmd.ProtocolId = ScmiProtocolIdClock;\r
Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_RATE_GET;\r
\r
PayloadLength = sizeof (ClockId);\r
ClockRateSetAttributes->Rate.Low = (UINT32)Rate;\r
ClockRateSetAttributes->Rate.High = (UINT32)(Rate >> 32);\r
\r
- Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK;\r
+ Cmd.ProtocolId = ScmiProtocolIdClock;\r
Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_RATE_SET;\r
\r
PayloadLength = sizeof (CLOCK_RATE_SET_ATTRIBUTES);\r
ClockConfigSetAttributes->ClockId = ClockId;\r
ClockConfigSetAttributes->Attributes = Enable ? BIT0 : 0;\r
\r
- Cmd.ProtocolId = SCMI_PROTOCOL_ID_CLOCK;\r
+ Cmd.ProtocolId = ScmiProtocolIdClock;\r
Cmd.MessageId = SCMI_MESSAGE_ID_CLOCK_CONFIG_SET;\r
\r
PayloadLength = sizeof (CLOCK_CONFIG_SET_ATTRIBUTES);\r