Debian Codegraph @

src/vendorcode/intel/fsp/fsp2_0/snowridge/FspmUpd.h

raw symbols SCIP
1 /** @file
2
3 Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
4
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
7
8 * Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above copyright notice, this
11 list of conditions and the following disclaimer in the documentation and/or
12 other materials provided with the distribution.
13 * Neither the name of Intel Corporation nor the names of its contributors may
14 be used to endorse or promote products derived from this software without
15 specific prior written permission.
16
17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 THE POSSIBILITY OF SUCH DAMAGE.
28
29 This file is automatically generated. Please do NOT modify !!!
30
31 **/
32
33 #ifndef __FSPMUPD_H__
34 #define __FSPMUPD_H__
35
36 #include <FspUpd.h>
37
38 #pragma pack(1)
39
40 #define MAX_CHANNEL 2 /* Maximum Number of Memory Channels */
41 #define MAX_DIMM 2 /* Maximum Number of DIMMs PER Memory Channel */
42 #define MAX_SPD_BYTES 512 /* Maximum Number of SPD bytes */
43 #define MAX_USB_PORTS 4
44
45 /*
46 * SMBIOS Memory Info structures.
47 */
48 typedef struct {
49 UINT8 DimmId;
50 UINT32 SizeInMb;
51 UINT16 MfgId;
52 UINT8 ModulePartNum[20]; /* Module part number for DDR3 is 18 bytes however for DRR4 20 bytes as per JEDEC Spec, so reserving 20 bytes */
53 } DIMM_INFO;
54
55 typedef struct {
56 UINT8 ChannelId;
57 UINT8 DimmCount;
58 DIMM_INFO DimmInfo[MAX_DIMM];
59 } CHANNEL_INFO;
60
61 typedef struct {
62 UINT8 Revision;
63 UINT16 DataWidth;
64 /** As defined in SMBIOS 3.0 spec
65 Section 7.18.2 and Table 75
66 **/
67 UINT16 MemoryType;
68 UINT16 MemoryFrequencyInMHz;
69 /** As defined in SMBIOS 3.0 spec
70 Section 7.17.3 and Table 72
71 **/
72 UINT8 ErrorCorrectionType;
73 UINT8 ChannelCount;
74 CHANNEL_INFO ChannelInfo[MAX_CHANNEL];
75 } FSP_SMBIOS_MEMORY_INFO;
76
77 typedef struct {
78 UINT32 PerfSig;
79 UINT16 PerfLen;
80 UINT16 Reserved4;
81 UINT32 PerfIdx;
82 UINT64 PerfData[32];
83 } FSP_PERF_INFO;
84
85 #define BL_MAX_FIA_LANES 24
86 #define BL_FIA_LANE_OVERRIDE_DISABLED 0xff
87 #define BL_FIA_LANE_DISABLED 0x0
88 #define BL_FIA_LANE_PCIE 0x1
89 #define BL_FIA_LANE_SATA 0x2
90 #define BL_FIA_LANE_XHCI 0x3
91 #define BL_FIA_LANE_PCIE_ROOT_PORT_LINK_WIDTH_SET_BY_BICTRL 0x0
92 #define BL_FIA_LANE_PCIE_ROOT_PORT_LINK_WIDTH_X1 0x1
93
94 typedef struct {
95 UINT8 FiaLaneConfig[BL_MAX_FIA_LANES];
96 UINT8 FiaLaneLinkWidth[BL_MAX_FIA_LANES];
97 } BL_HSIO_INFORMATION;
98
99 /**
100 This structure holds the DLL configuration
101 register values that will be programmed by RC.
102 Those policies should be used by platform if default values
103 provided by RC are not sufficient to provide stable operation
104 at all supported speed modes. RC will blindly set the DLL values
105 as provided in this structure.
106
107 For help with obtaining valid DLL values for your platform please
108 contact enabling support.
109 **/
110 typedef struct {
111 UINT32 TxCmdDelayControl; // Offset 820h: Tx CMD Delay Control
112 UINT32 TxDataDelayControl1; // Offset 824h: Tx Data Delay Control 1
113 UINT32 TxDataDelayControl2; // Offset 828h: Tx Data Delay Control 2
114 UINT32 RxCmdDataDelayControl1; // Offset 82Ch: Rx CMD + Data Delay Control 1
115 UINT32 RxCmdDataDelayControl2; // Offset 834h: Rx CMD + Data Delay Control 2
116 UINT32 RxStrobeDelayControl; // Offset 830h: Rx Strobe Delay Control, valid only for eMMC
117 } BL_SCS_SD_DLL;
118
119 /**
120 Definition of FIA OVERRIDE STATUS HOB
121 Get/Set Status are defined by their respective Get/Set MeFiaMuxConfig functions called in PeiFiaMuxConfigInitLib.
122
123 FIA MUX configuration is based on platform design and generally set by soft straps.
124 FIA MUX configuration can change the generic lane assignment through the FSP UPDs to increase flexibility.
125 FIA_OVERRIDE_STATUS_HOB allows the FSP to provide the required feedback
126 on the update of the FIA MUX configuration to the customer's bootloader.
127 **/
128 typedef struct {
129 UINT32 FiaMuxConfigGetStatus; // Status returned by MeFiaMuxConfigGet (MeFiaMuxLib)
130 UINT32 FiaMuxConfigSetStatus; // Status returned by MeFiaMuxConfigSet (MeFiaMuxLib)
131 BOOLEAN FiaMuxConfigSetRequired; // Indicates that a set was required in the FIA lane assignment.
132 // FALSE = the requested config matched the existing one.
133 // TRUE = the requested config did not match the existing one.
134 } BL_FIA_OVERRIDE_STATUS_HOB;
135
136
137 //
138 // Data Types
139 //
140 #ifndef UINT64_STRUCT_T
141 #define UINT64_STRUCT_T
142 typedef union {
143 struct {
144 UINT32 Low;
145 UINT32 High;
146 } Data32;
147 UINT64 Data;
148 } BL_UINT64_STRUCT;
149 #endif // UINT64_STRUCT_T
150
151 ///
152 /// RC version number structure.
153 ///
154 typedef struct {
155 UINT8 Major;
156 UINT8 Minor;
157 UINT8 Revision;
158 UINT16 BuildNumber;
159 } BL_RC_VERSION;
160
161 #define BL_MAX_CHA_MAP 1
162 #define BL_MAX_FW_KTI_PORTS 3
163 #define BL_MAX_SOCKET 1
164 #define BL_NUMBER_PORTS_PER_SOCKET 5
165 #define BL_TYPE_MAX_MMIO_BAR 11
166 #define BL_MAX_IMC 1
167 #define BL_MAX_CH 2
168 #define BL_MAX_LOGIC_IIO_STACK 8
169 #define BL_MAX_IIO_STACK 6
170 #define BL_MaxIIO BL_MAX_SOCKET
171 #define BL_MC_MAX_NODE (BL_MAX_SOCKET * BL_MAX_IMC)
172
173
174 typedef struct {
175 UINT8 Valid; // TRUE, if the link is valid (i.e reached normal operation)
176 UINT8 PeerSocId; // Socket ID
177 UINT8 PeerSocType; // Socket Type (0 - CPU; 1 - IIO)
178 UINT8 PeerPort; // Port of the peer socket
179 }BL_QPI_PEER_DATA;
180
181 typedef struct {
182 UINT8 Valid;
183 UINT32 MmioBar[BL_TYPE_MAX_MMIO_BAR];
184 UINT8 PcieSegment;
185 BL_UINT64_STRUCT SegMmcfgBase;
186 UINT16 stackPresentBitmap;
187 UINT16 M2PciePresentBitmap;
188 UINT8 TotM3Kti;
189 UINT8 TotCha;
190 UINT32 ChaList[BL_MAX_CHA_MAP];
191 UINT32 SocId;
192 BL_QPI_PEER_DATA PeerInfo[BL_MAX_FW_KTI_PORTS]; // QPI LEP info
193 } BL_QPI_CPU_DATA;
194
195 typedef struct {
196 UINT8 Valid;
197 UINT8 SocId;
198 BL_QPI_PEER_DATA PeerInfo[BL_MAX_SOCKET]; // QPI LEP info
199 } BL_QPI_IIO_DATA;
200
201 typedef struct {
202 UINT8 Device;
203 UINT8 Function;
204 } BL_IIO_PORT_INFO;
205
206 typedef struct {
207 BL_IIO_PORT_INFO PortInfo[BL_NUMBER_PORTS_PER_SOCKET];
208 } BL_IIO_DMI_PCIE_INFO;
209
210 typedef struct _BL_STACK_RES {
211 UINT8 Personality; // Refer to BL_STACK_TYPE for the meaning of this field.
212 UINT8 BusBase;
213 UINT8 BusLimit;
214 UINT16 PciResourceIoBase;
215 UINT16 PciResourceIoLimit;
216 UINT32 IoApicBase;
217 UINT32 IoApicLimit;
218 UINT32 Mmio32Base; // Base of low MMIO configured for this stack in memory map
219 UINT32 Mmio32Limit; // Limit of low MMIO configured for this stack in memory map
220 UINT64 Mmio64Base; // Base of high MMIO configured for this stack in memory map
221 UINT64 Mmio64Limit; // Limit of high MMIO configured for this stack in memory map
222 UINT32 PciResourceMem32Base; // Base of low MMIO resource available for PCI devices
223 UINT32 PciResourceMem32Limit; // Limit of low MMIO resource available for PCI devices
224 UINT64 PciResourceMem64Base; // Base of high MMIO resource available for PCI devices
225 UINT64 PciResourceMem64Limit; // Limit of high MMIO resource available for PCI devices
226 UINT32 VtdBarAddress;
227 UINT32 Mmio32MinSize; // Minimum required size of MMIO32 resource needed for this stack
228 } BL_STACK_RES;
229
230 typedef struct {
231 UINT8 Valid;
232 UINT8 SocketID; // Socket ID of the IIO (0..3)
233 UINT8 BusBase;
234 UINT8 BusLimit;
235 UINT16 PciResourceIoBase;
236 UINT16 PciResourceIoLimit;
237 UINT32 IoApicBase;
238 UINT32 IoApicLimit;
239 UINT32 Mmio32Base; // Base of low MMIO configured for this socket in memory map
240 UINT32 Mmio32Limit; // Limit of low MMIO configured for this socket in memory map
241 UINT64 Mmio64Base; // Base of high MMIO configured for this socket in memory map
242 UINT64 Mmio64Limit; // Limit of high MMIO configured for this socket in memory map
243 BL_STACK_RES StackRes[BL_MAX_LOGIC_IIO_STACK];
244 UINT32 RcBaseAddress;
245 BL_IIO_DMI_PCIE_INFO PcieInfo;
246 UINT8 DmaDeviceCount;
247 } BL_IIO_RESOURCE_INSTANCE;
248
249 typedef struct {
250 UINT16 PlatGlobalIoBase; // Global IO Base
251 UINT16 PlatGlobalIoLimit; // Global IO Limit
252 UINT32 PlatGlobalMmio32Base; // Global Mmiol base
253 UINT32 PlatGlobalMmio32Limit; // Global Mmiol limit
254 UINT64 PlatGlobalMmio64Base; // Global Mmioh Base [43:0]
255 UINT64 PlatGlobalMmio64Limit; // Global Mmioh Limit [43:0]
256 BL_QPI_CPU_DATA CpuQpiInfo[BL_MAX_SOCKET]; // QPI related info per CPU
257 BL_QPI_IIO_DATA IioQpiInfo[BL_MAX_SOCKET]; // QPI related info per IIO
258 UINT32 MemTsegSize;
259 UINT32 MemIedSize;
260 UINT64 PciExpressBase;
261 UINT32 PciExpressSize;
262 UINT32 MemTolm;
263 BL_IIO_RESOURCE_INSTANCE IIO_resource[BL_MAX_SOCKET];
264 UINT8 numofIIO;
265 UINT8 MaxBusNumber;
266 UINT32 packageBspApicID[BL_MAX_SOCKET]; // This data array is valid only for SBSP, not for non-SBSP CPUs. <AS> for CpuSv
267 UINT8 EVMode;
268 UINT8 Pci64BitResourceAllocation;
269 UINT8 SkuPersonality[BL_MAX_SOCKET];
270 UINT8 VMDStackEnable[BL_MaxIIO][BL_MAX_IIO_STACK];
271 UINT16 IoGranularity;
272 UINT32 MmiolGranularity;
273 BL_UINT64_STRUCT MmiohGranularity;
274 UINT8 RemoteRequestThreshold; //5370389
275 UINT32 UboxMmioSize;
276 UINT32 MaxAddressBits;
277 } BL_PLATFORM_DATA;
278
279 typedef struct {
280 UINT8 CurrentUpiiLinkSpeed;// Current programmed UPI Link speed (Slow/Full speed mode)
281 UINT8 CurrentUpiLinkFrequency; // Current requested UPI Link frequency (in GT)
282 UINT8 OutKtiCpuSktHotPlugEn; // 0 - Disabled, 1 - Enabled for PM X2APIC
283 UINT32 OutKtiPerLinkL1En[BL_MAX_SOCKET]; // output kti link enabled status for PM
284 UINT8 IsocEnable;
285 UINT32 meRequestedSize; // Size of the memory range requested by ME FW, in MB
286 UINT32 ieRequestedSize; // Size of the memory range requested by IE FW, in MB
287 UINT8 DmiVc1;
288 UINT8 DmiVcm;
289 UINT32 CpuPCPSInfo;
290 UINT8 cpuSubType;
291 UINT8 SystemRasType;
292 UINT8 numCpus; // 1,..4. Total number of CPU packages installed and detected (1..4)by QPI RC
293 UINT16 tolmLimit;
294 UINT32 tohmLimit;
295 BL_RC_VERSION RcVersion;
296 BOOLEAN MsrTraceEnable;
297 UINT8 DdrXoverMode; // DDR 2.2 Mode
298 // For RAS
299 UINT8 bootMode;
300 UINT8 OutClusterOnDieEn; // Whether RC enabled COD support
301 UINT8 OutSncEn;
302 UINT8 OutNumOfCluster;
303 UINT8 imcEnabled[BL_MAX_SOCKET][BL_MAX_IMC];
304 UINT16 LlcSizeReg;
305 UINT8 chEnabled[BL_MAX_SOCKET][BL_MAX_CH];
306 UINT8 memNode[BL_MC_MAX_NODE];
307 UINT8 IoDcMode;
308 UINT8 DfxRstCplBitsEn;
309 } BL_SYSTEM_STATUS;
310
311 typedef struct {
312 BL_PLATFORM_DATA PlatformData;
313 BL_SYSTEM_STATUS SystemStatus;
314 } BL_IIO_UDS;
315
316 //PCI MMIO and IO resource reconfiguration
317 typedef struct {
318 UINT16 IoBase; // Base of I/O range assigned to entity
319 UINT16 IoLimit; // Limit of I/O range assigned to entity
320 UINT32 LowMmioBase; // Base of low MMIO region for entity
321 UINT32 LowMmioLimit; // Limit of low MMIO region for entity
322 UINT64 HighMmioBase; // Base of high (64-bit) MMIO region for entity
323 UINT64 HighMmioLimit; // Limit of high (64-bit) MMIO region for entity
324 } BL_PCI_BASE_LIMITS;
325
326 typedef struct {
327 BL_PCI_BASE_LIMITS StackLimits[BL_MAX_LOGIC_IIO_STACK]; // Base and Limit of all PCIe resources for each stack of the socket
328 } BL_SOCKET_PCI_BASE_LIMITS;
329
330 typedef struct {
331 BL_SOCKET_PCI_BASE_LIMITS Socket[BL_MAX_SOCKET]; // Base and limit of all PCIe resources for each socket
332 } BL_SYSTEM_PCI_BASE_LIMITS;
333
334 typedef enum {
335 BL_TYPE_UBOX = 0,
336 BL_TYPE_UBOX_IIO,
337 BL_TYPE_MCP,
338 BL_TYPE_FPGA,
339 BL_TYPE_HFI,
340 BL_TYPE_NAC,
341 BL_TYPE_GRAPHICS,
342 BL_TYPE_DINO,
343 BL_TYPE_RESERVED,
344 BL_TYPE_DISABLED, // This item must be prior to stack specific disable types
345 BL_TYPE_UBOX_IIO_DIS,
346 BL_TYPE_MCP_DIS,
347 BL_TYPE_FPGA_DIS,
348 BL_TYPE_HFI_DIS,
349 BL_TYPE_NAC_DIS,
350 BL_TYPE_GRAPHICS_DIS,
351 BL_TYPE_DINO_DIS,
352 BL_TYPE_RESERVED_DIS,
353 BL_TYPE_NONE
354 } BL_STACK_TYPE; // This enumeration defines the "Personality" of a given stack.
355
356
357 /** FSP-M Configuration
358 **/
359 typedef struct {
360
361 /** Offset 0x0040 - Enable BIOS SSA RMT
362 Enables/Disables SSA RMT. Please refer to the Integration guide for RMT details.
363 $EN_DIS
364 **/
365 UINT8 PcdEnableBiosSsaRMT;
366
367 /** Offset 0x0041 - Enable BIOS SSA RMT on Fast Cold Boot
368 Enables/Disables SSA RMT on a Fast Cold Boot
369 $EN_DIS
370 **/
371 UINT8 PcdEnableBiosSsaRMTonFCB;
372
373 /** Offset 0x0042 - Enable RMT per Bit Margining
374 Enables/Disables Per Bit Margining
375 $EN_DIS
376 **/
377 UINT8 PcdBiosSsaPerBitMargining;
378
379 /** Offset 0x0043 - Enable SSA Tables Display
380 Enables/Disables displaying results as tables
381 $EN_DIS
382 **/
383 UINT8 PcdBiosSsaDisplayTables;
384
385 /** Offset 0x0044 - Enable SSA Plot Display
386 Enables/Disables the display of per bit results as plots
387 $EN_DIS
388 **/
389 UINT8 PcdBiosSsaPerDisplayPlots;
390
391 /** Offset 0x0045 - Loop count for rank test
392 Exponential loop count for a single rank test
393 **/
394 UINT8 PcdBiosSsaLoopCount;
395
396 /** Offset 0x0046 - Enable Backside Margining
397 Enables/Disables margin test on the register or buffer backside
398 $EN_DIS
399 **/
400 UINT8 PcdBiosSsaBacksideMargining;
401
402 /** Offset 0x0047 - Enable Early Read ID Margining
403 Enables/Disables PMem Early Read Id Test
404 $EN_DIS
405 **/
406 UINT8 PcdBiosSsaEarlyReadIdMargining;
407
408 /** Offset 0x0048 - Enable Step Size Override
409 Enables/Disables overriding the default step sizes
410 $EN_DIS
411 **/
412 UINT8 PcdBiosSsaStepSizeOverride;
413
414 /** Offset 0x0049 - Step size RxDqs
415 Step size of RxDqs. Auto:1. Supported values : 1,2,4,8. This option is valid only
416 if 'Enable Step size override' is Enabled
417 1:1, 2:2, 4:4, 8:8
418 **/
419 UINT8 PcdBiosSsaRxDqs;
420
421 /** Offset 0x004A - Step size RxVrefs
422 Step size of RxVrefs. Auto:1. Supported values : 1,2,4,8. This option is valid only
423 if 'Enable Step size override' is Enabled
424 1:1, 2:2, 4:4, 8:8
425 **/
426 UINT8 PcdBiosSsaRxVref;
427
428 /** Offset 0x004B - Step size TxDqs
429 Step size of TxDqs. Auto:1. Supported values : 1,2,4,8. This option is valid only
430 if 'Enable Step size override' is Enabled
431 1:1, 2:2, 4:4, 8:8
432 **/
433 UINT8 PcdBiosSsaTxDq;
434
435 /** Offset 0x004C - Step size TxVrefs
436 Step size of TxVrefs. Auto:1. Supported values : 1,2,4,8. This option is valid only
437 if 'Enable Step size override' is Enabled
438 1:1, 2:2, 4:4, 8:8
439 **/
440 UINT8 PcdBiosSsaTxVref;
441
442 /** Offset 0x004D - Step size CmdAll
443 Step size of CmdAll. Auto:1. Supported values : 1,2,4,8. This option is valid only
444 if 'Enable Step size override' is Enabled
445 1:1, 2:2, 4:4, 8:8
446 **/
447 UINT8 PcdBiosSsaCmdAll;
448
449 /** Offset 0x004E - Step size CmdVref
450 Step size of CmdVref. Auto:1. Supported values : 1,2,4,8. This option is valid only
451 if 'Enable Step size override' is Enabled
452 1:1, 2:2, 4:4, 8:8
453 **/
454 UINT8 PcdBiosSsaCmdVref;
455
456 /** Offset 0x004F - Step size CtlAll
457 Step size of CtlAll. Auto:1. Supported values : 1,2,4,8. This option is valid only
458 if 'Enable Step size override' is Enabled
459 1:1, 2:2, 4:4, 8:8
460 **/
461 UINT8 PcdBiosSsaCtlAll;
462
463 /** Offset 0x0050 - Step size EridDelay
464 Step size of EridDelay. Auto:1. Supported values : 1,2,4,8. This option is valid
465 only if 'Enable Step size override' is Enabled
466 1:1, 2:2, 4:4, 8:8
467 **/
468 UINT8 PcdBiosSsaEridDelay;
469
470 /** Offset 0x0051 - Step size EridVref
471 Step size of EridVref. Auto:1. Supported values : 1,2,4,8. This option is valid
472 only if 'Enable Step size override' is Enabled
473 1:1, 2:2, 4:4, 8:8
474 **/
475 UINT8 PcdBiosSsaEridVref;
476
477 /** Offset 0x0052 - Enable SSA RMT Debug Message
478 Enables the BSSA RMT debug messages
479 2:Disable, 5:Enable
480 **/
481 UINT8 PcdBiosSsaDebugMessages;
482
483 /** Offset 0x0053
484 **/
485 UINT8 UnusedUpdSpace0[13];
486
487 /** Offset 0x0060 - ECC Support
488 Enable/disable ECC Support.
489 $EN_DIS
490 **/
491 UINT8 PcdEccSupport;
492
493 /** Offset 0x0061 - Fast Boot
494 Enable/Disable Fast Boot.
495 0:Disabled,1:Enabled
496 **/
497 UINT8 PcdFastBoot;
498
499 /** Offset 0x0062 - Memory Test
500 Enable/Disable Memory Test.
501 $EN_DIS
502 **/
503 UINT8 PcdMemTest;
504
505 /** Offset 0x0063 - Memory Turnaround Time Optimization
506 Enable/Disable Memory turnaround time optimization.
507 $EN_DIS
508 **/
509 UINT8 PcdMemTurnaroundOpt;
510
511 /** Offset 0x0064 - Memory Frequency
512 Set DDR Memory Frequency Limit
513 0: AUTO, 4:1200, 5:1333, 6:1400, 7:1600, 8:1800, 9:1866, 11:2133, 12:2200, 13:2400,
514 14:2600, 15:2666, 16:2800, 17: 2933
515 **/
516 UINT8 PcdDdrFreq;
517
518 /** Offset 0x0065 - Memory Command Timing
519 Select the desired memory controller command timing
520 0:Auto, 1:1N, 2:2N, 3:3N
521 **/
522 UINT8 PcdCommandTiming;
523
524 /** Offset 0x0066 - Memory Custom Refresh Rate
525 Set Desired rate in 0.1x units of the standard 7.8 usec interval. The valid range
526 is 20 - 80(i.e. 2x to 8x)
527 **/
528 UINT8 PcdCustomRefreshRate;
529
530 /** Offset 0x0067 - TSEG size
531 Configure TSEG size in MB.
532 1:8M, 2:16M, 3:32M, 4:64M, 5:128M
533 **/
534 UINT8 PcdTsegSize;
535
536 /** Offset 0x0068
537 **/
538 UINT8 UnusedUpdSpace1[40];
539
540 /** Offset 0x0090 - HSUART Device
541 Select the PCI High Speed UART Device for Serial Port.
542 0:HSUART0, 1:HSUART1, 2:HSUART2
543 **/
544 UINT8 PcdHsuartDevice;
545
546 /** Offset 0x0091 - ME Heci Communication
547 Enable/Disable ME Heci Communication.
548 0:Disabled,1:Enabled
549 **/
550 UINT8 PcdHeciCommunication;
551
552 /** Offset 0x0092 - Virtualization Technology for Directed I/O
553 Enable/Disable Virtualization Technology for Directed I/O.
554 $EN_DIS
555 **/
556 UINT8 PcdVtdSupport;
557
558 /** Offset 0x0093 - Enable USB3 Ports
559 Enable/Disable per USB3 Ports. One byte for each port, byte0 for port0, byte1 for
560 port1 and so on.
561 **/
562 UINT32 PcdPchUsb3Port;
563
564 /** Offset 0x0097 - Enable USB2 Ports
565 Enable/Disable per USB2 Ports. One byte for each port, byte0 for port0, byte1 for
566 port1 and so on.
567 **/
568 UINT32 PcdPchUsb2Port;
569
570 /** Offset 0x009B - Enable USB3 Port Over Current Configuration
571 Enable over current pin assignment per USB3 port. 0xFF mean skip over current pin.
572 One byte for each port, byte0 for port0, byte1 for port1 and so on
573 **/
574 UINT32 PcdPchUsb3PortOc;
575
576 /** Offset 0x009F - Enable USB2 Port Over Current Configuration
577 Enable over current pin assignment per USB2 port. 0xFF mean skip over current pin.
578 One byte for each port, byte0 for port0, byte1 for port1 and so on
579 **/
580 UINT32 PcdPchUsb2PortOc;
581
582 /** Offset 0x00A3 - USB2 Per Port HS Pre-emphasis Bias
583 USB2 Per Port HS Pre-emphasis Bias. 000b - 0mV, 001b - 11.25mV, 010b - 16.9mV, 011b
584 - 28.15mV, 100b - 28.15mV, 101b - 39.35mV, 110b - 45mV, 111b - 56.3mV. One byte
585 for each port.
586 **/
587 UINT32 PcdUsb2PeTxiSet;
588
589 /** Offset 0x00A7 - USB2 Per Port HS Transmitter Bias
590 USB2 Per Port HS Transmitter Bias. 000b - 0mV, 001b - 11.25mV, 010b - 16.9mV, 011b
591 - 28.15mV, 100b - 28.15mV, 101b - 39.35mV, 110b - 45mV, 111b - 56.3mV. One byte
592 for each port.
593 **/
594 UINT32 PcdUsb2TxiSet;
595
596 /** Offset 0x00AB - USB2 Per Port HS Transmitter Emphasis
597 USB2 Per Port HS Transmitter Emphasis. 00b - Emphasis OFF, 01b - De-emphasis ON,
598 10b - Pre-emphasis ON, 11b - Pre-emphasis & De-emphasis ON. One byte for each port.
599 **/
600 UINT32 PcdUsb2PreDeEmp;
601
602 /** Offset 0x00AF - USB2 Per Port Half Bit Pre-emphasis
603 USB2 Per Port Half Bit Pre-emphasis. 1b - half-bit pre-emphasis, 0b - full-bit pre-emphasis.
604 One byte for each port.
605 **/
606 UINT32 PcdUsb2PreEmpHalfBit;
607
608 /** Offset 0x00B3 - IIO PCIe Port 1 Bifurcation
609 IIO PCI Express port bifurcation for selected slot(s).
610 0xFF:Auto, 0:X4X4X4X4, 1:X4X4X8, 2:X8X4X4, 3:X8X8, 4:X16
611 **/
612 UINT8 PcdIIOPciePortBifurcation;
613
614 /** Offset 0x00B4 - IIO PCIe R-Link DeEmphasis
615 Desired DeEmphasis level for IIO PCIe R-Link
616 0:6dB, 1:3.5dB
617 **/
618 UINT8 PcdIIoPcieRLinkDeEmphasis;
619
620 /** Offset 0x00B5 - IIO PCIe Port 1A DeEmphasis
621 Desired DeEmphasis level for IIO PCIe Port 1A
622 0:6dB, 1:3.5dB
623 **/
624 UINT8 PcdIIoPciePort1ADeEmphasis;
625
626 /** Offset 0x00B6 - IIO PCIe Port 1B DeEmphasis
627 Desired DeEmphasis level for IIO PCIe Port 1B
628 0:6dB, 1:3.5dB
629 **/
630 UINT8 PcdIIoPciePort1BDeEmphasis;
631
632 /** Offset 0x00B7 - IIO PCIe Port 1C DeEmphasis
633 Desired DeEmphasis level for IIO PCIe Port 1C
634 0:6dB, 1:3.5dB
635 **/
636 UINT8 PcdIIoPciePort1CDeEmphasis;
637
638 /** Offset 0x00B8 - IIO PCIe Port 1D DeEmphasis
639 Desired DeEmphasis level for IIO PCIe Port 1D
640 0:6dB, 1:3.5dB
641 **/
642 UINT8 PcdIIoPciePort1DDeEmphasis;
643
644 /** Offset 0x00B9 - IIO PCIe R-Link Link Speed
645 Desired Link Speed for IIO PCIe R-Link
646 1:GEN1, 2:GEN2, 3:GEN3
647 **/
648 UINT8 PcdIIoPcieLinkSpeedRLink;
649
650 /** Offset 0x00BA - IIO PCIe Port 1A Link Speed
651 Desired Link Speed for IIO PCIe Port 1A
652 1:GEN1, 2:GEN2, 3:GEN3
653 **/
654 UINT8 PcdIIoPciePort1ALinkSpeed;
655
656 /** Offset 0x00BB - IIO PCIe Port 1B Link Speed
657 Desired Link Speed for IIO PCIe Port 1B
658 1:GEN1, 2:GEN2, 3:GEN3
659 **/
660 UINT8 PcdIIoPciePort1BLinkSpeed;
661
662 /** Offset 0x00BC - IIO PCIe Port 1C Link Speed
663 Desired Link Speed for IIO PCIe Port 1C
664 1:GEN1, 2:GEN2, 3:GEN3
665 **/
666 UINT8 PcdIIoPciePort1CLinkSpeed;
667
668 /** Offset 0x00BD - IIO PCIe Port 1D Link Speed
669 Desired Link Speed for IIO PCIe Port 1D
670 1:GEN1, 2:GEN2, 3:GEN3
671 **/
672 UINT8 PcdIIoPciePort1DLinkSpeed;
673
674 /** Offset 0x00BE - IIO PCIe R-Link Aspm
675 Desired Active state power management settings for IIO PCIe R-Link
676 0:Disabled,2:L1
677 **/
678 UINT8 PcdIIoPcieRLinkAspm;
679
680 /** Offset 0x00BF - IIO PCIe Port 1A Aspm
681 Desired Active state power management settings for IIO PCIe Port 1A
682 0:Disabled,2:L1
683 **/
684 UINT8 PcdIIoPciePort1AAspm;
685
686 /** Offset 0x00C0 - IIO PCIe Port 1B Aspm
687 Desired Active state power management settings for IIO PCIe Port 1B
688 0:Disabled,2:L1
689 **/
690 UINT8 PcdIIoPciePort1BAspm;
691
692 /** Offset 0x00C1 - IIO PCIe Port 1C Aspm
693 Desired Active state power management settings for IIO PCIe Port 1C
694 0:Disabled,2:L1
695 **/
696 UINT8 PcdIIoPciePort1CAspm;
697
698 /** Offset 0x00C2 - IIO PCIe Port 1D Aspm
699 Desired Active state power management settings for IIO PCIe Port 1D
700 0:Disabled,2:L1
701 **/
702 UINT8 PcdIIoPciePort1DAspm;
703
704 /** Offset 0x00C3 - PCH PCIe Controller 0 Bifurcation
705 Configure PCI Express controller 0 bifurcation.
706 0: Auto, 5:4x2, 6:1x4 2x2, 7:2x2 1x4, 8:2x4, 9:1x8
707 **/
708 UINT8 PcdBifurcationPcie0;
709
710 /** Offset 0x00C4 - PCH PCIe Controller 2 Bifurcation
711 Configure PCI Express controller 2 bifurcation.
712 0: Auto, 5:4x2, 6:1x4 2x2, 7:2x2 1x4, 8:2x4, 9:1x8
713 **/
714 UINT8 PcdBifurcationPcie2;
715
716 /** Offset 0x00C5
717 **/
718 UINT8 UnusedUpdSpace2[107];
719
720 /** Offset 0x0130 - Customer Revision
721 The Customer can set this revision string for their own purpose.
722 **/
723 UINT8 PcdCustomerRevision[32];
724
725 /** Offset 0x0150 - Memory Thermal Throttling
726 Enable/disable Memory Thermal Throttling
727 0:Disabled,2:Enabled
728 **/
729 UINT8 PcdMemoryThermalThrottling;
730
731 /** Offset 0x0151
732 **/
733 UINT8 UnusedUpdSpace3;
734
735 /** Offset 0x0152
736 **/
737 UINT8 PcdFiaMuxOverride;
738
739 /** Offset 0x0153
740 **/
741 UINT8 FiaMuxCfgInvalidate;
742
743 /** Offset 0x0154
744 **/
745 UINT8 UnusedUpdSpace4[3];
746
747 /** Offset 0x0157 - PCH Trace Hub Enable Mode
748 Select Host or Target for Trace Hub debugger tool. Refer to Integration guide.
749 0:Disable, 1:Target debugger, 2:Host debugger
750 **/
751 UINT8 PcdPchTraceHubMode;
752
753 /** Offset 0x0158 - PCH TH Mem Buffer Size 0
754 Select size of memory region 0 buffer. Refer to Integration guide.
755 0:None/OS, 1:1 MB, 2:8 MB, 3:64 MB, 4:128 MB, 5:256 MB, 6:512 MB
756 **/
757 UINT8 PcdPchTraceHubMemReg0Size;
758
759 /** Offset 0x0159 - PCH TH Mem Buffer Size 1
760 Select size of memory region 1 buffer. Refer to Integration guide
761 0:None/OS, 1:1 MB, 2:8 MB, 3:64 MB, 4:128 MB, 5:256 MB, 6:512 MB
762 **/
763 UINT8 PcdPchTraceHubMemReg1Size;
764
765 /** Offset 0x015A
766 **/
767 UINT8 UnusedUpdSpace5;
768
769 /** Offset 0x015B - IMR3 Enable
770 Enable/Disable IMR3 .Default is Disabled .Refer to Integration guide
771 $EN_DIS
772 **/
773 UINT8 PcdEnableIMR3;
774
775 /** Offset 0x015C - Processor X2APIC Enable
776 Enable / Disable Processor X2APIC. Refer to Integration guide
777 $EN_DIS
778 **/
779 UINT8 PcdProcessorX2Apic;
780
781 /** Offset 0x015D - Hyper Threading Enable/Disable
782 Enable or Disable Hyper Threading; 0: Disable; <b>1: Enable</b>
783 $EN_DIS
784 **/
785 UINT8 PcdHyperThreading;
786
787 /** Offset 0x015E - PCIe Hot Plug Enable
788 Enable / Disable PCIe Hot Plug.
789 $EN_DIS
790 **/
791 UINT8 PcdPcieHotPlugEnable;
792
793 /** Offset 0x015F - PCIe Acpi Hot Plug Enable
794 Enable / Disable PCIe Acpi Hot Plug.
795 $EN_DIS
796 **/
797 UINT8 PcdPcieAcpiHotPlugEnable;
798
799 /** Offset 0x0160
800 **/
801 UINT8 UnusedUpdSpace6;
802
803 /** Offset 0x0161 - IIO PCIe Port 1A Hot Plug Capable
804 Hot Plug Capable for IIO PCIe Port 1A
805 0:Disable, 1:Enable
806 **/
807 UINT8 PcdIIoPciePort1AHPCapable;
808
809 /** Offset 0x0162 - IIO PCIe Port 1B Hot Plug Capable
810 Hot Plug Capable for IIO PCIe Port 1B
811 0:Disable, 1:Enable
812 **/
813 UINT8 PcdIIoPciePort1BHPCapable;
814
815 /** Offset 0x0163 - IIO PCIe Port 1C Hot Plug Capable
816 Hot Plug Capable for IIO PCIe Port 1C
817 0:Disable, 1:Enable
818 **/
819 UINT8 PcdIIoPciePort1CHPCapable;
820
821 /** Offset 0x0164 - IIO PCIe Port 1D Hot Plug Capable
822 Hot Plug Capable for IIO PCIe Port 1D
823 0:Disable, 1:Enable
824 **/
825 UINT8 PcdIIoPciePort1DHPCapable;
826
827 /** Offset 0x0165
828 **/
829 UINT8 UnusedUpdSpace7;
830
831 /** Offset 0x0166 - IIO PCIe Port 1A Hot Plug Surprise
832 Enable / Disable Hot Plug Capable Surprise for IIO PCIe Port 1A
833 $EN_DIS
834 **/
835 UINT8 PcdIIoPciePort1AHPSurprise;
836
837 /** Offset 0x0167 - IIO PCIe Port 1B Hot Plug Surprise
838 Enable / Disable Hot Plug Capable Surprise for IIO PCIe Port 1B
839 $EN_DIS
840 **/
841 UINT8 PcdIIoPciePort1BHPSurprise;
842
843 /** Offset 0x0168 - IIO PCIe Port 1C Hot Plug Surprise
844 Enable / Disable Hot Plug Capable Surprise for IIO PCIe Port 1C
845 $EN_DIS
846 **/
847 UINT8 PcdIIoPciePort1CHPSurprise;
848
849 /** Offset 0x0169 - IIO PCIe Port 1D Hot Plug Surprise
850 Enable / Disable Hot Plug Capable Surprise for IIO PCIe Port 1D
851 $EN_DIS
852 **/
853 UINT8 PcdIIoPciePort1DHPSurprise;
854
855 /** Offset 0x016A
856 **/
857 UINT8 UnusedUpdSpace8[102];
858
859 /** Offset 0x01D0
860 **/
861 UINT32 PcdIioResConfigPtr;
862
863 /** Offset 0x01D4
864 **/
865 UINT32 PcdFiaLaneConfigPtr;
866
867 /** Offset 0x01D8
868 **/
869 UINT32 PcdKtiBufferPtr;
870
871 /** Offset 0x01DC
872 **/
873 UINT32 PcdMemSpdPtr;
874
875 /** Offset 0x01E0
876 **/
877 UINT8 ReservedMemoryInitUpd[16];
878 } FSP_M_CONFIG;
879
880 /** Fsp M UPD Configuration
881 **/
882 typedef struct {
883
884 /** Offset 0x0000
885 **/
886 FSP_UPD_HEADER FspUpdHeader;
887
888 /** Offset 0x0020
889 **/
890 FSPM_ARCH_UPD FspmArchUpd;
891
892 /** Offset 0x0040
893 **/
894 FSP_M_CONFIG FspmConfig;
895
896 /** Offset 0x01F0
897 **/
898 UINT8 UnusedUpdSpace9[14];
899
900 /** Offset 0x01FE
901 **/
902 UINT16 UpdTerminator;
903 } FSPM_UPD;
904
905 #pragma pack()
906
907 #endif