]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/Include/FspGlobalData.h
2a03129f4a19851cb80937ae2de819ba0d7f15e2
[mirror_edk2.git] / IntelFsp2Pkg / Include / FspGlobalData.h
1 /** @file
2
3 Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php.
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 **/
13
14 #ifndef _FSP_GLOBAL_DATA_H_
15 #define _FSP_GLOBAL_DATA_H_
16
17 #include <FspEas.h>
18
19 #define FSP_IN_API_MODE 0
20 #define FSP_IN_DISPATCH_MODE 1
21
22 #pragma pack(1)
23
24 typedef enum {
25 TempRamInitApiIndex,
26 FspInitApiIndex,
27 NotifyPhaseApiIndex,
28 FspMemoryInitApiIndex,
29 TempRamExitApiIndex,
30 FspSiliconInitApiIndex,
31 FspApiIndexMax
32 } FSP_API_INDEX;
33
34 typedef struct {
35 VOID *DataPtr;
36 UINT32 MicrocodeRegionBase;
37 UINT32 MicrocodeRegionSize;
38 UINT32 CodeRegionBase;
39 UINT32 CodeRegionSize;
40 } FSP_PLAT_DATA;
41
42 #define FSP_GLOBAL_DATA_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'D')
43 #define FSP_PERFORMANCE_DATA_SIGNATURE SIGNATURE_32 ('P', 'E', 'R', 'F')
44 #define FSP_PERFORMANCE_DATA_TIMER_MASK 0xFFFFFFFFFFFFFF
45
46 typedef struct {
47 UINT32 Signature;
48 UINT8 Version;
49 UINT8 Reserved1[3];
50 UINT32 CoreStack;
51 UINT32 StatusCode;
52 UINT32 Reserved2[8];
53 FSP_PLAT_DATA PlatformData;
54 FSP_INFO_HEADER *FspInfoHeader;
55 VOID *UpdDataPtr;
56 VOID *TempRamInitUpdPtr;
57 VOID *MemoryInitUpdPtr;
58 VOID *SiliconInitUpdPtr;
59 UINT8 ApiIdx;
60 UINT8 FspMode; // 0: FSP in API mode; 1: FSP in DISPATCH mode
61 UINT8 Reserved3[30];
62 UINT32 PerfSig;
63 UINT16 PerfLen;
64 UINT16 Reserved4;
65 UINT32 PerfIdx;
66 UINT64 PerfData[32];
67 } FSP_GLOBAL_DATA;
68
69 #pragma pack()
70
71 #endif