1 /**@file 2 Definitions for the FitGen utility. 3 4 Copyright (c) 2010-2020, Intel Corporation. All rights reserved.<BR> 5 SPDX-License-Identifier: BSD-2-Clause-Patent 6 7 **/ 8 9 #ifndef _FIT_GEN_H 10 #define _FIT_GEN_H 11 12 #include <stdio.h> 13 #include <stdlib.h> 14 #define PI_SPECIFICATION_VERSION 0x00010000 15 #define EFI_FVH_PI_REVISION EFI_FVH_REVISION 16 #include <Common/UefiBaseTypes.h> 17 #include <Common/PiFirmwareFile.h> 18 #include <Common/PiFirmwareVolume.h> 19 #include <Guid/PiFirmwareFileSystem.h> 20 #include "EfiUtilityMsgs.c" 21 #include "CommonLib.h" 22 #include "ParseInf.h" 23 #include "FvLib.h" 24 25 // 26 // Utility Name 27 // 28 #define UTILITY_NAME "FitGen" 29 30 // 31 // Utility version information 32 // 33 #define UTILITY_MAJOR_VERSION 0 34 #define UTILITY_MINOR_VERSION 64 35 #define UTILITY_DATE __DATE__ 36 37 // 38 // The minimum number of arguments accepted from the command line. 39 // 40 #define MIN_VIEW_ARGS 3 41 #define MIN_ARGS 4 42 #define BUF_SIZE (8 * 1024) 43 44 #define GETOCCUPIEDSIZE(ActualSize, Alignment) \ 45 (ActualSize) + (((Alignment) - ((ActualSize) & ((Alignment) - 1))) & ((Alignment) - 1)) 46 ; 47 48 #define ROUNDUP(Size, Alignment) (((Size) + (Alignment) - 1) / (Alignment) * (Alignment)) 49 50 #endif 51