]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecRamInitData.c
2d1368c3edcd3c34840bc62650121f8ba2bea3c2
[mirror_edk2.git] / IntelFsp2WrapperPkg / Library / SecFspWrapperPlatformSecLibSample / SecRamInitData.c
1 /** @file
2 Sample to provide TempRamInitParams data.
3
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #include <Library/PcdLib.h>
10 #include <FspEas.h>
11
12 typedef struct {
13 UINT32 MicrocodeRegionBase;
14 UINT32 MicrocodeRegionSize;
15 UINT32 CodeRegionBase;
16 UINT32 CodeRegionSize;
17 } FSPT_CORE_UPD;
18
19 typedef struct {
20 FSP_UPD_HEADER FspUpdHeader;
21 FSPT_CORE_UPD FsptCoreUpd;
22 } FSPT_UPD_CORE_DATA;
23
24 GLOBAL_REMOVE_IF_UNREFERENCED CONST FSPT_UPD_CORE_DATA FsptUpdDataPtr = {
25 {
26 0x4450555F54505346,
27 0x00,
28 { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
29 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
30 }
31 },
32 {
33 ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchAddress) + FixedPcdGet32 (PcdFlashMicrocodeOffset)),
34 ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchRegionSize) - FixedPcdGet32 (PcdFlashMicrocodeOffset)),
35 FixedPcdGet32 (PcdFlashCodeCacheAddress),
36 FixedPcdGet32 (PcdFlashCodeCacheSize),
37 }
38 };
39