]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Include/Protocol/ArmScmiClockProtocol.h
ArmPkg: Fix Ecc error 7008 for SCMI_CLOCK_RATE
[mirror_edk2.git] / ArmPkg / Include / Protocol / ArmScmiClockProtocol.h
index b4d970dee3e2b75adbe8d877255ce405d0d27644..85b5b8d1e764e3d963eb8a97b5d46e24022a9033 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2017-2018, Arm Limited. All rights reserved.\r
+  Copyright (c) 2017-2021, Arm Limited. All rights reserved.\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -57,12 +57,18 @@ typedef enum {
    either Rate or Min/Max/Step triplet is valid.\r
 */\r
 typedef struct {\r
-  union {\r
   UINT64 Min;\r
-  UINT64 Rate;\r
-  };\r
   UINT64 Max;\r
   UINT64 Step;\r
+} SCMI_CLOCK_RATE_CONTINUOUS;\r
+\r
+typedef struct {\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;\r
 \r
 #pragma pack()\r