]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Include/Protocol/EnhancedSpeedstep.h
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2TbltDevicePkg / Include / Protocol / EnhancedSpeedstep.h
1 /*++
2
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
4
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13
14
15
16 Module Name:
17
18 EnhancedSpeedstep.h
19
20 Abstract:
21
22 Enhanced Speedstep protocol
23
24 The Enhanced Speedstep Protocol support.
25
26 **/
27
28 #ifndef _ENHANCED_SPEEDSTEP_H_
29 #define _ENHANCED_SPEEDSTEP_H_
30
31 #define ENHANCED_SPEEDSTEP_PROTOCOL_GUID \
32 { \
33 0x91a1ddcf, 0x5374, 0x4939, 0x89, 0x51, 0xd7, 0x29, 0x3f, 0x1a, 0x78, 0x6f \
34 }
35
36 typedef struct _ENHANCED_SPEEDSTEP_PROTOCOL ENHANCED_SPEEDSTEP_PROTOCOL;
37
38 typedef struct {
39 UINT8 Version; // EIST State format
40 UINT8 Size; // Size of element
41 UINT32 RatioStep; // Step
42 UINT32 MinRatio; // Calculated min ratio
43 UINT32 MaxRatio; // Calculated max ratio
44 UINT32 MinCoreFreq; // Calculated min freq
45 UINT32 MaxCoreFreq; // Calculated max freq
46 UINT32 MinPower; // Calculated min power
47 UINT32 MaxPower; // Calculated max power
48 UINT32 NumStates; // Number of states
49 } EIST_INFORMATION;
50
51 typedef struct {
52 UINT32 CoreFrequency;
53 UINT32 Power;
54 UINT32 TransitionLatency;
55 UINT32 BusMasterLatency;
56 UINT32 Control;
57 UINT32 Status;
58 } EFI_ACPI_CPU_PSS_STATE;
59
60 typedef
61 EFI_STATUS
62 (EFIAPI *GET_EIST_TABLE) (
63 IN ENHANCED_SPEEDSTEP_PROTOCOL *This,
64 OUT EIST_INFORMATION **EistInformation,
65 OUT VOID **PssStates
66 );
67
68 struct _ENHANCED_SPEEDSTEP_PROTOCOL {
69 UINT32 ProcApicId;
70 GET_EIST_TABLE GetEistTable;
71 };
72
73 //
74 // There will be an instance of this protocol for every processor
75 // in the system. ProcNumber is used to manage all the different
76 // processors in the system and passed into the MP protocol
77 // to run code streams on application processors
78 //
79 extern EFI_GUID gEnhancedSpeedstepProtocolGuid;
80
81 #endif