]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliDecompressLibInternal.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdeModulePkg / Library / BrotliCustomDecompressLib / BrotliDecompressLibInternal.h
1 /** @file
2 BROTLI UEFI header file
3
4 Allows BROTLI code to build under UEFI (edk2) build environment
5
6 Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 **/
10
11 #ifndef __BROTLI_DECOMPRESS_INTERNAL_H__
12 #define __BROTLI_DECOMPRESS_INTERNAL_H__
13
14 #include <PiPei.h>
15 #include <Library/ExtractGuidedSectionLib.h>
16 #include <brotli/c/include/brotli/types.h>
17 #include <brotli/c/include/brotli/decode.h>
18
19 typedef struct {
20 VOID *Buff;
21 UINTN BuffSize;
22 } BROTLI_BUFF;
23
24 #define FILE_BUFFER_SIZE 65536
25 #define BROTLI_INFO_SIZE 8
26 #define BROTLI_DECODE_MAX 8
27 #define BROTLI_SCRATCH_MAX 16
28
29 EFI_STATUS
30 EFIAPI
31 BrotliUefiDecompressGetInfo (
32 IN CONST VOID *Source,
33 IN UINT32 SourceSize,
34 OUT UINT32 *DestinationSize,
35 OUT UINT32 *ScratchSize
36 );
37
38 EFI_STATUS
39 EFIAPI
40 BrotliUefiDecompress (
41 IN CONST VOID *Source,
42 IN UINTN SourceSize,
43 IN OUT VOID *Destination,
44 IN OUT VOID *Scratch
45 );
46
47 #endif