]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Include/Protocol/ArmScmiClockProtocol.h
ArmPkg: Apply uncrustify changes
[mirror_edk2.git] / ArmPkg / Include / Protocol / ArmScmiClockProtocol.h
index 4210a53cf98d1c5862da30597b51a269a1ba5b64..7cdc61ff7c52cae90c5f0ee34ca576424182ed1f 100644 (file)
 \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
@@ -35,21 +35,21 @@ typedef enum {
 } 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
@@ -57,18 +57,18 @@ typedef enum {
    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
@@ -89,7 +89,7 @@ typedef struct _SCMI_CLOCK_PROTOCOL SCMI_CLOCK_PROTOCOL;
 **/\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
@@ -107,7 +107,7 @@ EFI_STATUS
 **/\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
@@ -127,7 +127,7 @@ EFI_STATUS
 **/\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
@@ -159,7 +159,7 @@ EFI_STATUS
 **/\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
@@ -181,7 +181,7 @@ EFI_STATUS
 **/\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
@@ -199,20 +199,19 @@ EFI_STATUS
 **/\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