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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
/*++
Copyright (c) 2004 - 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Module Name:
DataHubSubClassProcessor.h
Abstract:
Definitions for processor sub class data records
Revision History
--*/
#ifndef _DATAHUB_SUBCLASS_PROCESSOR_H_
#define _DATAHUB_SUBCLASS_PROCESSOR_H_
#define EFI_PROCESSOR_SUBCLASS_VERSION 0x00010000
#define EFI_PROCESSOR_SUBCLASS_GUID \
{ 0x26fdeb7e, 0xb8af, 0x4ccf, 0xaa, 0x97, 0x02, 0x63, 0x3c, 0xe4, 0x8c, 0xa7 }
typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_CORE_FREQUENCY_DATA;
typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA;
typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_CORE_FREQUENCY_DATA;
typedef EFI_EXP_BASE10_DATA *EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA;
typedef EFI_EXP_BASE10_DATA *EFI_PROCESSOR_FSB_FREQUENCY_LIST_DATA;
typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_FSB_FREQUENCY_DATA;
typedef STRING_REF EFI_PROCESSOR_VERSION_DATA;
typedef STRING_REF EFI_PROCESSOR_MANUFACTURER_DATA;
typedef STRING_REF EFI_PROCESSOR_SERIAL_NUMBER_DATA;
typedef STRING_REF EFI_PROCESSOR_ASSET_TAG_DATA;
typedef struct {
UINT32 ProcessorSteppingId:4;
UINT32 ProcessorModel: 4;
UINT32 ProcessorFamily: 4;
UINT32 ProcessorType: 2;
UINT32 ProcessorReserved1: 2;
UINT32 ProcessorXModel: 4;
UINT32 ProcessorXFamily: 8;
UINT32 ProcessorReserved2: 4;
} EFI_PROCESSOR_SIGNATURE;
typedef struct {
UINT32 ProcessorBrandIndex :8;
UINT32 ProcessorClflush :8;
UINT32 ProcessorReserved :8;
UINT32 ProcessorDfltApicId :8;
} EFI_PROCESSOR_MISC_INFO;
typedef struct {
UINT32 ProcessorFpu: 1;
UINT32 ProcessorVme: 1;
UINT32 ProcessorDe: 1;
UINT32 ProcessorPse: 1;
UINT32 ProcessorTsc: 1;
UINT32 ProcessorMsr: 1;
UINT32 ProcessorPae: 1;
UINT32 ProcessorMce: 1;
UINT32 ProcessorCx8: 1;
UINT32 ProcessorApic: 1;
UINT32 ProcessorReserved1: 1;
UINT32 ProcessorSep: 1;
UINT32 ProcessorMtrr: 1;
UINT32 ProcessorPge: 1;
UINT32 ProcessorMca: 1;
UINT32 ProcessorCmov: 1;
UINT32 ProcessorPat: 1;
UINT32 ProcessorPse36: 1;
UINT32 ProcessorPsn: 1;
UINT32 ProcessorClfsh: 1;
UINT32 ProcessorReserved2: 1;
UINT32 ProcessorDs: 1;
UINT32 ProcessorAcpi: 1;
UINT32 ProcessorMmx: 1;
UINT32 ProcessorFxsr: 1;
UINT32 ProcessorSse: 1;
UINT32 ProcessorSse2: 1;
UINT32 ProcessorSs: 1;
UINT32 ProcessorReserved3: 1;
UINT32 ProcessorTm: 1;
UINT32 ProcessorReserved4: 2;
} EFI_PROCESSOR_FEATURE_FLAGS;
typedef struct {
EFI_PROCESSOR_SIGNATURE Signature;
EFI_PROCESSOR_MISC_INFO MiscInfo;
UINT32 Reserved;
EFI_PROCESSOR_FEATURE_FLAGS FeatureFlags;
} EFI_PROCESSOR_ID_DATA;
typedef enum {
EfiProcessorOther = 1,
EfiProcessorUnknown = 2,
EfiCentralProcessor = 3,
EfiMathProcessor = 4,
EfiDspProcessor = 5,
EfiVideoProcessor = 6
} EFI_PROCESSOR_TYPE_DATA;
typedef enum {
EfiProcessorFamilyOther = 1,
EfiProcessorFamilyUnknown = 2,
EfiProcessorFamily8086 = 3,
EfiProcessorFamily80286 = 4,
EfiProcessorFamilyIntel386 = 5,
EfiProcessorFamilyIntel486 = 6,
EfiProcessorFamily8087 = 7,
EfiProcessorFamily80287 = 8,
EfiProcessorFamily80387 = 9,
EfiProcessorFamily80487 = 0x0A,
EfiProcessorFamilyPentium = 0x0B,
EfiProcessorFamilyPentiumPro = 0x0C,
EfiProcessorFamilyPentiumII = 0x0D,
EfiProcessorFamilyPentiumMMX = 0x0E,
EfiProcessorFamilyCeleron = 0x0F,
EfiProcessorFamilyPentiumIIXeon = 0x10,
EfiProcessorFamilyPentiumIII = 0x11,
EfiProcessorFamilyM1 = 0x12,
EfiProcessorFamilyM2 = 0x13,
EfiProcessorFamilyM1Reserved2 = 0x14,
EfiProcessorFamilyM1Reserved3 = 0x15,
EfiProcessorFamilyM1Reserved4 = 0x16,
EfiProcessorFamilyM1Reserved5 = 0x17,
EfiProcessorFamilyAmdDuron = 0x18,
EfiProcessorFamilyK5 = 0x19,
EfiProcessorFamilyK6 = 0x1A,
EfiProcessorFamilyK6_2 = 0x1B,
EfiProcessorFamilyK6_3 = 0x1C,
EfiProcessorFamilyAmdAthlon = 0x1D,
EfiProcessorFamilyK6_2Plus = 0x1E,
EfiProcessorFamilyK5Reserved6 = 0x1F,
EfiProcessorFamilyPowerPC = 0x20,
EfiProcessorFamilyPowerPC601 = 0x21,
EfiProcessorFamilyPowerPC603 = 0x22,
EfiProcessorFamilyPowerPC603Plus = 0x23,
EfiProcessorFamilyPowerPC604 = 0x24,
EfiProcessorFamilyPowerPC620 = 0x25,
EfiProcessorFamilyPowerPC704 = 0x26,
EfiProcessorFamilyPowerPC750 = 0x27,
EfiProcessorFamilyAlpha2 = 0x30,
EfiProcessorFamilyAlpha21064 = 0x31,
EfiProcessorFamilyAlpha21066 = 0x32,
EfiProcessorFamilyAlpha21164 = 0x33,
EfiProcessorFamilyAlpha21164PC = 0x34,
EfiProcessorFamilyAlpha21164a = 0x35,
EfiProcessorFamilyAlpha21264 = 0x36,
EfiProcessorFamilyAlpha21364 = 0x37,
EfiProcessorFamilyMips = 0x40,
EfiProcessorFamilyMIPSR4000 = 0x41,
EfiProcessorFamilyMIPSR4200 = 0x42,
EfiProcessorFamilyMIPSR4400 = 0x43,
EfiProcessorFamilyMIPSR4600 = 0x44,
EfiProcessorFamilyMIPSR10000 = 0x45,
EfiProcessorFamilySparc = 0x50,
EfiProcessorFamilySuperSparc = 0x51,
EfiProcessorFamilymicroSparcII = 0x52,
EfiProcessorFamilymicroSparcIIep = 0x53,
EfiProcessorFamilyUltraSparc = 0x54,
EfiProcessorFamilyUltraSparcII = 0x55,
EfiProcessorFamilyUltraSparcIIi = 0x56,
EfiProcessorFamilyUltraSparcIII = 0x57,
EfiProcessorFamilyUltraSparcIIIi = 0x58,
EfiProcessorFamily68040 = 0x60,
EfiProcessorFamily68xxx = 0x61,
EfiProcessorFamily68000 = 0x62,
EfiProcessorFamily68010 = 0x63,
EfiProcessorFamily68020 = 0x64,
EfiProcessorFamily68030 = 0x65,
EfiProcessorFamilyHobbit = 0x70,
EfiProcessorFamilyCrusoeTM5000 = 0x78,
EfiProcessorFamilyCrusoeTM3000 = 0x79,
EfiProcessorFamilyWeitek = 0x80,
EfiProcessorFamilyItanium = 0x82,
EfiProcessorFamilyAmdAthlon64 = 0x83,
EfiProcessorFamilyAmdOpteron = 0x84,
EfiProcessorFamilyPARISC = 0x90,
EfiProcessorFamilyPaRisc8500 = 0x91,
EfiProcessorFamilyPaRisc8000 = 0x92,
EfiProcessorFamilyPaRisc7300LC = 0x93,
EfiProcessorFamilyPaRisc7200 = 0x94,
EfiProcessorFamilyPaRisc7100LC = 0x95,
EfiProcessorFamilyPaRisc7100 = 0x96,
EfiProcessorFamilyV30 = 0xA0,
EfiProcessorFamilyPentiumIIIXeon = 0xB0,
EfiProcessorFamilyPentiumIIISpeedStep = 0xB1,
EfiProcessorFamilyPentium4 = 0xB2,
EfiProcessorFamilyIntelXeon = 0xB3,
EfiProcessorFamilyAS400 = 0xB4,
EfiProcessorFamilyIntelXeonMP = 0xB5,
EfiProcessorFamilyAMDAthlonXP = 0xB6,
EfiProcessorFamilyAMDAthlonMP = 0xB7,
EfiProcessorFamilyIntelItanium2 = 0xB8,
EfiProcessorFamilyIntelPentiumM = 0xB9,
EfiProcessorFamilyIntelCeleronD = 0xBA,
EfiProcessorFamilyIntelPentiumD = 0xBB,
EfiProcessorFamilyIntelPentiumEx = 0xBC,
EfiProcessorFamilyIBM390 = 0xC8,
EfiProcessorFamilyG4 = 0xC9,
EfiProcessorFamilyG5 = 0xCA,
EfiProcessorFamilyi860 = 0xFA,
EfiProcessorFamilyi960 = 0xFB
} EFI_PROCESSOR_FAMILY_DATA;
typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_VOLTAGE_DATA;
typedef EFI_PHYSICAL_ADDRESS EFI_PROCESSOR_APIC_BASE_ADDRESS_DATA;
typedef UINT32 EFI_PROCESSOR_APIC_ID_DATA;
typedef UINT32 EFI_PROCESSOR_APIC_VERSION_NUMBER_DATA;
typedef enum {
EfiProcessorIa32Microcode = 1,
EfiProcessorIpfPalAMicrocode = 2,
EfiProcessorIpfPalBMicrocode = 3
} EFI_PROCESSOR_MICROCODE_TYPE;
typedef struct {
EFI_PROCESSOR_MICROCODE_TYPE ProcessorMicrocodeType;
UINT32 ProcessorMicrocodeRevisionNumber;
} EFI_PROCESSOR_MICROCODE_REVISION_DATA;
typedef struct {
UINT32 CpuStatus :3;
UINT32 Reserved1 :3;
UINT32 SocketPopulated :1;
UINT32 Reserved2 :1;
UINT32 ApicEnable :1;
UINT32 BootApplicationProcessor :1;
UINT32 Reserved3 :22;
} EFI_PROCESSOR_STATUS_DATA;
typedef enum {
EfiCpuStatusUnknown = 0,
EfiCpuStatusEnabled = 1,
EfiCpuStatusDisabledByUser = 2,
EfiCpuStatusDisabledbyBios = 3,
EfiCpuStatusIdle = 4,
EfiCpuStatusOther = 7
} EFI_CPU_STATUS;
typedef enum {
EfiProcessorSocketOther = 1,
EfiProcessorSocketUnknown = 2,
EfiProcessorSocketDaughterBoard = 3,
EfiProcessorSocketZIF = 4,
EfiProcessorSocketReplacePiggyBack = 5,
EfiProcessorSocketNone = 6,
EfiProcessorSocketLIF = 7,
EfiProcessorSocketSlot1 = 8,
EfiProcessorSocketSlot2 = 9,
EfiProcessorSocket370Pin = 0xA,
EfiProcessorSocketSlotA = 0xB,
EfiProcessorSocketSlotM = 0xC,
EfiProcessorSocket423 = 0xD,
EfiProcessorSocketA462 = 0xE,
EfiProcessorSocket478 = 0xF,
EfiProcessorSocket754 = 0x10,
EfiProcessorSocket940 = 0x11,
EfiProcessorSocket939 = 0x12,
EfiProcessorSocketmPGA604 = 0x13,
EfiProcessorSocketLGA771 = 0x14,
EfiProcessorSocketLGA775 = 0x15
} EFI_PROCESSOR_SOCKET_TYPE_DATA;
typedef STRING_REF EFI_PROCESSOR_SOCKET_NAME_DATA;
typedef EFI_INTER_LINK_DATA EFI_CACHE_ASSOCIATION_DATA;
typedef enum {
EfiProcessorHealthy = 1,
EfiProcessorPerfRestricted = 2,
EfiProcessorFuncRestricted = 3
} EFI_PROCESSOR_HEALTH_STATUS;
typedef UINTN EFI_PROCESSOR_PACKAGE_NUMBER_DATA;
typedef EFI_EXP_BASE10_DATA EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA;
typedef enum {
ProcessorCoreFrequencyRecordType = 1,
ProcessorFsbFrequencyRecordType = 2,
ProcessorVersionRecordType = 3,
ProcessorManufacturerRecordType = 4,
ProcessorSerialNumberRecordType = 5,
ProcessorIdRecordType = 6,
ProcessorTypeRecordType = 7,
ProcessorFamilyRecordType = 8,
ProcessorVoltageRecordType = 9,
ProcessorApicBaseAddressRecordType = 10,
ProcessorApicIdRecordType = 11,
ProcessorApicVersionNumberRecordType = 12,
CpuUcodeRevisionDataRecordType = 13,
ProcessorStatusRecordType = 14,
ProcessorSocketTypeRecordType = 15,
ProcessorSocketNameRecordType = 16,
CacheAssociationRecordType = 17,
ProcessorMaxCoreFrequencyRecordType = 18,
ProcessorAssetTagRecordType = 19,
ProcessorMaxFsbFrequencyRecordType = 20,
ProcessorPackageNumberRecordType = 21,
ProcessorCoreFrequencyListRecordType = 22,
ProcessorFsbFrequencyListRecordType = 23,
ProcessorHealthStatusRecordType = 24
} EFI_CPU_VARIABLE_RECORD_TYPE;
typedef union {
EFI_PROCESSOR_CORE_FREQUENCY_LIST_DATA ProcessorCoreFrequencyList;
EFI_PROCESSOR_FSB_FREQUENCY_LIST_DATA ProcessorFsbFrequencyList;
EFI_PROCESSOR_SERIAL_NUMBER_DATA ProcessorSerialNumber;
EFI_PROCESSOR_CORE_FREQUENCY_DATA ProcessorCoreFrequency;
EFI_PROCESSOR_FSB_FREQUENCY_DATA ProcessorFsbFrequency;
EFI_PROCESSOR_MAX_CORE_FREQUENCY_DATA ProcessorMaxCoreFrequency;
EFI_PROCESSOR_MAX_FSB_FREQUENCY_DATA ProcessorMaxFsbFrequency;
EFI_PROCESSOR_VERSION_DATA ProcessorVersion;
EFI_PROCESSOR_MANUFACTURER_DATA ProcessorManufacturer;
EFI_PROCESSOR_ID_DATA ProcessorId;
EFI_PROCESSOR_TYPE_DATA ProcessorType;
EFI_PROCESSOR_FAMILY_DATA ProcessorFamily;
EFI_PROCESSOR_VOLTAGE_DATA ProcessorVoltage;
EFI_PROCESSOR_APIC_BASE_ADDRESS_DATA ProcessorApicBase;
EFI_PROCESSOR_APIC_ID_DATA ProcessorApicId;
EFI_PROCESSOR_APIC_VERSION_NUMBER_DATA ProcessorApicVersionNumber;
EFI_PROCESSOR_MICROCODE_REVISION_DATA CpuUcodeRevisionData;
EFI_PROCESSOR_STATUS_DATA ProcessorStatus;
EFI_PROCESSOR_SOCKET_TYPE_DATA ProcessorSocketType;
EFI_PROCESSOR_SOCKET_NAME_DATA ProcessorSocketName;
EFI_PROCESSOR_ASSET_TAG_DATA ProcessorAssetTag;
EFI_PROCESSOR_HEALTH_STATUS ProcessorHealthStatus;
EFI_PROCESSOR_PACKAGE_NUMBER_DATA ProcessorPackageNumber;
} EFI_CPU_VARIABLE_RECORD;
typedef struct {
EFI_SUBCLASS_TYPE1_HEADER DataRecordHeader;
EFI_CPU_VARIABLE_RECORD VariableRecord;
} EFI_CPU_DATA_RECORD;
#endif
|