2014-07-24 08:52:43 +02:00
|
|
|
/** @file
|
|
|
|
Intel FSP Info Header definition from Intel Firmware Support Package External
|
2015-04-29 05:10:24 +02:00
|
|
|
Architecture Specification v1.1, April 2015, revision 001.
|
2014-07-24 08:52:43 +02:00
|
|
|
|
2015-02-11 03:57:40 +01:00
|
|
|
Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:04:08 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2014-07-24 08:52:43 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _FSP_INFO_HEADER_H_
|
|
|
|
#define _FSP_INFO_HEADER_H_
|
|
|
|
|
2015-02-11 03:57:40 +01:00
|
|
|
#define FSP_HEADER_REVISION_1 1
|
|
|
|
#define FSP_HEADER_REVISION_2 2
|
|
|
|
|
|
|
|
#define FSPE_HEADER_REVISION_1 1
|
|
|
|
#define FSPP_HEADER_REVISION_1 1
|
|
|
|
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
/// Fixed FSP header offset in the FSP image
|
|
|
|
///
|
|
|
|
#define FSP_INFO_HEADER_OFF 0x94
|
|
|
|
|
|
|
|
#define OFFSET_IN_FSP_INFO_HEADER(x) (UINT32)&((FSP_INFO_HEADER *)(UINTN)0)->x
|
|
|
|
|
2015-04-30 03:18:30 +02:00
|
|
|
#define FSP_INFO_HEADER_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'H')
|
|
|
|
|
2014-07-24 08:52:43 +02:00
|
|
|
#pragma pack(1)
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x00: Signature ('FSPH') for the FSP Information Header
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 Signature;
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x04: Length of the FSP Information Header
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 HeaderLength;
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x08: Reserved
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT8 Reserved1[3];
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x0B: Revision of the FSP Information Header
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT8 HeaderRevision;
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x0C: Revision of the FSP binary
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 ImageRevision;
|
|
|
|
|
|
|
|
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x10: Signature string that will help match the FSP Binary to a supported
|
2014-07-24 08:52:43 +02:00
|
|
|
/// hardware configuration.
|
|
|
|
///
|
|
|
|
CHAR8 ImageId[8];
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x18: Size of the entire FSP binary
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 ImageSize;
|
|
|
|
///
|
2015-04-23 10:52:21 +02:00
|
|
|
/// Byte 0x1C: FSP binary preferred base address
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 ImageBase;
|
|
|
|
|
|
|
|
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x20: Attribute for the FSP binary
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 ImageAttribute;
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x24: Offset of the FSP configuration region
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 CfgRegionOffset;
|
|
|
|
///
|
2015-04-23 10:52:21 +02:00
|
|
|
/// Byte 0x28: Size of the FSP configuration region
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 CfgRegionSize;
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x2C: Number of API entries this FSP supports
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 ApiEntryNum;
|
|
|
|
|
|
|
|
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x30: The offset for the API to setup a temporary stack till the memory
|
|
|
|
/// is initialized.
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 TempRamInitEntryOffset;
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x34: The offset for the API to initialize the CPU and the chipset (SOC)
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 FspInitEntryOffset;
|
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
/// Byte 0x38: The offset for the API to inform the FSP about the different stages
|
|
|
|
/// in the boot process
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
|
|
|
UINT32 NotifyPhaseEntryOffset;
|
2015-02-11 03:57:40 +01:00
|
|
|
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
2015-04-23 10:52:21 +02:00
|
|
|
/// Below fields are added in FSP Revision 2
|
2014-07-24 08:52:43 +02:00
|
|
|
///
|
2015-02-11 03:57:40 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
/// Byte 0x3C: The offset for the API to initialize the memory
|
|
|
|
///
|
|
|
|
UINT32 FspMemoryInitEntryOffset;
|
|
|
|
///
|
|
|
|
/// Byte 0x40: The offset for the API to tear down temporary RAM
|
|
|
|
///
|
|
|
|
UINT32 TempRamExitEntryOffset;
|
|
|
|
///
|
|
|
|
/// Byte 0x44: The offset for the API to initialize the CPU and chipset
|
|
|
|
///
|
|
|
|
UINT32 FspSiliconInitEntryOffset;
|
2014-07-24 08:52:43 +02:00
|
|
|
|
|
|
|
} FSP_INFO_HEADER;
|
|
|
|
|
2015-02-11 03:57:40 +01:00
|
|
|
///
|
2015-04-23 10:52:21 +02:00
|
|
|
/// Below structure is added in FSP version 2
|
2015-02-11 03:57:40 +01:00
|
|
|
///
|
2015-04-30 03:18:30 +02:00
|
|
|
#define FSP_INFO_EXTENDED_HEADER_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'E')
|
|
|
|
|
2015-02-11 03:57:40 +01:00
|
|
|
typedef struct {
|
|
|
|
///
|
|
|
|
/// Byte 0x00: Signature ('FSPE') for the FSP Extended Information Header
|
|
|
|
///
|
|
|
|
UINT32 Signature;
|
|
|
|
///
|
2015-04-25 14:15:44 +02:00
|
|
|
/// Byte 0x04: Length of the table in bytes, including all additional FSP producer defined data.
|
2015-02-11 03:57:40 +01:00
|
|
|
///
|
2015-04-25 14:15:44 +02:00
|
|
|
UINT32 Length;
|
2015-02-11 03:57:40 +01:00
|
|
|
///
|
2015-04-25 14:15:44 +02:00
|
|
|
/// Byte 0x08: FSP producer defined revision of the table.
|
2015-02-11 03:57:40 +01:00
|
|
|
///
|
|
|
|
UINT8 Revision;
|
|
|
|
///
|
|
|
|
/// Byte 0x09: Reserved for future use.
|
|
|
|
///
|
|
|
|
UINT8 Reserved;
|
|
|
|
///
|
2015-04-25 14:15:44 +02:00
|
|
|
/// Byte 0x0A: FSP producer identification string
|
|
|
|
///
|
|
|
|
CHAR8 FspProducerId[6];
|
|
|
|
///
|
|
|
|
/// Byte 0x10: FSP producer implementation revision number. Larger numbers are assumed to be newer revisions.
|
|
|
|
///
|
|
|
|
UINT32 FspProducerRevision;
|
|
|
|
///
|
|
|
|
/// Byte 0x14: Size of the FSP producer defined data (n) in bytes.
|
2015-02-11 03:57:40 +01:00
|
|
|
///
|
2015-04-25 14:15:44 +02:00
|
|
|
UINT32 FspProducerDataSize;
|
2015-02-11 03:57:40 +01:00
|
|
|
///
|
2015-04-25 14:15:44 +02:00
|
|
|
/// Byte 0x18: FSP producer defined data of size (n) defined by FspProducerDataSize.
|
2015-02-11 03:57:40 +01:00
|
|
|
///
|
|
|
|
|
2015-04-27 15:27:30 +02:00
|
|
|
} FSP_INFO_EXTENDED_HEADER;
|
2015-02-11 03:57:40 +01:00
|
|
|
|
2015-04-30 03:57:25 +02:00
|
|
|
//
|
|
|
|
// A generic table search algorithm for additional tables can be implemented with a
|
|
|
|
// signature search algorithm until a terminator signature 'FSPP' is found.
|
|
|
|
//
|
|
|
|
#define FSP_FSPP_SIGNATURE SIGNATURE_32 ('F', 'S', 'P', 'P')
|
|
|
|
|
2014-07-24 08:52:43 +02:00
|
|
|
#pragma pack()
|
|
|
|
|
|
|
|
#endif
|