]>
Commit | Line | Data |
---|---|---|
4f2494cf GP |
1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2017-2018, Arm Limited. All rights reserved.\r | |
4 | \r | |
4059386c | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
4f2494cf GP |
6 | \r |
7 | System Control and Management Interface V1.0\r | |
8 | http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/\r | |
9 | DEN0056A_System_Control_and_Management_Interface.pdf\r | |
10 | **/\r | |
11 | \r | |
12 | #ifndef ARM_SCMI_PERFORMANCE_PROTOCOL_PRIVATE_H_\r | |
13 | #define ARM_SCMI_PERFORMANCE_PROTOCOL_PRIVATE_H_\r | |
14 | \r | |
15 | #include <Protocol/ArmScmiPerformanceProtocol.h>\r | |
16 | \r | |
17 | // Number of performance levels returned by a call to the SCP, Lvls Bits[11:0]\r | |
18 | #define NUM_PERF_LEVELS_MASK 0x0FFF\r | |
19 | #define NUM_PERF_LEVELS(Lvls) (Lvls & NUM_PERF_LEVELS_MASK)\r | |
20 | \r | |
21 | // Number of performance levels remaining after a call to the SCP, Lvls Bits[31:16]\r | |
22 | #define NUM_REMAIN_PERF_LEVELS_SHIFT 16\r | |
23 | #define NUM_REMAIN_PERF_LEVELS(Lvls) (Lvls >> NUM_REMAIN_PERF_LEVELS_SHIFT)\r | |
24 | \r | |
25 | /** Return values for SCMI_MESSAGE_ID_PERFORMANCE_DESCRIBE_LEVELS command.\r | |
26 |