]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Drivers/ArmScmiDxe/ArmScmiPerformanceProtocolPrivate.h
MdeModulePkg/FaultTolerantWriteDxe: implement standalone MM version
[mirror_edk2.git] / ArmPkg / Drivers / ArmScmiDxe / ArmScmiPerformanceProtocolPrivate.h
CommitLineData
4f2494cf
GP
1/** @file\r
2\r
3 Copyright (c) 2017-2018, Arm Limited. All rights reserved.\r
4\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13 System Control and Management Interface V1.0\r
14 http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/\r
15 DEN0056A_System_Control_and_Management_Interface.pdf\r
16**/\r
17\r
18#ifndef ARM_SCMI_PERFORMANCE_PROTOCOL_PRIVATE_H_\r
19#define ARM_SCMI_PERFORMANCE_PROTOCOL_PRIVATE_H_\r
20\r
21#include <Protocol/ArmScmiPerformanceProtocol.h>\r
22\r
23// Number of performance levels returned by a call to the SCP, Lvls Bits[11:0]\r
24#define NUM_PERF_LEVELS_MASK 0x0FFF\r
25#define NUM_PERF_LEVELS(Lvls) (Lvls & NUM_PERF_LEVELS_MASK)\r
26\r
27// Number of performance levels remaining after a call to the SCP, Lvls Bits[31:16]\r
28#define NUM_REMAIN_PERF_LEVELS_SHIFT 16\r
29#define NUM_REMAIN_PERF_LEVELS(Lvls) (Lvls >> NUM_REMAIN_PERF_LEVELS_SHIFT)\r
30\r
31/** Return values for SCMI_MESSAGE_ID_PERFORMANCE_DESCRIBE_LEVELS command.\r
32