8ac3199bab9147542a7545f326c10debb770e272
[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 } FSP_PLAT_DATA;
38
39 #define FSP_GLOBAL_DATA_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'D')
40 #define FSP_PERFORMANCE_DATA_SIGNATURE SIGNATURE_32 ('P', 'E', 'R', 'F')
41
42 typedef struct {
43 UINT32 Signature;
44 UINT8 Version;
45 UINT8 Reserved1[3];
46 UINT32 CoreStack;
47 UINT32 StatusCode;
48 UINT32 Reserved2[8];
49 FSP_PLAT_DATA PlatformData;
50 FSP_INFO_HEADER *FspInfoHeader;
51 VOID *UpdDataPtr;
52 VOID *TempRamInitUpdPtr;
53 VOID *MemoryInitUpdPtr;
54 VOID *SiliconInitUpdPtr;
55 UINT8 ApiIdx;
56 UINT8 Reserved3[31];
57 UINT32 PerfSig;
58 UINT16 PerfLen;
59 UINT16 Reserved4;
60 UINT32 PerfIdx;
61 UINT64 PerfData[32];
62 } FSP_GLOBAL_DATA;
63
64 #pragma pack()
65
66 #endif