1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
//*************************************************************************
//*************************************************************************
//** **
//** (C)Copyright 1985-2010, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//*************************************************************************
//*************************************************************************
//**********************************************************************
// $Header: /Alaska/SOURCE/Modules/SharkBayRefCodes/Haswell/AMI Cpu PKG/CPU Core/CPU Hobs/CpuHobs.h 2 11/23/12 2:10a Hsingyingchung $
//
// $Revision: 2 $
//
// $Date: 11/23/12 2:10a $
//*****************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/SharkBayRefCodes/Haswell/AMI Cpu PKG/CPU Core/CPU Hobs/CpuHobs.h $
//
// 2 11/23/12 2:10a Hsingyingchung
// [TAG] EIP99095
// [Category] Improvement
// [Description] Update by XTU 4.X
//
// 1 2/07/12 3:58a Davidhsieh
//
// 1 5/06/11 6:07a Davidhsieh
// First release
//
// 11 10/09/10 11:29p Markw
// Fix Label 33.
//
// 10 10/09/10 10:04p Markw
// Fix Label 32.
//
// 9 10/06/10 7:52p Markw
// Issue Number: 45131
//
// Category: Spec Update
//
// Severity: Normal
//
// Description: Support for IA core current limit and iGfx core current
// limit for XTU on Sandy Bridge.
//
// Files: CpuPeiBoard.c, CpuDxeBoard.c, Cpu.h, CpuHobs.h
//
// 8 8/09/10 10:52a Markw
// Add XTU 2.1 support.
//
// 7 4/02/10 11:35a Markw
// Update HOB for Sandy Bridge VID support.
//
// 6 3/08/10 3:13p Markw
// Add XE support for Sandy Bridge.
//
// 5 1/08/10 2:29p Markw
// Add HOB definition for saving TDC/TDP.
//
// 4 10/28/09 5:24p Markw
//
// 3 3/04/09 10:39a Markw
// Update copyright header.
//
// 2 7/16/08 6:09p Markw
// Add DCA Hob.
//
// 1 11/02/07 1:59p Markw
//
//
//*****************************************************************************
//<AMI_FHDR_START>
//---------------------------------------------------------------------------
//
// Name: CpuHobs.h
//
// Description: Collection of CPU Hobs.
//
//---------------------------------------------------------------------------
//<AMI_FHDR_END>
#ifndef _CPU_HOBS_H__
#define _CPU_HOBS_H__
#include <pei.h>
#include <hob.h>
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(push,1)
//This HOB is intended to be temporary until a better solution is available.
// {6865C455-8626-40d8-90F4-A69460A4AB5A}
#define DCA_HOB_GUID \
{0x6865c455, 0x8626, 0x40d8, 0x90, 0xf4, 0xa6, 0x94, 0x60, 0xa4, 0xab, 0x5a}
typedef struct {
EFI_HOB_GUID_TYPE EfiHobGuidType;
BOOLEAN Supported;
} DCA_HOB;
/////////////////////////////
////////////////////////////
//This HOB is subject to change at any CPU label and is only for the CPU module.
// {982D8C6F-F6F6-4135-A309-A4593EA56417}
#define AMI_INTERNAL_FACTORY_TDC_TDP_HOB_GUID \
{0x982d8c6f, 0xf6f6, 0x4135, 0xa3, 0x9, 0xa4, 0x59, 0x3e, 0xa5, 0x64, 0x17}
typedef struct {
EFI_HOB_GUID_TYPE EfiHobGuidType;
UINT8 Revision;
BOOLEAN IsSandyBridge;
BOOLEAN IsHasWell;
UINT64 Reserved0;
UINT8 PowerConv;
UINT8 CurConv;
UINT8 TimeConv;
UINT16 Tdc;
UINT16 Tdp; //For Sandy Bridge, this also POWER_LIMIT_1
UINT8 TdpLimitTime; //For Sandy Bridge, this is POWER_LIMIT_1_TIME
UINT8 Vid;
//Used for PERF_TUNE_SUPPORT Start
UINT8 OneCoreRatioLimit;
UINT8 TwoCoreRatioLimit;
UINT8 ThreeCoreRatioLimit;
UINT8 FourCoreRatioLimit;
UINT8 FiveCoreRatioLimit;
UINT8 SixCoreRatioLimit;
UINT16 IaCoreCurrentMax;
UINT16 IGfxCoreCurrentMax;
UINT8 OneCoreRatioMax;
UINT8 TwoCoreRatioMax;
UINT8 ThreeCoreRatioMax;
UINT8 FourCoreRatioMax;
UINT8 FiveCoreRatioMax;
UINT8 SixCoreRatioMax;
//Used for PERF_TUNE_SUPPORT End
} AMI_INTERNAL_FACTORY_TDC_TDP_HOB;
#pragma pack(pop)
/****** DO NOT WRITE BELOW THIS LINE *******/
#ifdef __cplusplus
}
#endif
#endif
//*************************************************************************
//*************************************************************************
//** **
//** (C)Copyright 1985-2010, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//*************************************************************************
//*************************************************************************
|