Debian Codegraph @

src/vendorcode/intel/fsp/fsp2_0/twinlake/FspProducerDataHeader.h

raw symbols SCIP
1 /** @file
2 Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
3 This program and the accompanying materials
4 are licensed and made available under the terms and conditions of the BSD License
5 which accompanies this distribution. The full text of the license may be found at
6 http://opensource.org/licenses/bsd-license.php
7 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
8 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
9 **/
10 #ifndef _FSP_PRODUCER_DATA_HEADER_H_
11 #define _FSP_PRODUCER_DATA_HEADER_H_
12
13 #include <Guid/FspHeaderFile.h>
14
15 #define BUILD_TIME_STAMP_SIZE 12
16
17 //
18 // FSP Header Data structure from FspHeader driver.
19 //
20 #pragma pack(1)
21 ///
22 /// FSP Producer Data Subtype - 1
23 ///
24 typedef struct {
25 ///
26 /// Byte 0x00: Length of this FSP producer data type record.
27 ///
28 UINT16 Length;
29 ///
30 /// Byte 0x02: FSP producer data type.
31 ///
32 UINT8 Type;
33 ///
34 /// Byte 0x03: Revision of this FSP producer data type.
35 ///
36 UINT8 Revision;
37 ///
38 /// Byte 0x04: 4 byte field of RC version which is used to build this FSP image.
39 ///
40 UINT32 RcVersion;
41 ///
42 /// Byte 0x08: Represents the build time stamp "YYYYMMDDHHMM".
43 ///
44 UINT8 BuildTimeStamp[BUILD_TIME_STAMP_SIZE];
45 } FSP_PRODUCER_DATA_TYPE1;
46
47 ///
48 /// FSP Producer Data Subtype - 2
49 ///
50 typedef struct {
51 ///
52 /// Byte 0x00: Length of this FSP producer data type record.
53 ///
54 UINT16 Length;
55 ///
56 /// Byte 0x02: FSP producer data type.
57 ///
58 UINT8 Type;
59 ///
60 /// Byte 0x03: Revision of this FSP producer data type.
61 ///
62 UINT8 Revision;
63 ///
64 /// Byte 0x04: 4 byte field of Mrc version which is used to build this FSP image.
65 ///
66 UINT8 MrcVersion [4];
67 } FSP_PRODUCER_DATA_TYPE2;
68
69 typedef struct {
70 FSP_INFO_HEADER FspInfoHeader;
71 FSP_INFO_EXTENDED_HEADER FspInfoExtendedHeader;
72 FSP_PRODUCER_DATA_TYPE1 FspProduceDataType1;
73 FSP_PRODUCER_DATA_TYPE2 FspProduceDataType2;
74 FSP_PATCH_TABLE FspPatchTable;
75 } FSP_PRODUCER_DATA_TABLES;
76 #pragma pack()
77
78 #endif // _FSP_PRODUCER_DATA_HEADER_H