]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/Include/FspGlobalData.h
Add IntelFsp2Pkg and IntelFsp2WrapperPkg.
[mirror_edk2.git] / IntelFsp2Pkg / Include / FspGlobalData.h
1 /** @file
2
3 Copyright (c) 2014 - 2016, 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 #pragma pack(1)
20
21 typedef enum {
22 TempRamInitApiIndex,
23 FspInitApiIndex,
24 NotifyPhaseApiIndex,
25 FspMemoryInitApiIndex,
26 TempRamExitApiIndex,
27 FspSiliconInitApiIndex,
28 FspApiIndexMax
29 } FSP_API_INDEX;
30
31 typedef struct {
32 VOID *DataPtr;
33 UINT32 MicrocodeRegionBase;
34 UINT32 MicrocodeRegionSize;
35 UINT32 CodeRegionBase;
36 UINT32 CodeRegionSize;
37 UINT32 CarBase;
38 UINT32 CarSize;
39 } FSP_PLAT_DATA;
40
41 #define FSP_GLOBAL_DATA_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'D')
42 #define FSP_PERFORMANCE_DATA_SIGNATURE SIGNATURE_32 ('P', 'E', 'R', 'F')
43
44 typedef struct {
45 UINT32 Signature;
46 UINT8 Version;
47 UINT8 Reserved1[3];
48 UINT32 CoreStack;
49 UINT32 StatusCode;
50 UINT32 Reserved2[8];
51 FSP_PLAT_DATA PlatformData;
52 FSP_INFO_HEADER *FspInfoHeader;
53 VOID *UpdDataPtr;
54 VOID *TempRamInitUpdPtr;
55 VOID *MemoryInitUpdPtr;
56 VOID *SiliconInitUpdPtr;
57 UINT8 ApiIdx;
58 UINT8 Reserved3[31];
59 UINT32 PerfSig;
60 UINT16 PerfLen;
61 UINT16 Reserved4;
62 UINT32 PerfIdx;
63 UINT64 PerfData[32];
64 } FSP_GLOBAL_DATA;
65
66 #pragma pack()
67
68 #endif