]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - DuetPkg/EfiLdr/TianoDecompress.h
MdeModulePkg BrotliLib: Fix the regression logic issue in loop
[mirror_edk2.git] / DuetPkg / EfiLdr / TianoDecompress.h
... / ...
CommitLineData
1/** @file\r
2 Internal include file for Base UEFI Decompress Library.\r
3\r
4 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13 Module Name: BaseUefiCustomDecompressLibInternals.h\r
14\r
15**/\r
16\r
17#ifndef __BASE_UEFI_TIANO_CUSTOM_DECOMPRESS_LIB_INTERNALS_H__\r
18#define __BASE_UEFI_TIANO_CUSTOM_DECOMPRESS_LIB_INTERNALS_H__\r
19\r
20#include <PiPei.h>\r
21\r
22#include <Library/UefiDecompressLib.h>\r
23#include <Library/DebugLib.h>\r
24#include <Library/BaseMemoryLib.h>\r
25\r
26EFI_STATUS\r
27EFIAPI\r
28TianoGetInfo (\r
29 IN VOID *Source,\r
30 IN UINT32 SrcSize,\r
31 OUT UINT32 *DstSize,\r
32 OUT UINT32 *ScratchSize\r
33 )\r
34/*++\r
35\r
36Routine Description:\r
37\r
38 The implementation is same as that of EFI_TIANO_DECOMPRESS_PROTOCOL.GetInfo().\r
39\r
40Arguments:\r
41\r
42 This - The protocol instance pointer\r
43 Source - The source buffer containing the compressed data.\r
44 SrcSize - The size of source buffer\r
45 DstSize - The size of destination buffer.\r
46 ScratchSize - The size of scratch buffer.\r
47\r
48Returns:\r
49\r
50 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
51 EFI_INVALID_PARAMETER - The source data is corrupted\r
52\r
53--*/\r
54;\r
55\r
56EFI_STATUS\r
57EFIAPI\r
58TianoDecompress (\r
59 IN VOID *Source,\r
60 IN UINT32 SrcSize,\r
61 IN OUT VOID *Destination,\r
62 IN UINT32 DstSize,\r
63 IN OUT VOID *Scratch,\r
64 IN UINT32 ScratchSize\r
65 )\r
66/*++\r
67\r
68Routine Description:\r
69\r
70 The implementation is same as that of EFI_TIANO_DECOMPRESS_PROTOCOL.Decompress().\r
71\r
72Arguments:\r
73\r
74 This - The protocol instance pointer\r
75 Source - The source buffer containing the compressed data.\r
76 SrcSize - The size of source buffer\r
77 Destination - The destination buffer to store the decompressed data\r
78 DstSize - The size of destination buffer.\r
79 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
80 ScratchSize - The size of scratch buffer.\r
81\r
82Returns:\r
83\r
84 EFI_SUCCESS - Decompression is successfull\r
85 EFI_INVALID_PARAMETER - The source data is corrupted\r
86\r
87--*/\r
88;\r
89\r
90#endif\r