3 Copyright (c) 2006, Intel Corporation
\r
4 All rights reserved. This program and the accompanying materials
\r
5 are licensed and made available under the terms and conditions of the BSD License
\r
6 which accompanies this distribution. The full text of the license may be found at
\r
7 http://opensource.org/licenses/bsd-license.php
\r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
\r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
\r
18 Header file for compression routine
\r
22 #ifndef _EFI_DECOMPRESS_H
\r
23 #define _EFI_DECOMPRESS_H
\r
25 #include <Common/UefiBaseTypes.h>
\r
31 OUT UINT32 *DstSize,
\r
32 OUT UINT32 *ScratchSize
\r
36 Routine Description:
\r
38 The implementation Efi Decompress GetInfo().
\r
42 Source - The source buffer containing the compressed data.
\r
43 SrcSize - The size of source buffer
\r
44 DstSize - The size of destination buffer.
\r
45 ScratchSize - The size of scratch buffer.
\r
49 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
\r
50 EFI_INVALID_PARAMETER - The source data is corrupted
\r
58 IN OUT VOID *Destination,
\r
60 IN OUT VOID *Scratch,
\r
61 IN UINT32 ScratchSize
\r
65 Routine Description:
\r
67 The implementation of Efi Decompress().
\r
71 Source - The source buffer containing the compressed data.
\r
72 SrcSize - The size of source buffer
\r
73 Destination - The destination buffer to store the decompressed data
\r
74 DstSize - The size of destination buffer.
\r
75 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
\r
76 ScratchSize - The size of scratch buffer.
\r
80 EFI_SUCCESS - Decompression is successfull
\r
81 EFI_INVALID_PARAMETER - The source data is corrupted
\r
89 OUT UINT32 *DstSize,
\r
90 OUT UINT32 *ScratchSize
\r
94 Routine Description:
\r
96 The implementation Tiano Decompress GetInfo().
\r
100 Source - The source buffer containing the compressed data.
\r
101 SrcSize - The size of source buffer
\r
102 DstSize - The size of destination buffer.
\r
103 ScratchSize - The size of scratch buffer.
\r
107 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
\r
108 EFI_INVALID_PARAMETER - The source data is corrupted
\r
116 IN OUT VOID *Destination,
\r
118 IN OUT VOID *Scratch,
\r
119 IN UINT32 ScratchSize
\r
123 Routine Description:
\r
125 The implementation of Tiano Decompress().
\r
129 Source - The source buffer containing the compressed data.
\r
130 SrcSize - The size of source buffer
\r
131 Destination - The destination buffer to store the decompressed data
\r
132 DstSize - The size of destination buffer.
\r
133 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
\r
134 ScratchSize - The size of scratch buffer.
\r
138 EFI_SUCCESS - Decompression is successfull
\r
139 EFI_INVALID_PARAMETER - The source data is corrupted
\r
145 (*GETINFO_FUNCTION) (
\r
148 OUT UINT32 *DstSize,
\r
149 OUT UINT32 *ScratchSize
\r
154 (*DECOMPRESS_FUNCTION) (
\r
157 IN OUT VOID *Destination,
\r
159 IN OUT VOID *Scratch,
\r
160 IN UINT32 ScratchSize
\r