File: image_layout_layouts.h

package info (click to toggle)
mstflint 4.33.0%2B1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 56,212 kB
  • sloc: ansic: 224,755; cpp: 116,860; ada: 19,665; sh: 11,406; python: 8,388; makefile: 1,541
file content (1384 lines) | stat: -rw-r--r-- 62,632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384

/* Copyright (c) 2013-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 *
 * This software is available to you under a choice of one of two
 * licenses.  You may choose to be licensed under the terms of the GNU
 * General Public License (GPL) Version 2, available from the file
 * COPYING in the main directory of this source tree, or the
 * OpenIB.org BSD license below:
 *
 *     Redistribution and use in source and binary forms, with or
 *     without modification, are permitted provided that the following
 *     conditions are met:
 *
 *      - Redistributions of source code must retain the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer.
 *
 *      - Redistributions in binary form must reproduce the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer in the documentation and/or other materials
 *        provided with the distribution.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

 

/***
         *** This file was generated at "2023-01-25 19:38:33"
         *** by:
         ***    > [REDACTED]/adb2pack.py --input adb/image_layout/image_layout.adb --file-prefix image_layout --prefix image_layout_ --no-adb-utils
         ***/
#ifndef IMAGE_LAYOUT_LAYOUTS_H
#define IMAGE_LAYOUT_LAYOUTS_H


#ifdef __cplusplus
extern "C" {
#endif

#include "adb_to_c_utils.h"
/* Description -   */
/* Size in bytes - 8 */
struct image_layout_uint64 {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x4.31 */
	u_int64_t uint64;
};

/* Description -   */
/* Size in bytes - 4 */
struct image_layout_component_authentication_configuration {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - 0-FW_BURN_NONE, 1-FW_BURN_SHA256_DIGEST, 2-FW_BURN_SHA512_DIGEST,3-FW_BURN_2048BIT_RSASSA_PKCS1_V1_5_WITH_SHA256, 4-FW_BURN_4096BIT_RSASSA_PKCS1_V1_5_WITH_SHA512 */
	/* 0x0.0 - 0x0.7 */
	u_int8_t auth_type;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - used for authenticating challenge-response based tokens */
	/* 0x0.25 - 0x0.25 */
	u_int8_t c_r_token_en;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - used for authenticating Back to commissioning tokens */
	/* 0x0.26 - 0x0.26 */
	u_int8_t btc_token_en;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - used for authenticating Factory Re-COnfiguration Responses */
	/* 0x0.27 - 0x0.27 */
	u_int8_t frc_en;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - used for signing NVCONFIG at MLNX level */
	/* 0x0.28 - 0x0.28 */
	u_int8_t mlnx_nvconfig_en;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - used for authenticating NVCONFIG at OEM level */
	/* 0x0.29 - 0x0.29 */
	u_int8_t vendor_nvconfig_en;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - used for authenticating CS tokens at OEM level */
	/* 0x0.30 - 0x0.30 */
	u_int8_t cs_token_en;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Used for authenticating firmware, DBG_FW, DBG Tokens */
	/* 0x0.31 - 0x0.31 */
	u_int8_t fw_en;
};

/* Description -   */
/* Size in bytes - 8 */
struct image_layout_htoc_entry {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x0.15 */
	u_int16_t hash_offset;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.16 - 0x0.23 */
	u_int8_t section_type;
};

/* Description -   */
/* Size in bytes - 16 */
struct image_layout_htoc_header {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x0.31 */
	u_int32_t version;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.0 - 0x4.7 */
	u_int8_t num_of_entries;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.8 - 0x4.15 */
	u_int8_t hash_type;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.16 - 0x4.31 */
	u_int16_t hash_size;
};

/* Description -   */
/* Size in bytes - 4 */
struct image_layout_module_version {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x0.7 */
	u_int8_t branch;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.8 - 0x0.19 */
	u_int16_t minor;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.20 - 0x0.31 */
	u_int16_t major;
};

/* Description -   */
/* Size in bytes - 4 */
struct image_layout_reset_capabilities {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Initial capability for reset level */
	/* 0x0.0 - 0x0.0 */
	u_int8_t reset_ver_en;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Version field used for the version vector. The firmware cannot peform Live-Patch from different version_vector_ver. Note: Different major values are not supported. */
	/* 0x0.8 - 0x0.15 */
	u_int8_t version_vector_ver;
};

/* Description -   */
/* Size in bytes - 4 */
struct image_layout_reset_version {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - major must be supported in order to support lfwp */
	/* 0x0.0 - 0x0.15 */
	u_int16_t major;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - branch must be supported in order to support lfwp */
	/* 0x0.16 - 0x0.19 */
	u_int8_t branch;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - determines which transfer function to run */
	/* 0x0.20 - 0x0.27 */
	u_int8_t minor;
};

/* Description -   */
/* Size in bytes - 16 */
struct image_layout_uid_entry {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Number of allocated UIDs in this entry */
	/* 0x0.0 - 0x0.7 */
	u_int8_t num_allocated;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Step size by which to derive the UIDs for this entry
See struct description */
	/* 0x0.8 - 0x0.15 */
	u_int8_t step;
	/* Description - MSB of number of allocated UIDs in this entry */
	/* 0x0.16 - 0x0.23 */
	u_int8_t num_allocated_msb;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description - For MACs, the upper 16 bits in the 'hi' dword are reserved */
	/* 0x8.0 - 0xc.31 */
	u_int64_t uid;
};

/* Description -   */
/* Size in bytes - 16 */
struct image_layout_FW_VERSION {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.16 - 0x0.31 */
	u_int16_t MAJOR;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.0 - 0x4.15 */
	u_int16_t SUBMINOR;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.16 - 0x4.31 */
	u_int16_t MINOR;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description -  */
	/* 0x8.8 - 0x8.15 */
	u_int8_t Hour;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description -  */
	/* 0x8.16 - 0x8.23 */
	u_int8_t Minutes;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description -  */
	/* 0x8.24 - 0x8.31 */
	u_int8_t Seconds;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description -  */
	/* 0xc.0 - 0xc.7 */
	u_int8_t Day;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description -  */
	/* 0xc.8 - 0xc.15 */
	u_int8_t Month;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description -  */
	/* 0xc.16 - 0xc.31 */
	u_int16_t Year;
};

/* Description -   */
/* Size in bytes - 8 */
struct image_layout_TRIPPLE_VERSION {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.16 - 0x0.31 */
	u_int16_t MAJOR;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.0 - 0x4.15 */
	u_int16_t SUBMINOR;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.16 - 0x4.31 */
	u_int16_t MINOR;
};

/* Description -   */
/* Size in bytes - 288 */
struct image_layout_file_public_keys {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - configuration bits to enable authentication for each component */
	/* 0x0.0 - 0x0.31 */
	struct image_layout_component_authentication_configuration component_authentication_configuration;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description - public key exponent, FW should use an exponent of 65537 */
	/* 0xc.0 - 0xc.31 */
	u_int32_t keypair_exp;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - UUID of this key created by server when it generates a keypair */
	/* 0x10.0 - 0x1c.31 */
	u_int32_t keypair_uuid[4];
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description - 2048 bit public-key */
	/* 0x20.0 - 0x11c.31 */
	u_int32_t key[64];
};

/* Description -   */
/* Size in bytes - 544 */
struct image_layout_file_public_keys_2 {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - configuration bits to enable authentication for each component */
	/* 0x0.0 - 0x0.31 */
	struct image_layout_component_authentication_configuration component_authentication_configuration;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description - public key exponent, FW should use an exponent of 65537 */
	/* 0xc.0 - 0xc.31 */
	u_int32_t keypair_exp;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - UUID of this key created by server when it generates a keypair */
	/* 0x10.0 - 0x1c.31 */
	u_int32_t keypair_uuid[4];
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description - 4096 bit public-key */
	/* 0x20.0 - 0x21c.31 */
	u_int32_t key[128];
};

/* Description -   */
/* Size in bytes - 544 */
struct image_layout_file_public_keys_3 {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - public key exponent, FW should use an exponent of 65537 */
	/* 0x0.0 - 0x0.31 */
	u_int32_t keypair_exp;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - UUID of this key created by server when it generates a keypair */
	/* 0x4.0 - 0x10.31 */
	u_int32_t keypair_uuid[4];
/*---------------- DWORD[5] (Offset 0x14) ----------------*/
	/* Description - 4096 bit public-key */
	/* 0x14.0 - 0x210.31 */
	u_int32_t key[128];
/*---------------- DWORD[133] (Offset 0x214) ----------------*/
	/* Description - configuration bits to enable authentication for each component */
	/* 0x214.0 - 0x214.31 */
	struct image_layout_component_authentication_configuration component_authentication_configuration;
};

/* Description -   */
/* Size in bytes - 64 */
struct image_layout_guids {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - UIDs (MACs and GUIDs) Allocation Entry.
guids, is used for system GUID, node GUID and port GUID of port 0. ;/Multiple UIDs can be assigned to a single port, to be used for multiple virtual guests, multi host and managment */
	/* 0x0.0 - 0xc.31 */
	struct image_layout_uid_entry guids;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description -  */
	/* 0x10.0 - 0x1c.31 */
	struct image_layout_uid_entry macs;
};

/* Description -   */
/* Size in bytes - 12 */
struct image_layout_hashes_table_header {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Hard-coded to 0 */
	/* 0x0.0 - 0x0.31 */
	u_int32_t load_address;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - Num of payload DWs + 1 */
	/* 0x4.0 - 0x4.31 */
	u_int32_t dw_size;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description - Calculated over the first 2 DWs */
	/* 0x8.0 - 0x8.15 */
	u_int16_t crc;
};

/* Description -   */
/* Size in bytes - 240 */
struct image_layout_htoc {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0xc.31 */
	struct image_layout_htoc_header header;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description -  */
	/* 0x10.0 - 0xec.31 */
	struct image_layout_htoc_entry entry[28];
};

/* Description -   */
/* Size in bytes - 64 */
struct image_layout_htoc_hash {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x3c.31 */
	u_int32_t hash_val[16];
};

/* Description -  HW pointer entry */
/* Size in bytes - 8 */
struct image_layout_hw_pointer_entry {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - pointer */
	/* 0x0.0 - 0x0.31 */
	u_int32_t ptr;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - crc16 as calculated by HW */
	/* 0x4.0 - 0x4.15 */
	u_int16_t crc;
};

/* Description -   */
/* Size in bytes - 8 */
struct image_layout_image_size {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - log of next address in bytes to search for an image. Address in bytes is 2^log_step */
	/* 0x0.0 - 0x0.7 */
	u_int8_t log_step;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - this image can run from any partition starting at address 0x0000000, 0x4000000, 0x800000. The code supports only two partitions. */
	/* 0x0.31 - 0x0.31 */
	u_int8_t run_from_any;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - Max possible size in bytes of image. Image read / write should not occure beyond this address */
	/* 0x4.0 - 0x4.31 */
	u_int32_t max_size;
};

/* Description -   */
/* Size in bytes - 64 */
struct image_layout_module_versions {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x0.31 */
	struct image_layout_module_version core;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.0 - 0x4.31 */
	struct image_layout_module_version phy;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description -  */
	/* 0x8.0 - 0x8.31 */
	struct image_layout_module_version kernel;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description -  */
	/* 0xc.0 - 0xc.31 */
	struct image_layout_module_version iron_image;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description -  */
	/* 0x10.0 - 0x10.31 */
	struct image_layout_module_version host_management;
/*---------------- DWORD[5] (Offset 0x14) ----------------*/
	/* Description -  */
	/* 0x14.0 - 0x14.31 */
	struct image_layout_module_version mad;
};

/* Description -   */
/* Size in bytes - 16 */
struct image_layout_operation_key {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x0.15 */
	u_int16_t key_modifier;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description -  */
	/* 0x8.0 - 0xc.31 */
	u_int64_t key;
};

/* Description -   */
/* Size in bytes - 48 */
struct image_layout_version_vector {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x0.31 */
	struct image_layout_reset_capabilities reset_capabilities;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - cores SP */
	/* 0x4.0 - 0x4.31 */
	struct image_layout_reset_version scratchpad;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description -  */
	/* 0x8.0 - 0x8.31 */
	struct image_layout_reset_version icm_context;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description - PCI domain */
	/* 0xc.0 - 0xc.31 */
	struct image_layout_reset_version pci;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - PHY domain */
	/* 0x10.0 - 0x10.31 */
	struct image_layout_reset_version phy;
/*---------------- DWORD[5] (Offset 0x14) ----------------*/
	/* Description -  */
	/* 0x14.0 - 0x14.31 */
	struct image_layout_reset_version ini;
/*---------------- DWORD[6] (Offset 0x18) ----------------*/
	/* Description -  */
	/* 0x18.0 - 0x18.31 */
	struct image_layout_reset_version reserved1;
/*---------------- DWORD[7] (Offset 0x1c) ----------------*/
	/* Description -  */
	/* 0x1c.0 - 0x1c.31 */
	struct image_layout_reset_version reserved2;
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description -  */
	/* 0x20.0 - 0x20.31 */
	struct image_layout_reset_version reserved3;
/*---------------- DWORD[9] (Offset 0x24) ----------------*/
	/* Description -  */
	/* 0x24.0 - 0x24.31 */
	struct image_layout_reset_version reserved4;
/*---------------- DWORD[10] (Offset 0x28) ----------------*/
	/* Description -  */
	/* 0x28.0 - 0x28.31 */
	struct image_layout_reset_version reserved5;
/*---------------- DWORD[11] (Offset 0x2c) ----------------*/
	/* Description -  */
	/* 0x2c.0 - 0x2c.31 */
	struct image_layout_reset_version reserved6;
};

/* Description -   */
/* Size in bytes - 4 */
struct image_layout_boot_version {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x0.7 */
	u_int8_t minor_version;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.8 - 0x0.15 */
	u_int8_t major_version;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.24 - 0x0.31 */
	u_int8_t image_format_version;
};

/* Description -   */
/* Size in bytes - 512 */
struct image_layout_device_info {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x0.31 */
	u_int32_t signature0;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.0 - 0x4.31 */
	u_int32_t signature1;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description -  */
	/* 0x8.0 - 0x8.31 */
	u_int32_t signature2;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description -  */
	/* 0xc.0 - 0xc.31 */
	u_int32_t signature3;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - Format version for this struct */
	/* 0x10.0 - 0x10.7 */
	u_int8_t minor_version;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - Format version for this struct */
	/* 0x10.8 - 0x10.16 */
	u_int16_t major_version;
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description -  */
	/* 0x20.0 - 0x5c.31 */
	struct image_layout_guids guids;
/*---------------- DWORD[27] (Offset 0x6c) ----------------*/
	/* Description -  */
	/* 0x6c.0 - 0x6c.15 */
	u_int16_t vsd_vendor_id;
/*---------------- DWORD[28] (Offset 0x70) ----------------*/
	/* Description -  */
	/* 0x70.24 - 0x140.23 */
	char vsd[209];
/*---------------- DWORD[88] (Offset 0x160) ----------------*/
	/* Description -  */
	/* 0x160.0 - 0x19c.31 */
	struct image_layout_operation_key keys[4];
/*---------------- DWORD[127] (Offset 0x1fc) ----------------*/
	/* Description -  */
	/* 0x1fc.0 - 0x1fc.15 */
	u_int16_t crc;
};

/* Description -   */
/* Size in bytes - 2052 */
struct image_layout_hashes_table {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x8.31 */
	struct image_layout_hashes_table_header header;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description -  */
	/* 0xc.0 - 0xf8.31 */
	struct image_layout_htoc htoc;
/*---------------- DWORD[63] (Offset 0xfc) ----------------*/
	/* Description -  */
	/* 0xfc.0 - 0x7f8.31 */
	struct image_layout_htoc_hash hash[28];
/*---------------- DWORD[512] (Offset 0x800) ----------------*/
	/* Description -  */
	/* 0x800.0 - 0x800.15 */
	u_int16_t crc;
};

/* Description -  HW pointers */
/* Size in bytes - 128 */
struct image_layout_hw_pointers_carmel {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x4.31 */
	struct image_layout_hw_pointer_entry boot_record_ptr;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description -  */
	/* 0x8.0 - 0xc.31 */
	struct image_layout_hw_pointer_entry boot2_ptr;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description -  */
	/* 0x10.0 - 0x14.31 */
	struct image_layout_hw_pointer_entry toc_ptr;
/*---------------- DWORD[6] (Offset 0x18) ----------------*/
	/* Description -  */
	/* 0x18.0 - 0x1c.31 */
	struct image_layout_hw_pointer_entry tools_ptr;
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description -  */
	/* 0x20.0 - 0x24.31 */
	struct image_layout_hw_pointer_entry authentication_start_pointer;
/*---------------- DWORD[10] (Offset 0x28) ----------------*/
	/* Description -  */
	/* 0x28.0 - 0x2c.31 */
	struct image_layout_hw_pointer_entry authentication_end_pointer;
/*---------------- DWORD[12] (Offset 0x30) ----------------*/
	/* Description -  */
	/* 0x30.0 - 0x34.31 */
	struct image_layout_hw_pointer_entry digest_pointer;
/*---------------- DWORD[14] (Offset 0x38) ----------------*/
	/* Description -  */
	/* 0x38.0 - 0x3c.31 */
	struct image_layout_hw_pointer_entry digest_recovery_key_pointer;
/*---------------- DWORD[16] (Offset 0x40) ----------------*/
	/* Description -  */
	/* 0x40.0 - 0x44.31 */
	struct image_layout_hw_pointer_entry fw_window_start_pointer;
/*---------------- DWORD[18] (Offset 0x48) ----------------*/
	/* Description -  */
	/* 0x48.0 - 0x4c.31 */
	struct image_layout_hw_pointer_entry fw_window_end_pointer;
/*---------------- DWORD[20] (Offset 0x50) ----------------*/
	/* Description -  */
	/* 0x50.0 - 0x54.31 */
	struct image_layout_hw_pointer_entry image_info_section_pointer;
/*---------------- DWORD[22] (Offset 0x58) ----------------*/
	/* Description -  */
	/* 0x58.0 - 0x5c.31 */
	struct image_layout_hw_pointer_entry image_signature_pointer;
/*---------------- DWORD[24] (Offset 0x60) ----------------*/
	/* Description -  */
	/* 0x60.0 - 0x64.31 */
	struct image_layout_hw_pointer_entry public_key_pointer;
/*---------------- DWORD[26] (Offset 0x68) ----------------*/
	/* Description -  */
	/* 0x68.0 - 0x6c.31 */
	struct image_layout_hw_pointer_entry fw_security_version_pointer;
/*---------------- DWORD[28] (Offset 0x70) ----------------*/
	/* Description -  */
	/* 0x70.0 - 0x74.31 */
	struct image_layout_hw_pointer_entry gcm_iv_delta_pointer;
/*---------------- DWORD[30] (Offset 0x78) ----------------*/
	/* Description -  */
	/* 0x78.0 - 0x7c.31 */
	struct image_layout_hw_pointer_entry hashes_table_pointer;
};

/* Description -   */
/* Size in bytes - 1024 */
struct image_layout_image_info {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.1 - 0x0.1 */
	u_int8_t toc_header_duplication;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Indicate that this binary intended for secure boot enabled devices */
	/* 0x0.2 - 0x0.2 */
	u_int8_t secure_boot;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - 0x0 - not encrypted; 0x1 - encryption before signature; 0x2 - encryption after signature.  */
	/* 0x0.3 - 0x0.4 */
	u_int8_t encrypted_fw;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Indicate that this binary support windbond flash */
	/* 0x0.5 - 0x0.5 */
	u_int8_t windbond_flash_support;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Indicate that this binary support long keys (up to 4096bits) */
	/* 0x0.6 - 0x0.6 */
	u_int8_t long_keys;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - when set, debug-fw tokens are enabled. */
	/* 0x0.7 - 0x0.7 */
	u_int8_t debug_fw_tokens_supported;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - The image can be updated using the MCC/MCDA commands */
	/* 0x0.8 - 0x0.8 */
	u_int8_t mcc_en;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - OEM lifecycle NVCONFIG files are signed */
	/* 0x0.9 - 0x0.9 */
	u_int8_t signed_vendor_nvconfig_files;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Mellanox lifecycle NVCONFIG files are signed */
	/* 0x0.10 - 0x0.10 */
	u_int8_t signed_mlnx_nvconfig_files;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Factory re-customizationflow is supported */
	/* 0x0.11 - 0x0.11 */
	u_int8_t frc_supported;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Customer Support Tokens are supported */
	/* 0x0.12 - 0x0.12 */
	u_int8_t cs_tokens_supported;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - This is a debug firmware */
	/* 0x0.13 - 0x0.13 */
	u_int8_t debug_fw;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - [MCC/MCDA flow] if set, the SHA 256 digest is encrypted - enabled by default for secure_fw - cr-space not closed */
	/* 0x0.14 - 0x0.14 */
	u_int8_t signed_fw;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - [MCC/MCDA flow] cr-space closed */
	/* 0x0.15 - 0x0.15 */
	u_int8_t secure_fw;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - IMAGE_INFO section minor version */
	/* 0x0.16 - 0x0.23 */
	u_int8_t minor_version;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - IMAGE_INFO section major version */
	/* 0x0.24 - 0x0.31 */
	u_int8_t major_version;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description -  */
	/* 0x4.0 - 0x10.31 */
	struct image_layout_FW_VERSION FW_VERSION;
/*---------------- DWORD[5] (Offset 0x14) ----------------*/
	/* Description -  */
	/* 0x14.0 - 0x18.31 */
	struct image_layout_TRIPPLE_VERSION mic_version;
/*---------------- DWORD[7] (Offset 0x1c) ----------------*/
	/* Description - PCI device ID of the device */
	/* 0x1c.0 - 0x1c.15 */
	u_int16_t pci_vendor_id;
/*---------------- DWORD[7] (Offset 0x1c) ----------------*/
	/* Description - PCI device ID of the device */
	/* 0x1c.16 - 0x1c.31 */
	u_int16_t pci_device_id;
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description - PCI device ID of the device */
	/* 0x20.0 - 0x20.15 */
	u_int16_t pci_sub_vendor_id;
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description - PCI device ID of the device */
	/* 0x20.16 - 0x20.31 */
	u_int16_t pci_subsystem_id;
/*---------------- DWORD[9] (Offset 0x24) ----------------*/
	/* Description -  */
	/* 0x24.24 - 0x34.23 */
	char psid[17];
/*---------------- DWORD[13] (Offset 0x34) ----------------*/
	/* Description -  */
	/* 0x34.0 - 0x34.15 */
	u_int16_t vsd_vendor_id;
/* Description - psc flavour. It directs mlxburn which psc componenet to embed in the image ;0-blank;1-preprod ipn;2-secure ipn;3-preprod opn;4-secure opn. 0 for first section, 1 or 2 for second. 3 or 4 for third */
	/* 0x34.16 - 0x34.23 */
	u_int8_t psc_sku;
/*---------------- DWORD[14] (Offset 0x38) ----------------*/
	/* Description -  */
	/* 0x38.24 - 0x108.23 */
	char vsd[209];
/*---------------- DWORD[66] (Offset 0x108) ----------------*/
	/* Description - image size parameters */
	/* 0x108.0 - 0x10c.31 */
	struct image_layout_image_size image_size;
/*---------------- DWORD[68] (Offset 0x110) ----------------*/
	/* Description - The needed 10s of ms timeout between the PCI link disable and PCI link enable. */
	/* 0x110.0 - 0x110.7 */
	u_int8_t synced_reset_downtime;
/*---------------- DWORD[68] (Offset 0x110) ----------------*/
	/* Description -  */
	/* 0x110.8 - 0x110.15 */
	u_int8_t dtoc_offset;
/*---------------- DWORD[68] (Offset 0x110) ----------------*/
	/* Description - indication for tool where to locate toc header copy */
	/* 0x110.16 - 0x110.31 */
	u_int16_t toc_copy_ofst;
/*---------------- DWORD[70] (Offset 0x118) ----------------*/
	/* Description - HW device(s) supported by this FW image.
0 means invalid entry.
For Golan A0, first entry should be 0x1ff
 */
	/* 0x118.0 - 0x124.31 */
	u_int32_t supported_hw_id[4];
/*---------------- DWORD[74] (Offset 0x128) ----------------*/
	/* Description -  */
	/* 0x128.0 - 0x128.31 */
	u_int32_t ini_file_num;
/*---------------- DWORD[75] (Offset 0x12c) ----------------*/
	/* Description -  */
	/* 0x12c.0 - 0x12c.31 */
	u_int32_t burn_image_size;
/*---------------- DWORD[100] (Offset 0x190) ----------------*/
	/* Description -  */
	/* 0x190.0 - 0x1bc.31 */
	struct image_layout_version_vector version_vector;
/*---------------- DWORD[112] (Offset 0x1c0) ----------------*/
	/* Description - Product Version is the unified version of the FW and expansion ROM.
Format is defined by the packager.
When set to a non-empty string the FW update tool burns the image as a monolythic entity and refuses to update rom only or FW only. */
	/* 0x1c0.24 - 0x1d0.23 */
	char prod_ver[17];
/*---------------- DWORD[116] (Offset 0x1d0) ----------------*/
	/* Description - Product description */
	/* 0x1d0.24 - 0x2d0.23 */
	char description[257];
/*---------------- DWORD[192] (Offset 0x300) ----------------*/
	/* Description -  */
	/* 0x300.0 - 0x33c.31 */
	struct image_layout_module_versions module_versions;
/*---------------- DWORD[208] (Offset 0x340) ----------------*/
	/* Description - Product name */
	/* 0x340.24 - 0x380.23 */
	char name[65];
/*---------------- DWORD[224] (Offset 0x380) ----------------*/
	/* Description - PRS used to generate the FW binary */
	/* 0x380.24 - 0x400.23 */
	char prs_name[129];
};

/* Description -   */
/* Size in bytes - 320 */
struct image_layout_image_signature {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - time based UUID for this signature */
	/* 0x0.0 - 0xc.31 */
	u_int32_t signature_uuid[4];
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - The UUID of the keypair used for signing this file */
	/* 0x10.0 - 0x1c.31 */
	u_int32_t keypair_uuid[4];
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description - The signature itself */
	/* 0x20.0 - 0x11c.31 */
	u_int32_t signature[64];
};

/* Description -   */
/* Size in bytes - 576 */
struct image_layout_image_signature_2 {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - time based UUID for this signature */
	/* 0x0.0 - 0xc.31 */
	u_int32_t signature_uuid[4];
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - The UUID of the keypair used for signing this file */
	/* 0x10.0 - 0x1c.31 */
	u_int32_t keypair_uuid[4];
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description - The signature itself */
	/* 0x20.0 - 0x21c.31 */
	u_int32_t signature[128];
};

/* Description -   */
/* Size in bytes - 32 */
struct image_layout_itoc_entry {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.2 - 0x0.23 */
	u_int32_t size;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - Section ID Section Type DESCRIPTION
0x1 BOOT_CODE FW loader code
0x2 PCI_CODE Code that is required to raise PCIe link.
0x3 MAIN_CODE All non-PCIe FW code
0x8 HW_BOOT_CFG Initial values for the PCI related registers
0x9 HW_MAIN_CFG Initial values for all other registers 
0x10 IMAGE_INFO Management data for the burning tool. See 'Image Info Section' chapter in the Mellanox Flash Programming Application Note
0x11 FW_BOOT_CFG Initial values for user set-able hi level non-hardware related settings, such as number of physical functions
(optional)
0x12 FW_MAIN_CFG Initial values for user set-able hi level non-hardware related settings.
(optional)
0x18 ROM_CODE PXE/Boot over IB code. 
0x30 DBG_LOG_MAP FW logger 'index to string' map. The map is in ASCI text. Format is TBD.
                                          PARAM0 in the iTOC specifies the compression method of this sector:
                                          0. Uncompressed
                                          1. Zlib compress2()
                                          2. LZMA
                                          Others - Reserved 
0x31 DBG_FW_INI The Ini file used in the image generation. The PARAM0 applies the same as in  DBG_LOG_MAP section type.
0x32 DBG_FW_PARAMS FW settable parameters. ASCII text. Format is TBD. The PARAM0 applies the same as in  DBG_LOG_MAP section type.
0xff END_MARKER A type of 0xff marks the end of the iTOC entries array. It is recommended to leave the unused part of the iTOC section blank (that is, 0xff in all unused bytes)
All other values Reserved 
 */
	/* 0x0.24 - 0x0.31 */
	u_int8_t type;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - if partition type is code or ini then the load address is in here */
	/* 0x4.0 - 0x4.29 */
	u_int32_t param0;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - When this bit is set, Data within the section is protected by per-line crc. See yu.flash.replacement.crc_en */
	/* 0x4.30 - 0x4.30 */
	u_int8_t cache_line_crc;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - When this bit is set, image is zipped */
	/* 0x4.31 - 0x4.31 */
	u_int8_t zipped_image;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description - if partition type is code then the jump address is in here */
	/* 0x8.0 - 0x8.31 */
	u_int32_t param1;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description -  */
	/* 0x10.0 - 0x10.15 */
	u_int16_t version;
/*---------------- DWORD[5] (Offset 0x14) ----------------*/
	/* Description -  */
	/* 0x14.2 - 0x14.30 */
	u_int32_t flash_addr;
/*---------------- DWORD[6] (Offset 0x18) ----------------*/
	/* Description -  */
	/* 0x18.0 - 0x18.15 */
	u_int16_t section_crc;
/*---------------- DWORD[6] (Offset 0x18) ----------------*/
	/* Description -  */
	/* 0x18.16 - 0x18.18 */
	u_int8_t crc;
/*---------------- DWORD[6] (Offset 0x18) ----------------*/
	/* Description - indicates whether the section referenced by the ITOC is encrypted */
	/* 0x18.31 - 0x18.31 */
	u_int8_t encrypted_section;
/*---------------- DWORD[7] (Offset 0x1c) ----------------*/
	/* Description -  */
	/* 0x1c.0 - 0x1c.15 */
	u_int16_t itoc_entry_crc;
};

/* Description -   */
/* Size in bytes - 32 */
struct image_layout_itoc_header {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - for itoc 49 54 4f 43 
for dtoc 44 54 4f 43 */
	/* 0x0.0 - 0x0.31 */
	u_int32_t signature0;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - 04 08 15 16 */
	/* 0x4.0 - 0x4.31 */
	u_int32_t signature1;
/*---------------- DWORD[2] (Offset 0x8) ----------------*/
	/* Description - 23 42 ca fa */
	/* 0x8.0 - 0x8.31 */
	u_int32_t signature2;
/*---------------- DWORD[3] (Offset 0xc) ----------------*/
	/* Description - ba ca fe 00 */
	/* 0xc.0 - 0xc.31 */
	u_int32_t signature3;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - Current version: 1 */
	/* 0x10.0 - 0x10.7 */
	u_int8_t version;
/*---------------- DWORD[4] (Offset 0x10) ----------------*/
	/* Description - itoc_header: Represents the minimal layout version expected on the flash: 1.
dtoc_header: Represents the layout version depicted by the dTOC: 1. */
	/* 0x10.24 - 0x10.31 */
	u_int8_t flash_layout_version;
/*---------------- DWORD[5] (Offset 0x14) ----------------*/
	/* Description - indicates the number of ITOC entries in the image */
	/* 0x14.0 - 0x14.7 */
	u_int8_t num_of_entries;
/*---------------- DWORD[7] (Offset 0x1c) ----------------*/
	/* Description -  */
	/* 0x1c.0 - 0x1c.15 */
	u_int16_t itoc_entry_crc;
};

/* Description -   */
/* Size in bytes - 2304 */
struct image_layout_public_keys {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x8fc.31 */
	struct image_layout_file_public_keys file_public_keys[8];
};

/* Description -   */
/* Size in bytes - 320 */
struct image_layout_mfg_info {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.24 - 0x10.23 */
	char psid[17];
/*---------------- DWORD[7] (Offset 0x1c) ----------------*/
	/* Description - When this bit is set, the GUIDs should be taken from the device_info node.
When this bit is cleared, the GUIDs should be taken from the mfg_info node. */
	/* 0x1c.0 - 0x1c.0 */
	u_int8_t guids_override_en;
	/* Description - MFG_INFO section minor version */
	/* 0x1c.16 - 0x1c.23 */
	u_int8_t minor_version;
	/* Description - MFG_INFO section major version */
	/* 0x1c.24 - 0x1c.31 */
	u_int8_t major_version;
/*---------------- DWORD[8] (Offset 0x20) ----------------*/
	/* Description -  */
	/* 0x20.0 - 0x5c.31 */
	struct image_layout_guids guids;
};

/* Description -   */
/* Size in bytes - 4352 */
struct image_layout_public_keys_2 {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x10fc.31 */
	struct image_layout_file_public_keys_2 file_public_keys_2[8];
};

/* Description -   */
/* Size in bytes - 4352 */
struct image_layout_public_keys_3 {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x10fc.31 */
	struct image_layout_file_public_keys_3 file_public_keys_3[8];
};

/* Description -   */
/* Size in bytes - 1536 */
struct image_layout_secure_boot_signatures {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - boot signature of data: image signature, hw pointers, boot record, table of content, boot2 */
	/* 0x0.0 - 0x1fc.31 */
	u_int32_t boot_signature[128];
/*---------------- DWORD[128] (Offset 0x200) ----------------*/
	/* Description - fw critical signature of itcos: HW_BOOT_INI, PCIE_PHY_UC_COMMANDS, PCIE_LINK_CODE */
	/* 0x200.0 - 0x3fc.31 */
	u_int32_t critical_signature[128];
/*---------------- DWORD[256] (Offset 0x400) ----------------*/
	/* Description - fw non critical signatures of all other itocs  */
	/* 0x400.0 - 0x5fc.31 */
	u_int32_t non_critical_signature[128];
};

/* Description -  tools speific section */
/* Size in bytes - 64 */
struct image_layout_tools_area {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - tools area minor version */
	/* 0x0.0 - 0x0.7 */
	u_int8_t minor;
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description - tools area major version */
	/* 0x0.8 - 0x0.15 */
	u_int8_t major;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - binary version minor set by image generation tool */
	/* 0x4.0 - 0x4.7 */
	u_int8_t bin_ver_minor;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - binary version major set by image generation tool */
	/* 0x4.8 - 0x4.15 */
	u_int8_t bin_ver_major;
/*---------------- DWORD[1] (Offset 0x4) ----------------*/
	/* Description - log2 image slot size */
	/* 0x4.16 - 0x4.31 */
	u_int16_t log2_img_slot_size;
/*---------------- DWORD[15] (Offset 0x3c) ----------------*/
	/* Description -  */
	/* 0x3c.0 - 0x3c.15 */
	u_int16_t crc;
};

/* Description -   */
/* Size in bytes - 4352 */
union image_layout_image_layout_Nodes {
/*---------------- DWORD[0] (Offset 0x0) ----------------*/
	/* Description -  */
	/* 0x0.0 - 0x23c.31 */
	struct image_layout_image_signature_2 image_signature_2;
	/* Description -  */
	/* 0x0.0 - 0x5fc.31 */
	struct image_layout_secure_boot_signatures secure_boot_signatures;
	/* Description -  */
	/* 0x0.0 - 0x1c.31 */
	struct image_layout_itoc_header itoc_header;
	/* Description -  */
	/* 0x0.0 - 0x1fc.31 */
	struct image_layout_device_info device_info;
	/* Description -  */
	/* 0x0.0 - 0x10fc.31 */
	struct image_layout_public_keys_3 public_keys_3;
	/* Description -  */
	/* 0x0.0 - 0x0.31 */
	struct image_layout_boot_version boot_version;
	/* Description -  */
	/* 0x0.0 - 0x13c.31 */
	struct image_layout_image_signature image_signature;
	/* Description -  */
	/* 0x0.0 - 0x800.31 */
	struct image_layout_hashes_table hashes_table;
	/* Description -  */
	/* 0x0.0 - 0x8fc.31 */
	struct image_layout_public_keys public_keys;
	/* Description -  */
	/* 0x0.0 - 0x3fc.31 */
	struct image_layout_image_info image_info;
	/* Description -  */
	/* 0x0.0 - 0x7c.31 */
	struct image_layout_hw_pointers_carmel hw_pointers_carmel;
	/* Description -  */
	/* 0x0.0 - 0x3c.31 */
	struct image_layout_tools_area tools_area;
	/* Description -  */
	/* 0x0.0 - 0x10fc.31 */
	struct image_layout_public_keys_2 public_keys_2;
	/* Description -  */
	/* 0x0.0 - 0x1c.31 */
	struct image_layout_itoc_entry itoc_entry;
};


/*================= PACK/UNPACK/PRINT FUNCTIONS ======================*/
/* uint64 */
void image_layout_uint64_pack(const u_int64_t *ptr_struct, u_int8_t *ptr_buff);
void image_layout_uint64_unpack(u_int64_t *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_uint64_print(const u_int64_t *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_uint64_size(void);
#define IMAGE_LAYOUT_UINT64_SIZE    (0x8)
void image_layout_uint64_dump(const u_int64_t *ptr_struct, FILE *fd);
/* component_authentication_configuration */
void image_layout_component_authentication_configuration_pack(const struct image_layout_component_authentication_configuration *ptr_struct, u_int8_t *ptr_buff);
void image_layout_component_authentication_configuration_unpack(struct image_layout_component_authentication_configuration *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_component_authentication_configuration_print(const struct image_layout_component_authentication_configuration *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_component_authentication_configuration_size(void);
#define IMAGE_LAYOUT_COMPONENT_AUTHENTICATION_CONFIGURATION_SIZE    (0x4)
void image_layout_component_authentication_configuration_dump(const struct image_layout_component_authentication_configuration *ptr_struct, FILE *fd);
/* htoc_entry */
void image_layout_htoc_entry_pack(const struct image_layout_htoc_entry *ptr_struct, u_int8_t *ptr_buff);
void image_layout_htoc_entry_unpack(struct image_layout_htoc_entry *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_htoc_entry_print(const struct image_layout_htoc_entry *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_htoc_entry_size(void);
#define IMAGE_LAYOUT_HTOC_ENTRY_SIZE    (0x8)
void image_layout_htoc_entry_dump(const struct image_layout_htoc_entry *ptr_struct, FILE *fd);
/* htoc_header */
void image_layout_htoc_header_pack(const struct image_layout_htoc_header *ptr_struct, u_int8_t *ptr_buff);
void image_layout_htoc_header_unpack(struct image_layout_htoc_header *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_htoc_header_print(const struct image_layout_htoc_header *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_htoc_header_size(void);
#define IMAGE_LAYOUT_HTOC_HEADER_SIZE    (0x10)
void image_layout_htoc_header_dump(const struct image_layout_htoc_header *ptr_struct, FILE *fd);
/* module_version */
void image_layout_module_version_pack(const struct image_layout_module_version *ptr_struct, u_int8_t *ptr_buff);
void image_layout_module_version_unpack(struct image_layout_module_version *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_module_version_print(const struct image_layout_module_version *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_module_version_size(void);
#define IMAGE_LAYOUT_MODULE_VERSION_SIZE    (0x4)
void image_layout_module_version_dump(const struct image_layout_module_version *ptr_struct, FILE *fd);
/* reset_capabilities */
void image_layout_reset_capabilities_pack(const struct image_layout_reset_capabilities *ptr_struct, u_int8_t *ptr_buff);
void image_layout_reset_capabilities_unpack(struct image_layout_reset_capabilities *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_reset_capabilities_print(const struct image_layout_reset_capabilities *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_reset_capabilities_size(void);
#define IMAGE_LAYOUT_RESET_CAPABILITIES_SIZE    (0x4)
void image_layout_reset_capabilities_dump(const struct image_layout_reset_capabilities *ptr_struct, FILE *fd);
/* reset_version */
void image_layout_reset_version_pack(const struct image_layout_reset_version *ptr_struct, u_int8_t *ptr_buff);
void image_layout_reset_version_unpack(struct image_layout_reset_version *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_reset_version_print(const struct image_layout_reset_version *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_reset_version_size(void);
#define IMAGE_LAYOUT_RESET_VERSION_SIZE    (0x4)
void image_layout_reset_version_dump(const struct image_layout_reset_version *ptr_struct, FILE *fd);
/* uid_entry */
void image_layout_uid_entry_pack(const struct image_layout_uid_entry *ptr_struct, u_int8_t *ptr_buff);
void image_layout_uid_entry_unpack(struct image_layout_uid_entry *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_uid_entry_print(const struct image_layout_uid_entry *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_uid_entry_size(void);
#define IMAGE_LAYOUT_UID_ENTRY_SIZE    (0x10)
void image_layout_uid_entry_dump(const struct image_layout_uid_entry *ptr_struct, FILE *fd);
/* FW_VERSION */
void image_layout_FW_VERSION_pack(const struct image_layout_FW_VERSION *ptr_struct, u_int8_t *ptr_buff);
void image_layout_FW_VERSION_unpack(struct image_layout_FW_VERSION *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_FW_VERSION_print(const struct image_layout_FW_VERSION *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_FW_VERSION_size(void);
#define IMAGE_LAYOUT_FW_VERSION_SIZE    (0x10)
void image_layout_FW_VERSION_dump(const struct image_layout_FW_VERSION *ptr_struct, FILE *fd);
/* TRIPPLE_VERSION */
void image_layout_TRIPPLE_VERSION_pack(const struct image_layout_TRIPPLE_VERSION *ptr_struct, u_int8_t *ptr_buff);
void image_layout_TRIPPLE_VERSION_unpack(struct image_layout_TRIPPLE_VERSION *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_TRIPPLE_VERSION_print(const struct image_layout_TRIPPLE_VERSION *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_TRIPPLE_VERSION_size(void);
#define IMAGE_LAYOUT_TRIPPLE_VERSION_SIZE    (0x8)
void image_layout_TRIPPLE_VERSION_dump(const struct image_layout_TRIPPLE_VERSION *ptr_struct, FILE *fd);
/* file_public_keys */
void image_layout_file_public_keys_pack(const struct image_layout_file_public_keys *ptr_struct, u_int8_t *ptr_buff);
void image_layout_file_public_keys_unpack(struct image_layout_file_public_keys *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_file_public_keys_print(const struct image_layout_file_public_keys *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_file_public_keys_size(void);
#define IMAGE_LAYOUT_FILE_PUBLIC_KEYS_SIZE    (0x120)
void image_layout_file_public_keys_dump(const struct image_layout_file_public_keys *ptr_struct, FILE *fd);
/* file_public_keys_2 */
void image_layout_file_public_keys_2_pack(const struct image_layout_file_public_keys_2 *ptr_struct, u_int8_t *ptr_buff);
void image_layout_file_public_keys_2_unpack(struct image_layout_file_public_keys_2 *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_file_public_keys_2_print(const struct image_layout_file_public_keys_2 *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_file_public_keys_2_size(void);
#define IMAGE_LAYOUT_FILE_PUBLIC_KEYS_2_SIZE    (0x220)
void image_layout_file_public_keys_2_dump(const struct image_layout_file_public_keys_2 *ptr_struct, FILE *fd);
/* file_public_keys_3 */
void image_layout_file_public_keys_3_pack(const struct image_layout_file_public_keys_3 *ptr_struct, u_int8_t *ptr_buff);
void image_layout_file_public_keys_3_unpack(struct image_layout_file_public_keys_3 *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_file_public_keys_3_print(const struct image_layout_file_public_keys_3 *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_file_public_keys_3_size(void);
#define IMAGE_LAYOUT_FILE_PUBLIC_KEYS_3_SIZE    (0x220)
void image_layout_file_public_keys_3_dump(const struct image_layout_file_public_keys_3 *ptr_struct, FILE *fd);
/* guids */
void image_layout_guids_pack(const struct image_layout_guids *ptr_struct, u_int8_t *ptr_buff);
void image_layout_guids_unpack(struct image_layout_guids *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_guids_print(const struct image_layout_guids *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_guids_size(void);
#define IMAGE_LAYOUT_GUIDS_SIZE    (0x40)
void image_layout_guids_dump(const struct image_layout_guids *ptr_struct, FILE *fd);
/* hashes_table_header */
void image_layout_hashes_table_header_pack(const struct image_layout_hashes_table_header *ptr_struct, u_int8_t *ptr_buff);
void image_layout_hashes_table_header_unpack(struct image_layout_hashes_table_header *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_hashes_table_header_print(const struct image_layout_hashes_table_header *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_hashes_table_header_size(void);
#define IMAGE_LAYOUT_HASHES_TABLE_HEADER_SIZE    (0xc)
void image_layout_hashes_table_header_dump(const struct image_layout_hashes_table_header *ptr_struct, FILE *fd);
/* htoc */
void image_layout_htoc_pack(const struct image_layout_htoc *ptr_struct, u_int8_t *ptr_buff);
void image_layout_htoc_unpack(struct image_layout_htoc *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_htoc_print(const struct image_layout_htoc *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_htoc_size(void);
#define IMAGE_LAYOUT_HTOC_SIZE    (0xf0)
void image_layout_htoc_dump(const struct image_layout_htoc *ptr_struct, FILE *fd);
/* htoc_hash */
void image_layout_htoc_hash_pack(const struct image_layout_htoc_hash *ptr_struct, u_int8_t *ptr_buff);
void image_layout_htoc_hash_unpack(struct image_layout_htoc_hash *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_htoc_hash_print(const struct image_layout_htoc_hash *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_htoc_hash_size(void);
#define IMAGE_LAYOUT_HTOC_HASH_SIZE    (0x40)
void image_layout_htoc_hash_dump(const struct image_layout_htoc_hash *ptr_struct, FILE *fd);
/* hw_pointer_entry */
void image_layout_hw_pointer_entry_pack(const struct image_layout_hw_pointer_entry *ptr_struct, u_int8_t *ptr_buff);
void image_layout_hw_pointer_entry_unpack(struct image_layout_hw_pointer_entry *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_hw_pointer_entry_print(const struct image_layout_hw_pointer_entry *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_hw_pointer_entry_size(void);
#define IMAGE_LAYOUT_HW_POINTER_ENTRY_SIZE    (0x8)
void image_layout_hw_pointer_entry_dump(const struct image_layout_hw_pointer_entry *ptr_struct, FILE *fd);
/* image_size */
void image_layout_image_size_pack(const struct image_layout_image_size *ptr_struct, u_int8_t *ptr_buff);
void image_layout_image_size_unpack(struct image_layout_image_size *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_image_size_print(const struct image_layout_image_size *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_image_size_size(void);
#define IMAGE_LAYOUT_IMAGE_SIZE_SIZE    (0x8)
void image_layout_image_size_dump(const struct image_layout_image_size *ptr_struct, FILE *fd);
/* module_versions */
void image_layout_module_versions_pack(const struct image_layout_module_versions *ptr_struct, u_int8_t *ptr_buff);
void image_layout_module_versions_unpack(struct image_layout_module_versions *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_module_versions_print(const struct image_layout_module_versions *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_module_versions_size(void);
#define IMAGE_LAYOUT_MODULE_VERSIONS_SIZE    (0x40)
void image_layout_module_versions_dump(const struct image_layout_module_versions *ptr_struct, FILE *fd);
/* operation_key */
void image_layout_operation_key_pack(const struct image_layout_operation_key *ptr_struct, u_int8_t *ptr_buff);
void image_layout_operation_key_unpack(struct image_layout_operation_key *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_operation_key_print(const struct image_layout_operation_key *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_operation_key_size(void);
#define IMAGE_LAYOUT_OPERATION_KEY_SIZE    (0x10)
void image_layout_operation_key_dump(const struct image_layout_operation_key *ptr_struct, FILE *fd);
/* version_vector */
void image_layout_version_vector_pack(const struct image_layout_version_vector *ptr_struct, u_int8_t *ptr_buff);
void image_layout_version_vector_unpack(struct image_layout_version_vector *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_version_vector_print(const struct image_layout_version_vector *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_version_vector_size(void);
#define IMAGE_LAYOUT_VERSION_VECTOR_SIZE    (0x30)
void image_layout_version_vector_dump(const struct image_layout_version_vector *ptr_struct, FILE *fd);
/* boot_version */
void image_layout_boot_version_pack(const struct image_layout_boot_version *ptr_struct, u_int8_t *ptr_buff);
void image_layout_boot_version_unpack(struct image_layout_boot_version *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_boot_version_print(const struct image_layout_boot_version *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_boot_version_size(void);
#define IMAGE_LAYOUT_BOOT_VERSION_SIZE    (0x4)
void image_layout_boot_version_dump(const struct image_layout_boot_version *ptr_struct, FILE *fd);
/* device_info */
void image_layout_device_info_pack(const struct image_layout_device_info *ptr_struct, u_int8_t *ptr_buff);
void image_layout_device_info_unpack(struct image_layout_device_info *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_device_info_print(const struct image_layout_device_info *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_device_info_size(void);
#define IMAGE_LAYOUT_DEVICE_INFO_SIZE    (0x200)
void image_layout_device_info_dump(const struct image_layout_device_info *ptr_struct, FILE *fd);
/* hashes_table */
void image_layout_hashes_table_pack(const struct image_layout_hashes_table *ptr_struct, u_int8_t *ptr_buff);
void image_layout_hashes_table_unpack(struct image_layout_hashes_table *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_hashes_table_print(const struct image_layout_hashes_table *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_hashes_table_size(void);
#define IMAGE_LAYOUT_HASHES_TABLE_SIZE    (0x804)
void image_layout_hashes_table_dump(const struct image_layout_hashes_table *ptr_struct, FILE *fd);
/* hw_pointers_carmel */
void image_layout_hw_pointers_carmel_pack(const struct image_layout_hw_pointers_carmel *ptr_struct, u_int8_t *ptr_buff);
void image_layout_hw_pointers_carmel_unpack(struct image_layout_hw_pointers_carmel *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_hw_pointers_carmel_print(const struct image_layout_hw_pointers_carmel *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_hw_pointers_carmel_size(void);
#define IMAGE_LAYOUT_HW_POINTERS_CARMEL_SIZE    (0x80)
void image_layout_hw_pointers_carmel_dump(const struct image_layout_hw_pointers_carmel *ptr_struct, FILE *fd);
/* image_info */
void image_layout_image_info_pack(const struct image_layout_image_info *ptr_struct, u_int8_t *ptr_buff);
void image_layout_image_info_unpack(struct image_layout_image_info *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_image_info_print(const struct image_layout_image_info *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_image_info_size(void);
#define IMAGE_LAYOUT_IMAGE_INFO_SIZE    (0x400)
void image_layout_image_info_dump(const struct image_layout_image_info *ptr_struct, FILE *fd);
/* image_signature */
void image_layout_image_signature_pack(const struct image_layout_image_signature *ptr_struct, u_int8_t *ptr_buff);
void image_layout_image_signature_unpack(struct image_layout_image_signature *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_image_signature_print(const struct image_layout_image_signature *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_image_signature_size(void);
#define IMAGE_LAYOUT_IMAGE_SIGNATURE_SIZE    (0x140)
void image_layout_image_signature_dump(const struct image_layout_image_signature *ptr_struct, FILE *fd);
/* image_signature_2 */
void image_layout_image_signature_2_pack(const struct image_layout_image_signature_2 *ptr_struct, u_int8_t *ptr_buff);
void image_layout_image_signature_2_unpack(struct image_layout_image_signature_2 *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_image_signature_2_print(const struct image_layout_image_signature_2 *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_image_signature_2_size(void);
#define IMAGE_LAYOUT_IMAGE_SIGNATURE_2_SIZE    (0x240)
void image_layout_image_signature_2_dump(const struct image_layout_image_signature_2 *ptr_struct, FILE *fd);
/* itoc_entry */
void image_layout_itoc_entry_pack(const struct image_layout_itoc_entry *ptr_struct, u_int8_t *ptr_buff);
void image_layout_itoc_entry_unpack(struct image_layout_itoc_entry *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_itoc_entry_print(const struct image_layout_itoc_entry *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_itoc_entry_size(void);
#define IMAGE_LAYOUT_ITOC_ENTRY_SIZE    (0x20)
void image_layout_itoc_entry_dump(const struct image_layout_itoc_entry *ptr_struct, FILE *fd);
/* itoc_header */
void image_layout_itoc_header_pack(const struct image_layout_itoc_header *ptr_struct, u_int8_t *ptr_buff);
void image_layout_itoc_header_unpack(struct image_layout_itoc_header *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_itoc_header_print(const struct image_layout_itoc_header *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_itoc_header_size(void);
#define IMAGE_LAYOUT_ITOC_HEADER_SIZE    (0x20)
void image_layout_itoc_header_dump(const struct image_layout_itoc_header *ptr_struct, FILE *fd);
/* public_keys */
void image_layout_public_keys_pack(const struct image_layout_public_keys *ptr_struct, u_int8_t *ptr_buff);
void image_layout_public_keys_unpack(struct image_layout_public_keys *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_public_keys_print(const struct image_layout_public_keys *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_public_keys_size(void);
#define IMAGE_LAYOUT_PUBLIC_KEYS_SIZE    (0x900)
void image_layout_public_keys_dump(const struct image_layout_public_keys *ptr_struct, FILE *fd);
/* mfg_info */
void image_layout_mfg_info_pack(const struct image_layout_mfg_info *ptr_struct, u_int8_t *ptr_buff);
void image_layout_mfg_info_unpack(struct image_layout_mfg_info *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_mfg_info_print(const struct image_layout_mfg_info *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_mfg_info_size(void);
#define IMAGE_LAYOUT_MFG_INFO_SIZE    (0x140)
void image_layout_mfg_info_dump(const struct image_layout_mfg_info *ptr_struct, FILE *fd);
/* public_keys_2 */
void image_layout_public_keys_2_pack(const struct image_layout_public_keys_2 *ptr_struct, u_int8_t *ptr_buff);
void image_layout_public_keys_2_unpack(struct image_layout_public_keys_2 *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_public_keys_2_print(const struct image_layout_public_keys_2 *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_public_keys_2_size(void);
#define IMAGE_LAYOUT_PUBLIC_KEYS_2_SIZE    (0x1100)
void image_layout_public_keys_2_dump(const struct image_layout_public_keys_2 *ptr_struct, FILE *fd);
/* public_keys_3 */
void image_layout_public_keys_3_pack(const struct image_layout_public_keys_3 *ptr_struct, u_int8_t *ptr_buff);
void image_layout_public_keys_3_unpack(struct image_layout_public_keys_3 *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_public_keys_3_print(const struct image_layout_public_keys_3 *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_public_keys_3_size(void);
#define IMAGE_LAYOUT_PUBLIC_KEYS_3_SIZE    (0x1100)
void image_layout_public_keys_3_dump(const struct image_layout_public_keys_3 *ptr_struct, FILE *fd);
/* secure_boot_signatures */
void image_layout_secure_boot_signatures_pack(const struct image_layout_secure_boot_signatures *ptr_struct, u_int8_t *ptr_buff);
void image_layout_secure_boot_signatures_unpack(struct image_layout_secure_boot_signatures *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_secure_boot_signatures_print(const struct image_layout_secure_boot_signatures *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_secure_boot_signatures_size(void);
#define IMAGE_LAYOUT_SECURE_BOOT_SIGNATURES_SIZE    (0x600)
void image_layout_secure_boot_signatures_dump(const struct image_layout_secure_boot_signatures *ptr_struct, FILE *fd);
/* tools_area */
void image_layout_tools_area_pack(const struct image_layout_tools_area *ptr_struct, u_int8_t *ptr_buff);
void image_layout_tools_area_unpack(struct image_layout_tools_area *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_tools_area_print(const struct image_layout_tools_area *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_tools_area_size(void);
#define IMAGE_LAYOUT_TOOLS_AREA_SIZE    (0x40)
void image_layout_tools_area_dump(const struct image_layout_tools_area *ptr_struct, FILE *fd);
/* image_layout_Nodes */
void image_layout_image_layout_Nodes_pack(const union image_layout_image_layout_Nodes *ptr_struct, u_int8_t *ptr_buff);
void image_layout_image_layout_Nodes_unpack(union image_layout_image_layout_Nodes *ptr_struct, const u_int8_t *ptr_buff);
void image_layout_image_layout_Nodes_print(const union image_layout_image_layout_Nodes *ptr_struct, FILE *fd, int indent_level);
unsigned int image_layout_image_layout_Nodes_size(void);
#define IMAGE_LAYOUT_IMAGE_LAYOUT_NODES_SIZE    (0x1100)
void image_layout_image_layout_Nodes_dump(const union image_layout_image_layout_Nodes *ptr_struct, FILE *fd);


#ifdef __cplusplus
}
#endif

#endif // IMAGE_LAYOUT_LAYOUTS_H