mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-14 07:04:49 -04:00
UEFIPatch 0.2.0 / UEFITool 0.18.0
- updated EFI11/Tiano compression and decompression code to UDK2014 versions - UEFIPatch rewritten to support offset-based patches and patterns with placeholder symbols
This commit is contained in:
parent
a3854ad059
commit
c23aef47be
11 changed files with 2227 additions and 2429 deletions
24
basetypes.h
24
basetypes.h
|
@ -45,8 +45,6 @@ typedef uint16_t CHAR16;
|
|||
#define NULL ((VOID *) 0)
|
||||
#endif
|
||||
|
||||
#define EFIAPI
|
||||
|
||||
#define ERR_SUCCESS 0
|
||||
#define ERR_INVALID_PARAMETER 1
|
||||
#define ERR_BUFFER_TOO_SMALL 2
|
||||
|
@ -85,9 +83,23 @@ typedef uint16_t CHAR16;
|
|||
#define ERR_COMPLEX_BLOCK_MAP 35
|
||||
#define ERR_DIR_ALREADY_EXIST 36
|
||||
#define ERR_DIR_CREATE 37
|
||||
#define ERR_UNKNOWN_PATCH_MODE 38
|
||||
#define ERR_UNKNOWN_PATCH_TYPE 38
|
||||
#define ERR_PATCH_OFFSET_OUT_OF_BOUNDS 39
|
||||
#define ERR_INVALID_SYMBOL 40
|
||||
#define ERR_NOTHING_TO_PATCH 41
|
||||
#define ERR_NOT_IMPLEMENTED 0xFF
|
||||
|
||||
// UDK porting definitions
|
||||
#define IN
|
||||
#define OUT
|
||||
#define EFIAPI
|
||||
#define EFI_STATUS UINT8
|
||||
#define EFI_SUCCESS ERR_SUCCESS
|
||||
#define EFI_INVALID_PARAMETER ERR_INVALID_PARAMETER
|
||||
#define EFI_OUT_OF_RESOURCES ERR_OUT_OF_RESOURCES
|
||||
#define EFI_BUFFER_TOO_SMALL ERR_BUFFER_TOO_SMALL
|
||||
#define EFI_ERROR(X) X
|
||||
|
||||
// Compression algorithms
|
||||
#define COMPRESSION_ALGORITHM_UNKNOWN 0
|
||||
#define COMPRESSION_ALGORITHM_NONE 1
|
||||
|
@ -114,6 +126,10 @@ typedef uint16_t CHAR16;
|
|||
#define PATCH_MODE_HEADER 0
|
||||
#define PATCH_MODE_BODY 1
|
||||
|
||||
// Patch types
|
||||
#define PATCH_TYPE_OFFSET 'O'
|
||||
#define PATCH_TYPE_PATTERN 'P'
|
||||
|
||||
// Erase polarity types
|
||||
#define ERASE_POLARITY_FALSE 0
|
||||
#define ERASE_POLARITY_TRUE 1
|
||||
|
@ -124,8 +140,6 @@ typedef uint16_t CHAR16;
|
|||
#define SEARCH_MODE_BODY 2
|
||||
#define SEARCH_MODE_ALL 3
|
||||
|
||||
|
||||
|
||||
// EFI GUID
|
||||
typedef struct {
|
||||
UINT8 Data[16];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue