/** @file\r
\r
- Copyright (c) 2017-2018, Arm Limited. All rights reserved.\r
+ Copyright (c) 2017-2021, Arm Limited. All rights reserved.\r
\r
- This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
System Control and Management Interface V1.0\r
http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/\r
#include <Protocol/ArmScmi.h>\r
#include <Protocol/ArmScmiClockProtocol.h>\r
\r
-#define ARM_SCMI_CLOCK2_PROTOCOL_GUID { \\r
+#define ARM_SCMI_CLOCK2_PROTOCOL_GUID {\\r
0xb8d8caf2, 0x9e94, 0x462c, { 0xa8, 0x34, 0x6c, 0x99, 0xfc, 0x05, 0xef, 0xcf } \\r
}\r
\r
-extern EFI_GUID gArmScmiClock2ProtocolGuid;\r
+extern EFI_GUID gArmScmiClock2ProtocolGuid;\r
\r
-#define SCMI_CLOCK2_PROTOCOL_VERSION 1\r
+#define SCMI_CLOCK2_PROTOCOL_VERSION 1\r
\r
typedef struct _SCMI_CLOCK2_PROTOCOL SCMI_CLOCK2_PROTOCOL;\r
\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK2_GET_VERSION) (\r
+(EFIAPI *SCMI_CLOCK2_GET_VERSION)(\r
IN SCMI_CLOCK2_PROTOCOL *This,\r
OUT UINT32 *Version\r
);\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK2_GET_TOTAL_CLOCKS) (\r
+(EFIAPI *SCMI_CLOCK2_GET_TOTAL_CLOCKS)(\r
IN SCMI_CLOCK2_PROTOCOL *This,\r
OUT UINT32 *TotalClocks\r
);\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK2_GET_CLOCK_ATTRIBUTES) (\r
+(EFIAPI *SCMI_CLOCK2_GET_CLOCK_ATTRIBUTES)(\r
IN SCMI_CLOCK2_PROTOCOL *This,\r
IN UINT32 ClockId,\r
OUT BOOLEAN *Enabled,\r
@param[in] This A pointer to SCMI_CLOCK2_PROTOCOL Instance.\r
@param[in] ClockId Identifier for the clock device.\r
\r
- @param[out] Format SCMI_CLOCK_RATE_FORMAT_DISCRETE: Clock device\r
+ @param[out] Format ScmiClockRateFormatDiscrete: Clock device\r
supports range of clock rates which are non-linear.\r
\r
- SCMI_CLOCK_RATE_FORMAT_LINEAR: Clock device supports\r
+ ScmiClockRateFormatLinear: Clock device supports\r
range of linear clock rates from Min to Max in steps.\r
\r
@param[out] TotalRates Total number of rates.\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK2_DESCRIBE_RATES) (\r
+(EFIAPI *SCMI_CLOCK2_DESCRIBE_RATES)(\r
IN SCMI_CLOCK2_PROTOCOL *This,\r
IN UINT32 ClockId,\r
OUT SCMI_CLOCK_RATE_FORMAT *Format,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK2_RATE_GET) (\r
+(EFIAPI *SCMI_CLOCK2_RATE_GET)(\r
IN SCMI_CLOCK2_PROTOCOL *This,\r
IN UINT32 ClockId,\r
OUT UINT64 *Rate\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK2_RATE_SET) (\r
+(EFIAPI *SCMI_CLOCK2_RATE_SET)(\r
IN SCMI_CLOCK2_PROTOCOL *This,\r
IN UINT32 ClockId,\r
IN UINT64 Rate\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *SCMI_CLOCK2_ENABLE) (\r
+(EFIAPI *SCMI_CLOCK2_ENABLE)(\r
IN SCMI_CLOCK2_PROTOCOL *This,\r
IN UINT32 ClockId,\r
IN BOOLEAN Enable\r
);\r
\r
typedef struct _SCMI_CLOCK2_PROTOCOL {\r
- SCMI_CLOCK2_GET_VERSION GetVersion;\r
- SCMI_CLOCK2_GET_TOTAL_CLOCKS GetTotalClocks;\r
- SCMI_CLOCK2_GET_CLOCK_ATTRIBUTES GetClockAttributes;\r
- SCMI_CLOCK2_DESCRIBE_RATES DescribeRates;\r
- SCMI_CLOCK2_RATE_GET RateGet;\r
- SCMI_CLOCK2_RATE_SET RateSet;\r
+ SCMI_CLOCK2_GET_VERSION GetVersion;\r
+ SCMI_CLOCK2_GET_TOTAL_CLOCKS GetTotalClocks;\r
+ SCMI_CLOCK2_GET_CLOCK_ATTRIBUTES GetClockAttributes;\r
+ SCMI_CLOCK2_DESCRIBE_RATES DescribeRates;\r
+ SCMI_CLOCK2_RATE_GET RateGet;\r
+ SCMI_CLOCK2_RATE_SET RateSet;\r
\r
// Extension to original ClockProtocol, added here so SCMI_CLOCK2_PROTOCOL\r
// can be cast to SCMI_CLOCK_PROTOCOL\r
- UINTN Version; // For future expandability\r
- SCMI_CLOCK2_ENABLE Enable;\r
+ UINTN Version; // For future expandability\r
+ SCMI_CLOCK2_ENABLE Enable;\r
} SCMI_CLOCK2_PROTOCOL;\r
\r
#endif /* ARM_SCMI_CLOCK2_PROTOCOL_H_ */\r