Decompression protocol

This commit is contained in:
Jozef Nagy 2024-03-31 23:52:35 +02:00
parent f98a241021
commit d992cce495
No known key found for this signature in database
GPG key ID: 5B49DC29F09685D6
2 changed files with 40 additions and 0 deletions

1
efi.h
View file

@ -21,6 +21,7 @@ typedef struct {
#include "protocols/boot_manager_policy.h"
#include "protocols/console_support.h"
#include "protocols/debugger.h"
#include "protocols/decompress.h"
#include "protocols/device_path.h"
#include "protocols/loaded_image.h"
#include "protocols/media_access.h"

39
protocols/decompress.h Normal file
View file

@ -0,0 +1,39 @@
#ifndef EFI_PROTOCOLS_DECOMPRESS_H
#define EFI_PROTOCOLS_DECOMPRESS_H
////
// Decompress Protocol
///
#define EFI_DECOMPRESS_PROTOCOL_GUID {0xd8117cfe,0x94a6,0x11d4, {0x9a,0x3a,0x00,0x90,0x27,0x3f,0xc1,0x4d}}
typedef struct _EFI_DECOMPRESS_PROTOCOL EFI_DECOMPRESS_PROTOCOL;
typedef
EFI_STATUS
(EFIAPI *EFI_DECOMPRESS_GET_INFO)(
IN EFI_DECOMPRESS_PROTOCOL *This,
IN VOID *Source,
IN UINT32 SourceSize,
OUT UINT32 *DestinationSize,
OUT UINT32 *ScratchSize
);
typedef
EFI_STATUS
(EFIAPI *EFI_DECOMPRESS_DECOMPRESS)(
IN EFI_DECOMPRESS_PROTOCOL *This,
IN VOID *Source,
IN UINT32 SourceSize,
IN OUT VOID *Destination,
IN UINT32 DestinationSize,
IN OUT VOID *Scratch,
IN UINT32 ScratchSize
);
typedef struct _EFI_DECOMPRESS_PROTOCOL {
EFI_DECOMPRESS_GET_INFO GetInfo;
EFI_DECOMPRESS_DECOMPRESS Decompress;
} EFI_DECOMPRESS_PROTOCOL;
#endif /* EFI_PROTOCOLS_DECOMPRESS_H */