]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/Include/FspGlobalData.h
IntelFsp2Pkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFsp2Pkg / Include / FspGlobalData.h
1 /** @file
2
3 Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
5
6 **/
7
8 #ifndef _FSP_GLOBAL_DATA_H_
9 #define _FSP_GLOBAL_DATA_H_
10
11 #include <FspEas.h>
12
13 #define FSP_IN_API_MODE 0
14 #define FSP_IN_DISPATCH_MODE 1
15
16 #pragma pack(1)
17
18 typedef enum {
19 TempRamInitApiIndex,
20 FspInitApiIndex,
21 NotifyPhaseApiIndex,
22 FspMemoryInitApiIndex,
23 TempRamExitApiIndex,
24 FspSiliconInitApiIndex,
25 FspApiIndexMax
26 } FSP_API_INDEX;
27
28 typedef struct {
29 VOID *DataPtr;
30 UINT32 MicrocodeRegionBase;
31 UINT32 MicrocodeRegionSize;
32 UINT32 CodeRegionBase;
33 UINT32 CodeRegionSize;
34 } FSP_PLAT_DATA;
35
36 #define FSP_GLOBAL_DATA_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'D')
37 #define FSP_PERFORMANCE_DATA_SIGNATURE SIGNATURE_32 ('P', 'E', 'R', 'F')
38 #define FSP_PERFORMANCE_DATA_TIMER_MASK 0xFFFFFFFFFFFFFF
39
40 typedef struct {
41 UINT32 Signature;
42 UINT8 Version;
43 UINT8 Reserved1[3];
44 UINT32 CoreStack;
45 UINT32 StatusCode;
46 UINT32 Reserved2[8];
47 FSP_PLAT_DATA PlatformData;
48 FSP_INFO_HEADER *FspInfoHeader;
49 VOID *UpdDataPtr;
50 VOID *TempRamInitUpdPtr;
51 VOID *MemoryInitUpdPtr;
52 VOID *SiliconInitUpdPtr;
53 UINT8 ApiIdx;
54 UINT8 FspMode; // 0: FSP in API mode; 1: FSP in DISPATCH mode
55 UINT8 Reserved3[30];
56 UINT32 PerfSig;
57 UINT16 PerfLen;
58 UINT16 Reserved4;
59 UINT32 PerfIdx;
60 UINT64 PerfData[32];
61 } FSP_GLOBAL_DATA;
62
63 #pragma pack()
64
65 #endif