xref: /linux/drivers/scsi/mpt3sas/mpi/mpi2_image.h (revision 06d07429858317ded2db7986113a9e0129cd599b)
1ff92b9ddSSuganath Prabu /* SPDX-License-Identifier: GPL-2.0 */
2ff92b9ddSSuganath Prabu /*
3ff92b9ddSSuganath Prabu  * Copyright 2016-2020 Broadcom Limited. All rights reserved.
4ff92b9ddSSuganath Prabu  *
5ff92b9ddSSuganath Prabu  *          Name: mpi2_image.h
6ff92b9ddSSuganath Prabu  * Description: Contains definitions for firmware and other component images
7ff92b9ddSSuganath Prabu  * Creation Date: 04/02/2018
8635ee6c7SSuganath Prabu  *       Version: 02.06.04
9ff92b9ddSSuganath Prabu  *
10ff92b9ddSSuganath Prabu  *
11ff92b9ddSSuganath Prabu  * Version History
12ff92b9ddSSuganath Prabu  * ---------------
13ff92b9ddSSuganath Prabu  *
14ff92b9ddSSuganath Prabu  * Date      Version   Description
15ff92b9ddSSuganath Prabu  * --------  --------  ------------------------------------------------------
16ff92b9ddSSuganath Prabu  * 08-01-18  02.06.00  Initial version for MPI 2.6.5.
17ff92b9ddSSuganath Prabu  * 08-14-18  02.06.01  Corrected define for MPI26_IMAGE_HEADER_SIGNATURE0_MPI26
18ff92b9ddSSuganath Prabu  * 08-28-18  02.06.02  Added MPI2_EXT_IMAGE_TYPE_RDE
19ff92b9ddSSuganath Prabu  * 09-07-18  02.06.03  Added MPI26_EVENT_PCIE_TOPO_PI_16_LANES
20635ee6c7SSuganath Prabu  * 12-17-18  02.06.04  Addd MPI2_EXT_IMAGE_TYPE_PBLP
21635ee6c7SSuganath Prabu  *			Shorten some defines to be compatible with DOS
221ade26b6SSreekanth Reddy  * 06-24-19  02.06.05  Whitespace adjustments to help with identifier
231ade26b6SSreekanth Reddy  *			checking tool.
241ade26b6SSreekanth Reddy  * 10-02-19  02.06.06  Added MPI26_IMAGE_HEADER_SIG1_COREDUMP
251ade26b6SSreekanth Reddy  *                     Added MPI2_FLASH_REGION_COREDUMP
26ff92b9ddSSuganath Prabu  */
27ff92b9ddSSuganath Prabu #ifndef MPI2_IMAGE_H
28ff92b9ddSSuganath Prabu #define MPI2_IMAGE_H
29ff92b9ddSSuganath Prabu 
30ff92b9ddSSuganath Prabu 
31ff92b9ddSSuganath Prabu /*FW Image Header */
32ff92b9ddSSuganath Prabu typedef struct _MPI2_FW_IMAGE_HEADER {
33ff92b9ddSSuganath Prabu 	U32 Signature;		/*0x00 */
34ff92b9ddSSuganath Prabu 	U32 Signature0;		/*0x04 */
35ff92b9ddSSuganath Prabu 	U32 Signature1;		/*0x08 */
36ff92b9ddSSuganath Prabu 	U32 Signature2;		/*0x0C */
37ff92b9ddSSuganath Prabu 	MPI2_VERSION_UNION MPIVersion;	/*0x10 */
38ff92b9ddSSuganath Prabu 	MPI2_VERSION_UNION FWVersion;	/*0x14 */
39ff92b9ddSSuganath Prabu 	MPI2_VERSION_UNION NVDATAVersion;	/*0x18 */
40ff92b9ddSSuganath Prabu 	MPI2_VERSION_UNION PackageVersion;	/*0x1C */
41ff92b9ddSSuganath Prabu 	U16 VendorID;		/*0x20 */
42ff92b9ddSSuganath Prabu 	U16 ProductID;		/*0x22 */
43ff92b9ddSSuganath Prabu 	U16 ProtocolFlags;	/*0x24 */
44ff92b9ddSSuganath Prabu 	U16 Reserved26;		/*0x26 */
45ff92b9ddSSuganath Prabu 	U32 IOCCapabilities;	/*0x28 */
46ff92b9ddSSuganath Prabu 	U32 ImageSize;		/*0x2C */
47ff92b9ddSSuganath Prabu 	U32 NextImageHeaderOffset;	/*0x30 */
48ff92b9ddSSuganath Prabu 	U32 Checksum;		/*0x34 */
49ff92b9ddSSuganath Prabu 	U32 Reserved38;		/*0x38 */
50ff92b9ddSSuganath Prabu 	U32 Reserved3C;		/*0x3C */
51ff92b9ddSSuganath Prabu 	U32 Reserved40;		/*0x40 */
52ff92b9ddSSuganath Prabu 	U32 Reserved44;		/*0x44 */
53ff92b9ddSSuganath Prabu 	U32 Reserved48;		/*0x48 */
54ff92b9ddSSuganath Prabu 	U32 Reserved4C;		/*0x4C */
55ff92b9ddSSuganath Prabu 	U32 Reserved50;		/*0x50 */
56ff92b9ddSSuganath Prabu 	U32 Reserved54;		/*0x54 */
57ff92b9ddSSuganath Prabu 	U32 Reserved58;		/*0x58 */
58ff92b9ddSSuganath Prabu 	U32 Reserved5C;		/*0x5C */
59ff92b9ddSSuganath Prabu 	U32 BootFlags;		/*0x60 */
60ff92b9ddSSuganath Prabu 	U32 FirmwareVersionNameWhat;	/*0x64 */
61ff92b9ddSSuganath Prabu 	U8 FirmwareVersionName[32];	/*0x68 */
62ff92b9ddSSuganath Prabu 	U32 VendorNameWhat;	/*0x88 */
63ff92b9ddSSuganath Prabu 	U8 VendorName[32];	/*0x8C */
64ff92b9ddSSuganath Prabu 	U32 PackageNameWhat;	/*0x88 */
65ff92b9ddSSuganath Prabu 	U8 PackageName[32];	/*0x8C */
66ff92b9ddSSuganath Prabu 	U32 ReservedD0;		/*0xD0 */
67ff92b9ddSSuganath Prabu 	U32 ReservedD4;		/*0xD4 */
68ff92b9ddSSuganath Prabu 	U32 ReservedD8;		/*0xD8 */
69ff92b9ddSSuganath Prabu 	U32 ReservedDC;		/*0xDC */
70ff92b9ddSSuganath Prabu 	U32 ReservedE0;		/*0xE0 */
71ff92b9ddSSuganath Prabu 	U32 ReservedE4;		/*0xE4 */
72ff92b9ddSSuganath Prabu 	U32 ReservedE8;		/*0xE8 */
73ff92b9ddSSuganath Prabu 	U32 ReservedEC;		/*0xEC */
74ff92b9ddSSuganath Prabu 	U32 ReservedF0;		/*0xF0 */
75ff92b9ddSSuganath Prabu 	U32 ReservedF4;		/*0xF4 */
76ff92b9ddSSuganath Prabu 	U32 ReservedF8;		/*0xF8 */
77ff92b9ddSSuganath Prabu 	U32 ReservedFC;		/*0xFC */
78ff92b9ddSSuganath Prabu } MPI2_FW_IMAGE_HEADER, *PTR_MPI2_FW_IMAGE_HEADER,
79ff92b9ddSSuganath Prabu 	Mpi2FWImageHeader_t, *pMpi2FWImageHeader_t;
80ff92b9ddSSuganath Prabu 
81ff92b9ddSSuganath Prabu /*Signature field */
82ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE_OFFSET         (0x00)
83ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE_MASK           (0xFF000000)
84ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE                (0xEA000000)
85ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE               (0xEB000000)
86ff92b9ddSSuganath Prabu 
87ff92b9ddSSuganath Prabu /*Signature0 field */
88ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE0_OFFSET        (0x04)
89ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE0               (0x5AFAA55A)
90ff92b9ddSSuganath Prabu /*Last byte is defined by architecture */
91ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE0_BASE         (0x5AEAA500)
92ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE0_ARC_0        (0x5A)
93ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE0_ARC_1        (0x00)
94ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE0_ARC_2        (0x01)
95ff92b9ddSSuganath Prabu /*legacy (0x5AEAA55A) */
96ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE0_ARC_3        (0x02)
97ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE0 \
98ff92b9ddSSuganath Prabu 	(MPI26_FW_HEADER_SIGNATURE0_BASE+MPI26_FW_HEADER_SIGNATURE0_ARC_0)
99ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE0_3516 \
100ff92b9ddSSuganath Prabu 	(MPI26_FW_HEADER_SIGNATURE0_BASE+MPI26_FW_HEADER_SIGNATURE0_ARC_1)
101ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE0_4008 \
102ff92b9ddSSuganath Prabu 	(MPI26_FW_HEADER_SIGNATURE0_BASE+MPI26_FW_HEADER_SIGNATURE0_ARC_3)
103ff92b9ddSSuganath Prabu 
104ff92b9ddSSuganath Prabu /*Signature1 field */
105ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE1_OFFSET        (0x08)
106ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE1               (0xA55AFAA5)
107ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE1              (0xA55AEAA5)
108ff92b9ddSSuganath Prabu 
109ff92b9ddSSuganath Prabu /*Signature2 field */
110ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE2_OFFSET        (0x0C)
111ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIGNATURE2               (0x5AA55AFA)
112ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_SIGNATURE2              (0x5AA55AEA)
113ff92b9ddSSuganath Prabu 
114ff92b9ddSSuganath Prabu /*defines for using the ProductID field */
115ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_TYPE_MASK            (0xF000)
116ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_TYPE_SAS             (0x2000)
117ff92b9ddSSuganath Prabu 
118ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_PROD_MASK                    (0x0F00)
119ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_PROD_A                       (0x0000)
120ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_PROD_TARGET_INITIATOR_SCSI   (0x0200)
121ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_PROD_IR_SCSI                 (0x0700)
122ff92b9ddSSuganath Prabu 
123ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_FAMILY_MASK          (0x00FF)
124ff92b9ddSSuganath Prabu /*SAS ProductID Family bits */
125ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_FAMILY_2108_SAS      (0x0013)
126ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_PID_FAMILY_2208_SAS      (0x0014)
127ff92b9ddSSuganath Prabu #define MPI25_FW_HEADER_PID_FAMILY_3108_SAS     (0x0021)
128ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_PID_FAMILY_3324_SAS     (0x0028)
129ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_PID_FAMILY_3516_SAS     (0x0031)
130ff92b9ddSSuganath Prabu 
131ff92b9ddSSuganath Prabu /*use MPI2_IOCFACTS_PROTOCOL_ defines for ProtocolFlags field */
132ff92b9ddSSuganath Prabu 
133ff92b9ddSSuganath Prabu /*use MPI2_IOCFACTS_CAPABILITY_ defines for IOCCapabilities field */
134ff92b9ddSSuganath Prabu 
135ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_IMAGESIZE_OFFSET         (0x2C)
136ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_NEXTIMAGE_OFFSET         (0x30)
137ff92b9ddSSuganath Prabu 
138ff92b9ddSSuganath Prabu #define MPI26_FW_HEADER_BOOTFLAGS_OFFSET          (0x60)
139ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_BOOTFLAGS_ISSI32M_FLAG     (0x00000001)
140ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_BOOTFLAGS_W25Q256JW_FLAG   (0x00000002)
141ff92b9ddSSuganath Prabu /*This image has a auto-discovery version of SPI */
142ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_BOOTFLAGS_AUTO_SPI_FLAG    (0x00000004)
143ff92b9ddSSuganath Prabu 
144ff92b9ddSSuganath Prabu 
145ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_VERNMHWAT_OFFSET         (0x64)
146ff92b9ddSSuganath Prabu 
147ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_WHAT_SIGNATURE           (0x29232840)
148ff92b9ddSSuganath Prabu 
149ff92b9ddSSuganath Prabu #define MPI2_FW_HEADER_SIZE                     (0x100)
150ff92b9ddSSuganath Prabu 
151ff92b9ddSSuganath Prabu 
152ff92b9ddSSuganath Prabu /****************************************************************************
153ff92b9ddSSuganath Prabu  *              Component Image Format and related defines                  *
154ff92b9ddSSuganath Prabu  ****************************************************************************/
155ff92b9ddSSuganath Prabu 
156ff92b9ddSSuganath Prabu /*Maximum number of Hash Exclusion entries in a Component Image Header */
157ff92b9ddSSuganath Prabu #define MPI26_COMP_IMG_HDR_NUM_HASH_EXCL        (4)
158ff92b9ddSSuganath Prabu 
159ff92b9ddSSuganath Prabu /*Hash Exclusion Format */
160ff92b9ddSSuganath Prabu typedef struct _MPI26_HASH_EXCLUSION_FORMAT {
161ff92b9ddSSuganath Prabu 	U32 Offset;        /*0x00 */
162ff92b9ddSSuganath Prabu 	U32 Size;          /*0x04 */
163ff92b9ddSSuganath Prabu } MPI26_HASH_EXCLUSION_FORMAT,
164ff92b9ddSSuganath Prabu 	*PTR_MPI26_HASH_EXCLUSION_FORMAT,
165ff92b9ddSSuganath Prabu 	Mpi26HashSxclusionFormat_t,
166ff92b9ddSSuganath Prabu 	*pMpi26HashExclusionFormat_t;
167ff92b9ddSSuganath Prabu 
168ff92b9ddSSuganath Prabu /*FW Image Header */
169ff92b9ddSSuganath Prabu typedef struct _MPI26_COMPONENT_IMAGE_HEADER {
170ff92b9ddSSuganath Prabu 	U32 Signature0;					/*0x00 */
171ff92b9ddSSuganath Prabu 	U32 LoadAddress;				/*0x04 */
172ff92b9ddSSuganath Prabu 	U32 DataSize;					/*0x08 */
173ff92b9ddSSuganath Prabu 	U32 StartAddress;				/*0x0C */
174ff92b9ddSSuganath Prabu 	U32 Signature1;					/*0x10 */
175ff92b9ddSSuganath Prabu 	U32 FlashOffset;				/*0x14 */
176ff92b9ddSSuganath Prabu 	U32 FlashSize;					/*0x18 */
177ff92b9ddSSuganath Prabu 	U32 VersionStringOffset;			/*0x1C */
178ff92b9ddSSuganath Prabu 	U32 BuildDateStringOffset;			/*0x20 */
179ff92b9ddSSuganath Prabu 	U32 BuildTimeStringOffset;			/*0x24 */
180ff92b9ddSSuganath Prabu 	U32 EnvironmentVariableOffset;			/*0x28 */
181ff92b9ddSSuganath Prabu 	U32 ApplicationSpecific;			/*0x2C */
182ff92b9ddSSuganath Prabu 	U32 Signature2;					/*0x30 */
183ff92b9ddSSuganath Prabu 	U32 HeaderSize;					/*0x34 */
184ff92b9ddSSuganath Prabu 	U32 Crc;					/*0x38 */
185ff92b9ddSSuganath Prabu 	U8 NotFlashImage;				/*0x3C */
186ff92b9ddSSuganath Prabu 	U8 Compressed;					/*0x3D */
187ff92b9ddSSuganath Prabu 	U16 Reserved3E;					/*0x3E */
188ff92b9ddSSuganath Prabu 	U32 SecondaryFlashOffset;			/*0x40 */
189ff92b9ddSSuganath Prabu 	U32 Reserved44;					/*0x44 */
190ff92b9ddSSuganath Prabu 	U32 Reserved48;					/*0x48 */
191ff92b9ddSSuganath Prabu 	MPI2_VERSION_UNION RMCInterfaceVersion;		/*0x4C */
192ff92b9ddSSuganath Prabu 	MPI2_VERSION_UNION Reserved50;			/*0x50 */
193ff92b9ddSSuganath Prabu 	MPI2_VERSION_UNION FWVersion;			/*0x54 */
194ff92b9ddSSuganath Prabu 	MPI2_VERSION_UNION NvdataVersion;		/*0x58 */
195ff92b9ddSSuganath Prabu 	MPI26_HASH_EXCLUSION_FORMAT
196ff92b9ddSSuganath Prabu 	HashExclusion[MPI26_COMP_IMG_HDR_NUM_HASH_EXCL];/*0x5C */
197ff92b9ddSSuganath Prabu 	U32 NextImageHeaderOffset;			/*0x7C */
198ff92b9ddSSuganath Prabu 	U32 Reserved80[32];				/*0x80 -- 0xFC */
199ff92b9ddSSuganath Prabu } MPI26_COMPONENT_IMAGE_HEADER,
200ff92b9ddSSuganath Prabu 	*PTR_MPI26_COMPONENT_IMAGE_HEADER,
201ff92b9ddSSuganath Prabu 	Mpi26ComponentImageHeader_t,
202ff92b9ddSSuganath Prabu 	*pMpi26ComponentImageHeader_t;
203ff92b9ddSSuganath Prabu 
204ff92b9ddSSuganath Prabu 
205ff92b9ddSSuganath Prabu /**** Definitions for Signature0 field ****/
206ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_SIGNATURE0_MPI26                     (0xEB000042)
207ff92b9ddSSuganath Prabu 
208ff92b9ddSSuganath Prabu /**** Definitions for Signature1 field ****/
209635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_APPLICATION              (0x20505041)
210635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_CBB                      (0x20424243)
211635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_MFG                      (0x2047464D)
212635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_BIOS                     (0x534F4942)
213635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_HIIM                     (0x4D494948)
214635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_HIIA                     (0x41494948)
215635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_CPLD                     (0x444C5043)
216635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_SPD                      (0x20445053)
217635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_NVDATA                   (0x5444564E)
218635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_GAS_GAUGE                (0x20534147)
219635ee6c7SSuganath Prabu #define MPI26_IMAGE_HEADER_SIG1_PBLP                     (0x504C4250)
2201ade26b6SSreekanth Reddy /* little-endian "DUMP" */
2211ade26b6SSreekanth Reddy #define MPI26_IMAGE_HEADER_SIG1_COREDUMP                 (0x504D5544)
222ff92b9ddSSuganath Prabu 
223ff92b9ddSSuganath Prabu /**** Definitions for Signature2 field ****/
224ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_SIGNATURE2_VALUE                    (0x50584546)
225ff92b9ddSSuganath Prabu 
226ff92b9ddSSuganath Prabu /**** Offsets for Image Header Fields ****/
227ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_SIGNATURE0_OFFSET                   (0x00)
228ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_LOAD_ADDRESS_OFFSET                 (0x04)
229ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_DATA_SIZE_OFFSET                    (0x08)
230ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_START_ADDRESS_OFFSET                (0x0C)
231ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_SIGNATURE1_OFFSET                   (0x10)
232ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_FLASH_OFFSET_OFFSET                 (0x14)
233ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_FLASH_SIZE_OFFSET                   (0x18)
234ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_VERSION_STRING_OFFSET_OFFSET        (0x1C)
235ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_BUILD_DATE_STRING_OFFSET_OFFSET     (0x20)
236ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_BUILD_TIME_OFFSET_OFFSET            (0x24)
237ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_ENVIROMENT_VAR_OFFSET_OFFSET        (0x28)
238ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_APPLICATION_SPECIFIC_OFFSET         (0x2C)
239ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_SIGNATURE2_OFFSET                   (0x30)
240ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_HEADER_SIZE_OFFSET                  (0x34)
241ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_CRC_OFFSET                          (0x38)
242ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_NOT_FLASH_IMAGE_OFFSET              (0x3C)
243ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_COMPRESSED_OFFSET                   (0x3D)
244ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_SECONDARY_FLASH_OFFSET_OFFSET       (0x40)
245ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_RMC_INTERFACE_VER_OFFSET            (0x4C)
246ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_COMPONENT_IMAGE_VER_OFFSET          (0x54)
247ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_HASH_EXCLUSION_OFFSET               (0x5C)
248ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_NEXT_IMAGE_HEADER_OFFSET_OFFSET     (0x7C)
249ff92b9ddSSuganath Prabu 
250ff92b9ddSSuganath Prabu 
251ff92b9ddSSuganath Prabu #define MPI26_IMAGE_HEADER_SIZE                                (0x100)
252ff92b9ddSSuganath Prabu 
253ff92b9ddSSuganath Prabu 
254ff92b9ddSSuganath Prabu /*Extended Image Header */
255ff92b9ddSSuganath Prabu typedef struct _MPI2_EXT_IMAGE_HEADER {
256ff92b9ddSSuganath Prabu 	U8 ImageType;		/*0x00 */
257ff92b9ddSSuganath Prabu 	U8 Reserved1;		/*0x01 */
258ff92b9ddSSuganath Prabu 	U16 Reserved2;		/*0x02 */
259ff92b9ddSSuganath Prabu 	U32 Checksum;		/*0x04 */
260ff92b9ddSSuganath Prabu 	U32 ImageSize;		/*0x08 */
261ff92b9ddSSuganath Prabu 	U32 NextImageHeaderOffset;	/*0x0C */
262ff92b9ddSSuganath Prabu 	U32 PackageVersion;	/*0x10 */
263ff92b9ddSSuganath Prabu 	U32 Reserved3;		/*0x14 */
264ff92b9ddSSuganath Prabu 	U32 Reserved4;		/*0x18 */
265ff92b9ddSSuganath Prabu 	U32 Reserved5;		/*0x1C */
266ff92b9ddSSuganath Prabu 	U8 IdentifyString[32];	/*0x20 */
267ff92b9ddSSuganath Prabu } MPI2_EXT_IMAGE_HEADER, *PTR_MPI2_EXT_IMAGE_HEADER,
268ff92b9ddSSuganath Prabu 	Mpi2ExtImageHeader_t, *pMpi2ExtImageHeader_t;
269ff92b9ddSSuganath Prabu 
270ff92b9ddSSuganath Prabu /*useful offsets */
271ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_IMAGETYPE_OFFSET         (0x00)
272ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_IMAGESIZE_OFFSET         (0x08)
273ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_NEXTIMAGE_OFFSET         (0x0C)
274ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_PACKAGEVERSION_OFFSET   (0x10)
275ff92b9ddSSuganath Prabu 
276ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_HEADER_SIZE              (0x40)
277ff92b9ddSSuganath Prabu 
278ff92b9ddSSuganath Prabu /*defines for the ImageType field */
279ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_UNSPECIFIED             (0x00)
280ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_FW                      (0x01)
281ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_NVDATA                  (0x03)
282ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_BOOTLOADER              (0x04)
283ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_INITIALIZATION          (0x05)
284ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_FLASH_LAYOUT            (0x06)
285ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_SUPPORTED_DEVICES       (0x07)
286ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_MEGARAID                (0x08)
287ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_ENCRYPTED_HASH          (0x09)
288ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_RDE                     (0x0A)
289635ee6c7SSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_PBLP                    (0x0B)
290ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_MIN_PRODUCT_SPECIFIC    (0x80)
291ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC    (0xFF)
292ff92b9ddSSuganath Prabu 
293ff92b9ddSSuganath Prabu #define MPI2_EXT_IMAGE_TYPE_MAX (MPI2_EXT_IMAGE_TYPE_MAX_PRODUCT_SPECIFIC)
294ff92b9ddSSuganath Prabu 
295ff92b9ddSSuganath Prabu /*FLASH Layout Extended Image Data */
296ff92b9ddSSuganath Prabu 
297ff92b9ddSSuganath Prabu /*
298*aa4db51bSJames Seo  *Host code (drivers, BIOS, utilities, etc.) should check NumberOfLayouts and
299*aa4db51bSJames Seo  *RegionsPerLayout at runtime before using Layout[] and Region[].
300ff92b9ddSSuganath Prabu  */
301ff92b9ddSSuganath Prabu 
302ff92b9ddSSuganath Prabu typedef struct _MPI2_FLASH_REGION {
303ff92b9ddSSuganath Prabu 	U8 RegionType;		/*0x00 */
304ff92b9ddSSuganath Prabu 	U8 Reserved1;		/*0x01 */
305ff92b9ddSSuganath Prabu 	U16 Reserved2;		/*0x02 */
306ff92b9ddSSuganath Prabu 	U32 RegionOffset;	/*0x04 */
307ff92b9ddSSuganath Prabu 	U32 RegionSize;		/*0x08 */
308ff92b9ddSSuganath Prabu 	U32 Reserved3;		/*0x0C */
309ff92b9ddSSuganath Prabu } MPI2_FLASH_REGION, *PTR_MPI2_FLASH_REGION,
310ff92b9ddSSuganath Prabu 	Mpi2FlashRegion_t, *pMpi2FlashRegion_t;
311ff92b9ddSSuganath Prabu 
312ff92b9ddSSuganath Prabu typedef struct _MPI2_FLASH_LAYOUT {
313ff92b9ddSSuganath Prabu 	U32 FlashSize;		/*0x00 */
314ff92b9ddSSuganath Prabu 	U32 Reserved1;		/*0x04 */
315ff92b9ddSSuganath Prabu 	U32 Reserved2;		/*0x08 */
316ff92b9ddSSuganath Prabu 	U32 Reserved3;		/*0x0C */
317*aa4db51bSJames Seo 	MPI2_FLASH_REGION Region[];	/*0x10 */
318ff92b9ddSSuganath Prabu } MPI2_FLASH_LAYOUT, *PTR_MPI2_FLASH_LAYOUT,
319ff92b9ddSSuganath Prabu 	Mpi2FlashLayout_t, *pMpi2FlashLayout_t;
320ff92b9ddSSuganath Prabu 
321ff92b9ddSSuganath Prabu typedef struct _MPI2_FLASH_LAYOUT_DATA {
322ff92b9ddSSuganath Prabu 	U8 ImageRevision;	/*0x00 */
323ff92b9ddSSuganath Prabu 	U8 Reserved1;		/*0x01 */
324ff92b9ddSSuganath Prabu 	U8 SizeOfRegion;	/*0x02 */
325ff92b9ddSSuganath Prabu 	U8 Reserved2;		/*0x03 */
326ff92b9ddSSuganath Prabu 	U16 NumberOfLayouts;	/*0x04 */
327ff92b9ddSSuganath Prabu 	U16 RegionsPerLayout;	/*0x06 */
328ff92b9ddSSuganath Prabu 	U16 MinimumSectorAlignment;	/*0x08 */
329ff92b9ddSSuganath Prabu 	U16 Reserved3;		/*0x0A */
330ff92b9ddSSuganath Prabu 	U32 Reserved4;		/*0x0C */
331*aa4db51bSJames Seo 	MPI2_FLASH_LAYOUT Layout[];	/*0x10 */
332ff92b9ddSSuganath Prabu } MPI2_FLASH_LAYOUT_DATA, *PTR_MPI2_FLASH_LAYOUT_DATA,
333ff92b9ddSSuganath Prabu 	Mpi2FlashLayoutData_t, *pMpi2FlashLayoutData_t;
334ff92b9ddSSuganath Prabu 
335ff92b9ddSSuganath Prabu /*defines for the RegionType field */
336ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_UNUSED                (0x00)
337ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_FIRMWARE              (0x01)
338ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_BIOS                  (0x02)
339ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_NVDATA                (0x03)
340ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_FIRMWARE_BACKUP       (0x05)
341ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_MFG_INFORMATION       (0x06)
342ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_CONFIG_1              (0x07)
343ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_CONFIG_2              (0x08)
344ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_MEGARAID              (0x09)
345ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_COMMON_BOOT_BLOCK     (0x0A)
346ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_INIT (MPI2_FLASH_REGION_COMMON_BOOT_BLOCK)
347ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_CBB_BACKUP            (0x0D)
348ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_SBR                   (0x0E)
349ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_SBR_BACKUP            (0x0F)
350ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_HIIM                  (0x10)
351ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_HIIA                  (0x11)
352ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_CTLR                  (0x12)
353ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_IMR_FIRMWARE          (0x13)
354ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_MR_NVDATA             (0x14)
355ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_CPLD                  (0x15)
356ff92b9ddSSuganath Prabu #define MPI2_FLASH_REGION_PSOC                  (0x16)
3571ade26b6SSreekanth Reddy #define MPI2_FLASH_REGION_COREDUMP              (0x17)
358ff92b9ddSSuganath Prabu 
359ff92b9ddSSuganath Prabu /*ImageRevision */
360ff92b9ddSSuganath Prabu #define MPI2_FLASH_LAYOUT_IMAGE_REVISION        (0x00)
361ff92b9ddSSuganath Prabu 
362ff92b9ddSSuganath Prabu /*Supported Devices Extended Image Data */
363ff92b9ddSSuganath Prabu 
364ff92b9ddSSuganath Prabu /*
365*aa4db51bSJames Seo  *Host code (drivers, BIOS, utilities, etc.) should check NumberOfDevices at
366*aa4db51bSJames Seo  *runtime before using SupportedDevice[].
367ff92b9ddSSuganath Prabu  */
368ff92b9ddSSuganath Prabu 
369ff92b9ddSSuganath Prabu typedef struct _MPI2_SUPPORTED_DEVICE {
370ff92b9ddSSuganath Prabu 	U16 DeviceID;		/*0x00 */
371ff92b9ddSSuganath Prabu 	U16 VendorID;		/*0x02 */
372ff92b9ddSSuganath Prabu 	U16 DeviceIDMask;	/*0x04 */
373ff92b9ddSSuganath Prabu 	U16 Reserved1;		/*0x06 */
374ff92b9ddSSuganath Prabu 	U8 LowPCIRev;		/*0x08 */
375ff92b9ddSSuganath Prabu 	U8 HighPCIRev;		/*0x09 */
376ff92b9ddSSuganath Prabu 	U16 Reserved2;		/*0x0A */
377ff92b9ddSSuganath Prabu 	U32 Reserved3;		/*0x0C */
378ff92b9ddSSuganath Prabu } MPI2_SUPPORTED_DEVICE, *PTR_MPI2_SUPPORTED_DEVICE,
379ff92b9ddSSuganath Prabu 	Mpi2SupportedDevice_t, *pMpi2SupportedDevice_t;
380ff92b9ddSSuganath Prabu 
381ff92b9ddSSuganath Prabu typedef struct _MPI2_SUPPORTED_DEVICES_DATA {
382ff92b9ddSSuganath Prabu 	U8 ImageRevision;	/*0x00 */
383ff92b9ddSSuganath Prabu 	U8 Reserved1;		/*0x01 */
384ff92b9ddSSuganath Prabu 	U8 NumberOfDevices;	/*0x02 */
385ff92b9ddSSuganath Prabu 	U8 Reserved2;		/*0x03 */
386ff92b9ddSSuganath Prabu 	U32 Reserved3;		/*0x04 */
387ff92b9ddSSuganath Prabu 	MPI2_SUPPORTED_DEVICE
388*aa4db51bSJames Seo 	SupportedDevice[];	/*0x08 */
389ff92b9ddSSuganath Prabu } MPI2_SUPPORTED_DEVICES_DATA, *PTR_MPI2_SUPPORTED_DEVICES_DATA,
390ff92b9ddSSuganath Prabu 	Mpi2SupportedDevicesData_t, *pMpi2SupportedDevicesData_t;
391ff92b9ddSSuganath Prabu 
392ff92b9ddSSuganath Prabu /*ImageRevision */
393ff92b9ddSSuganath Prabu #define MPI2_SUPPORTED_DEVICES_IMAGE_REVISION   (0x00)
394ff92b9ddSSuganath Prabu 
395ff92b9ddSSuganath Prabu /*Init Extended Image Data */
396ff92b9ddSSuganath Prabu 
397ff92b9ddSSuganath Prabu typedef struct _MPI2_INIT_IMAGE_FOOTER {
398ff92b9ddSSuganath Prabu 	U32 BootFlags;		/*0x00 */
399ff92b9ddSSuganath Prabu 	U32 ImageSize;		/*0x04 */
400ff92b9ddSSuganath Prabu 	U32 Signature0;		/*0x08 */
401ff92b9ddSSuganath Prabu 	U32 Signature1;		/*0x0C */
402ff92b9ddSSuganath Prabu 	U32 Signature2;		/*0x10 */
403ff92b9ddSSuganath Prabu 	U32 ResetVector;	/*0x14 */
404ff92b9ddSSuganath Prabu } MPI2_INIT_IMAGE_FOOTER, *PTR_MPI2_INIT_IMAGE_FOOTER,
405ff92b9ddSSuganath Prabu 	Mpi2InitImageFooter_t, *pMpi2InitImageFooter_t;
406ff92b9ddSSuganath Prabu 
407ff92b9ddSSuganath Prabu /*defines for the BootFlags field */
408ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_BOOTFLAGS_OFFSET        (0x00)
409ff92b9ddSSuganath Prabu 
410ff92b9ddSSuganath Prabu /*defines for the ImageSize field */
411ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_IMAGESIZE_OFFSET        (0x04)
412ff92b9ddSSuganath Prabu 
413ff92b9ddSSuganath Prabu /*defines for the Signature0 field */
414ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE0_OFFSET       (0x08)
415ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE0              (0x5AA55AEA)
416ff92b9ddSSuganath Prabu 
417ff92b9ddSSuganath Prabu /*defines for the Signature1 field */
418ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE1_OFFSET       (0x0C)
419ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE1              (0xA55AEAA5)
420ff92b9ddSSuganath Prabu 
421ff92b9ddSSuganath Prabu /*defines for the Signature2 field */
422ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE2_OFFSET       (0x10)
423ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE2              (0x5AEAA55A)
424ff92b9ddSSuganath Prabu 
425ff92b9ddSSuganath Prabu /*Signature fields as individual bytes */
426ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_0        (0xEA)
427ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_1        (0x5A)
428ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_2        (0xA5)
429ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_3        (0x5A)
430ff92b9ddSSuganath Prabu 
431ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_4        (0xA5)
432ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_5        (0xEA)
433ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_6        (0x5A)
434ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_7        (0xA5)
435ff92b9ddSSuganath Prabu 
436ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_8        (0x5A)
437ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_9        (0xA5)
438ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_A        (0xEA)
439ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_SIGNATURE_BYTE_B        (0x5A)
440ff92b9ddSSuganath Prabu 
441ff92b9ddSSuganath Prabu /*defines for the ResetVector field */
442ff92b9ddSSuganath Prabu #define MPI2_INIT_IMAGE_RESETVECTOR_OFFSET      (0x14)
443ff92b9ddSSuganath Prabu 
444ff92b9ddSSuganath Prabu 
445ff92b9ddSSuganath Prabu /* Encrypted Hash Extended Image Data */
446ff92b9ddSSuganath Prabu 
447ff92b9ddSSuganath Prabu typedef struct _MPI25_ENCRYPTED_HASH_ENTRY {
448ff92b9ddSSuganath Prabu 	U8		HashImageType;		/*0x00 */
449ff92b9ddSSuganath Prabu 	U8		HashAlgorithm;		/*0x01 */
450ff92b9ddSSuganath Prabu 	U8		EncryptionAlgorithm;	/*0x02 */
451ff92b9ddSSuganath Prabu 	U8		Reserved1;		/*0x03 */
452ff92b9ddSSuganath Prabu 	U32		Reserved2;		/*0x04 */
453*aa4db51bSJames Seo 	U32		EncryptedHash[];	/*0x08 */
454ff92b9ddSSuganath Prabu } MPI25_ENCRYPTED_HASH_ENTRY, *PTR_MPI25_ENCRYPTED_HASH_ENTRY,
455ff92b9ddSSuganath Prabu Mpi25EncryptedHashEntry_t, *pMpi25EncryptedHashEntry_t;
456ff92b9ddSSuganath Prabu 
457ff92b9ddSSuganath Prabu /* values for HashImageType */
458ff92b9ddSSuganath Prabu #define MPI25_HASH_IMAGE_TYPE_UNUSED            (0x00)
459ff92b9ddSSuganath Prabu #define MPI25_HASH_IMAGE_TYPE_FIRMWARE          (0x01)
460ff92b9ddSSuganath Prabu #define MPI25_HASH_IMAGE_TYPE_BIOS              (0x02)
461ff92b9ddSSuganath Prabu 
462ff92b9ddSSuganath Prabu #define MPI26_HASH_IMAGE_TYPE_UNUSED            (0x00)
463ff92b9ddSSuganath Prabu #define MPI26_HASH_IMAGE_TYPE_FIRMWARE          (0x01)
464ff92b9ddSSuganath Prabu #define MPI26_HASH_IMAGE_TYPE_BIOS              (0x02)
465ff92b9ddSSuganath Prabu #define MPI26_HASH_IMAGE_TYPE_KEY_HASH          (0x03)
466ff92b9ddSSuganath Prabu 
467ff92b9ddSSuganath Prabu /* values for HashAlgorithm */
468ff92b9ddSSuganath Prabu #define MPI25_HASH_ALGORITHM_UNUSED             (0x00)
469ff92b9ddSSuganath Prabu #define MPI25_HASH_ALGORITHM_SHA256             (0x01)
470ff92b9ddSSuganath Prabu 
471635ee6c7SSuganath Prabu #define MPI26_HASH_ALGORITHM_VER_MASK		(0xE0)
472635ee6c7SSuganath Prabu #define MPI26_HASH_ALGORITHM_VER_NONE		(0x00)
473635ee6c7SSuganath Prabu #define MPI26_HASH_ALGORITHM_VER_SHA1		(0x20)
474635ee6c7SSuganath Prabu #define MPI26_HASH_ALGORITHM_VER_SHA2		(0x40)
475635ee6c7SSuganath Prabu #define MPI26_HASH_ALGORITHM_VER_SHA3		(0x60)
476ff92b9ddSSuganath Prabu #define MPI26_HASH_ALGORITHM_SIZE_MASK		(0x1F)
477ff92b9ddSSuganath Prabu #define MPI26_HASH_ALGORITHM_SIZE_256           (0x01)
478ff92b9ddSSuganath Prabu #define MPI26_HASH_ALGORITHM_SIZE_512           (0x02)
479ff92b9ddSSuganath Prabu 
480ff92b9ddSSuganath Prabu 
481ff92b9ddSSuganath Prabu /* values for EncryptionAlgorithm */
482ff92b9ddSSuganath Prabu #define MPI25_ENCRYPTION_ALG_UNUSED             (0x00)
483ff92b9ddSSuganath Prabu #define MPI25_ENCRYPTION_ALG_RSA256             (0x01)
484ff92b9ddSSuganath Prabu 
485ff92b9ddSSuganath Prabu #define MPI26_ENCRYPTION_ALG_UNUSED             (0x00)
486ff92b9ddSSuganath Prabu #define MPI26_ENCRYPTION_ALG_RSA256             (0x01)
487ff92b9ddSSuganath Prabu #define MPI26_ENCRYPTION_ALG_RSA512             (0x02)
488ff92b9ddSSuganath Prabu #define MPI26_ENCRYPTION_ALG_RSA1024            (0x03)
489ff92b9ddSSuganath Prabu #define MPI26_ENCRYPTION_ALG_RSA2048            (0x04)
490ff92b9ddSSuganath Prabu #define MPI26_ENCRYPTION_ALG_RSA4096            (0x05)
491ff92b9ddSSuganath Prabu 
492ff92b9ddSSuganath Prabu typedef struct _MPI25_ENCRYPTED_HASH_DATA {
493ff92b9ddSSuganath Prabu 	U8				ImageVersion;		/*0x00 */
494ff92b9ddSSuganath Prabu 	U8				NumHash;		/*0x01 */
495ff92b9ddSSuganath Prabu 	U16				Reserved1;		/*0x02 */
496ff92b9ddSSuganath Prabu 	U32				Reserved2;		/*0x04 */
497*aa4db51bSJames Seo 	MPI25_ENCRYPTED_HASH_ENTRY	EncryptedHashEntry[];	/*0x08 */
498ff92b9ddSSuganath Prabu } MPI25_ENCRYPTED_HASH_DATA, *PTR_MPI25_ENCRYPTED_HASH_DATA,
499ff92b9ddSSuganath Prabu Mpi25EncryptedHashData_t, *pMpi25EncryptedHashData_t;
500ff92b9ddSSuganath Prabu 
501ff92b9ddSSuganath Prabu 
502ff92b9ddSSuganath Prabu #endif /* MPI2_IMAGE_H */
503