TianoCore EDK2 master
Loading...
Searching...
No Matches
FspHeaderFile.h
Go to the documentation of this file.
1
10#include <Base.h>
11
12#ifndef __FSP_HEADER_FILE_H__
13#define __FSP_HEADER_FILE_H__
14
15#define FSP_HEADER_REVISION_3 3
16
17#define FSPE_HEADER_REVISION_1 1
18#define FSPP_HEADER_REVISION_1 1
19
23#define FSP_INFO_HEADER_OFF 0x94
24
25#define OFFSET_IN_FSP_INFO_HEADER(x) (UINT32)&((FSP_INFO_HEADER *)(UINTN)0)->x
26
27#define FSP_INFO_HEADER_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'H')
28
29#define IMAGE_ATTRIBUTE_GRAPHICS_SUPPORT BIT0
30#define IMAGE_ATTRIBUTE_DISPATCH_MODE_SUPPORT BIT1
31#define IMAGE_ATTRIBUTE_64BIT_MODE_SUPPORT BIT2
32#define FSP_IA32 0
33#define FSP_X64 1
34
35 #pragma pack(1)
36
40typedef struct {
44 UINT32 Signature;
52 UINT8 Reserved1[2];
82 CHAR8 ImageId[8];
86 UINT32 ImageSize;
90 UINT32 ImageBase;
131 UINT32 Reserved2;
139 UINT32 Reserved3;
178 UINT16 Reserved4;
188
192#define FSP_INFO_EXTENDED_HEADER_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'E')
193
197typedef struct {
201 UINT32 Signature;
205 UINT32 Length;
209 UINT8 Revision;
213 UINT8 Reserved;
217 CHAR8 FspProducerId[6];
230
231//
232// A generic table search algorithm for additional tables can be implemented with a
233// signature search algorithm until a terminator signature 'FSPP' is found.
234//
235#define FSP_FSPP_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'P')
236#define FSP_PATCH_TABLE_SIGNATURE FSP_FSPP_SIGNATURE
237
241typedef struct {
245 UINT32 Signature;
257 UINT8 Reserved;
265 // UINT32 PatchData[];
267
268 #pragma pack()
269
270extern EFI_GUID gFspHeaderFileGuid;
271
272#endif
UINT16 ComponentAttribute
UINT16 ExtendedImageRevision
UINT32 FspSmmInitEntryOffset
UINT32 FspSiliconInitEntryOffset
UINT32 NotifyPhaseEntryOffset
UINT32 FspMemoryInitEntryOffset
UINT32 CfgRegionOffset
UINT32 TempRamInitEntryOffset
UINT32 FspMultiPhaseSiInitEntryOffset
UINT32 ImageRevision
Definition: FspHeaderFile.h:78
UINT32 FspMultiPhaseMemInitEntryOffset
UINT32 TempRamExitEntryOffset
UINT16 ImageAttribute
Definition: FspHeaderFile.h:99
Definition: Base.h:213