\r
#include <Protocol/ArmScmi.h>\r
\r
-#define ARM_SCMI_CLOCK_PROTOCOL_GUID { \\r
+#define ARM_SCMI_CLOCK_PROTOCOL_GUID {\\r
0x91ce67a8, 0xe0aa, 0x4012, {0xb9, 0x9f, 0xb6, 0xfc, 0xf3, 0x4, 0x8e, 0xaa} \\r
}\r
\r
-extern EFI_GUID gArmScmiClockProtocolGuid;\r
+extern EFI_GUID gArmScmiClockProtocolGuid;\r
\r
// Message Type for clock management protocol.\r
typedef enum {\r
} SCMI_CLOCK_RATE_FORMAT;\r
\r
// Clock management protocol version.\r
-#define SCMI_CLOCK_PROTOCOL_VERSION 0x10000\r
+#define SCMI_CLOCK_PROTOCOL_VERSION 0x10000\r
\r
-#define SCMI_CLOCK_PROTOCOL_PENDING_ASYNC_RATES_MASK 0xFFU\r
-#define SCMI_CLOCK_PROTOCOL_PENDING_ASYNC_RATES_SHIFT 16\r
-#define SCMI_CLOCK_PROTOCOL_NUM_CLOCKS_MASK 0xFFFFU\r
+#define SCMI_CLOCK_PROTOCOL_PENDING_ASYNC_RATES_MASK 0xFFU\r
+#define SCMI_CLOCK_PROTOCOL_PENDING_ASYNC_RATES_SHIFT 16\r
+#define SCMI_CLOCK_PROTOCOL_NUM_CLOCKS_MASK 0xFFFFU\r
\r
/** Total number of pending asynchronous clock rates changes\r
supported by the SCP, Attr Bits[23:16]\r
*/\r
-#define SCMI_CLOCK_PROTOCOL_MAX_ASYNC_CLK_RATES(Attr) ( \\r
+#define SCMI_CLOCK_PROTOCOL_MAX_ASYNC_CLK_RATES(Attr) ( \\r
(Attr >> SCMI_CLOCK_PROTOCOL_PENDING_ASYNC_RATES_SHIFT) && \\r
SCMI_CLOCK_PROTOCOL_PENDING_ASYNC_RATES_MASK)\r
\r
// Total of clock devices supported by the SCP, Attr Bits[15:0]\r
-#define SCMI_CLOCK_PROTOCOL_TOTAL_CLKS(Attr) (Attr & SCMI_CLOCK_PROTOCOL_NUM_CLOCKS_MASK)\r
+#define SCMI_CLOCK_PROTOCOL_TOTAL_CLKS(Attr) (Attr & SCMI_CLOCK_PROTOCOL_NUM_CLOCKS_MASK)\r
\r
#pragma pack(1)\r
\r
either Rate or Min/Max/Step triplet is valid.\r
*/\r
typedef struct {\r
- UINT64 Min;\r
- UINT64 Max;\r
- UINT64 Step;\r
+ UINT64 Min;\r
+ UINT64 Max;\r
+ UINT64 Step;\r
} SCMI_CLOCK_RATE_CONTINUOUS;\r
\r
typedef struct {\r
- UINT64 Rate;\r
+ UINT64 Rate;\r
} SCMI_CLOCK_RATE_DISCRETE;\r
\r
typedef union {\r
- SCMI_CLOCK_RATE_CONTINUOUS ContinuousRate;\r
- SCMI_CLOCK_RATE_DISCRETE DiscreteRate;\r
+ SCMI_CLOCK_RATE_CONTINUOUS ContinuousRate;\r
+ SCMI_CLOCK_RATE_DISCRETE DiscreteRate;\r
} SCMI_CLOCK_RATE;\r
\r
#pragma pack()\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK_GET_VERSION) (\r
+(EFIAPI *SCMI_CLOCK_GET_VERSION)(\r
IN SCMI_CLOCK_PROTOCOL *This,\r
OUT UINT32 *Version\r
);\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK_GET_TOTAL_CLOCKS) (\r
+(EFIAPI *SCMI_CLOCK_GET_TOTAL_CLOCKS)(\r
IN SCMI_CLOCK_PROTOCOL *This,\r
OUT UINT32 *TotalClocks\r
);\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK_GET_CLOCK_ATTRIBUTES) (\r
+(EFIAPI *SCMI_CLOCK_GET_CLOCK_ATTRIBUTES)(\r
IN SCMI_CLOCK_PROTOCOL *This,\r
IN UINT32 ClockId,\r
OUT BOOLEAN *Enabled,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK_DESCRIBE_RATES) (\r
+(EFIAPI *SCMI_CLOCK_DESCRIBE_RATES)(\r
IN SCMI_CLOCK_PROTOCOL *This,\r
IN UINT32 ClockId,\r
OUT SCMI_CLOCK_RATE_FORMAT *Format,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK_RATE_GET) (\r
+(EFIAPI *SCMI_CLOCK_RATE_GET)(\r
IN SCMI_CLOCK_PROTOCOL *This,\r
IN UINT32 ClockId,\r
OUT UINT64 *Rate\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK_RATE_SET) (\r
+(EFIAPI *SCMI_CLOCK_RATE_SET)(\r
IN SCMI_CLOCK_PROTOCOL *This,\r
IN UINT32 ClockId,\r
IN UINT64 Rate\r
);\r
\r
typedef struct _SCMI_CLOCK_PROTOCOL {\r
- SCMI_CLOCK_GET_VERSION GetVersion;\r
- SCMI_CLOCK_GET_TOTAL_CLOCKS GetTotalClocks;\r
- SCMI_CLOCK_GET_CLOCK_ATTRIBUTES GetClockAttributes;\r
- SCMI_CLOCK_DESCRIBE_RATES DescribeRates;\r
- SCMI_CLOCK_RATE_GET RateGet;\r
- SCMI_CLOCK_RATE_SET RateSet;\r
+ SCMI_CLOCK_GET_VERSION GetVersion;\r
+ SCMI_CLOCK_GET_TOTAL_CLOCKS GetTotalClocks;\r
+ SCMI_CLOCK_GET_CLOCK_ATTRIBUTES GetClockAttributes;\r
+ SCMI_CLOCK_DESCRIBE_RATES DescribeRates;\r
+ SCMI_CLOCK_RATE_GET RateGet;\r
+ SCMI_CLOCK_RATE_SET RateSet;\r
} SCMI_CLOCK_PROTOCOL;\r
\r
#endif /* ARM_SCMI_CLOCK_PROTOCOL_H_ */\r
-\r