]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Tools/Source/Common/Decompress.h
EdkCompatibilityPkg: Fix typos in comments
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / Common / Decompress.h
CommitLineData
3eb9473e 1/*++\r
2\r
4b1e1121
HT
3Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13\r
14 Decompress.h\r
15\r
16Abstract:\r
17\r
18 Header file for decompression routine.\r
19 Providing both EFI and Tiano decompress algorithms.\r
20 \r
21--*/\r
22\r
23#ifndef _DECOMPRESS_H_\r
24#define _DECOMPRESS_H_\r
25\r
26EFI_STATUS\r
27EFIAPI\r
28EfiGetInfo (\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_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
4fc0be87 50 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
3eb9473e 51 EFI_INVALID_PARAMETER - The source data is corrupted\r
52\r
53--*/\r
54;\r
55\r
56EFI_STATUS\r
57EFIAPI\r
58EfiDecompress (\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_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
90EFI_STATUS\r
91EFIAPI\r
92TianoGetInfo (\r
93 IN VOID *Source,\r
94 IN UINT32 SrcSize,\r
95 OUT UINT32 *DstSize,\r
96 OUT UINT32 *ScratchSize\r
97 )\r
98/*++\r
99\r
100Routine Description:\r
101\r
102 The implementation is same as that of EFI_TIANO_DECOMPRESS_PROTOCOL.GetInfo().\r
103\r
104Arguments:\r
105\r
106 This - The protocol instance pointer\r
107 Source - The source buffer containing the compressed data.\r
108 SrcSize - The size of source buffer\r
109 DstSize - The size of destination buffer.\r
110 ScratchSize - The size of scratch buffer.\r
111\r
112Returns:\r
113\r
4fc0be87 114 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
3eb9473e 115 EFI_INVALID_PARAMETER - The source data is corrupted\r
116\r
117--*/\r
118;\r
119\r
120EFI_STATUS\r
121EFIAPI\r
122TianoDecompress (\r
123 IN VOID *Source,\r
124 IN UINT32 SrcSize,\r
125 IN OUT VOID *Destination,\r
126 IN UINT32 DstSize,\r
127 IN OUT VOID *Scratch,\r
128 IN UINT32 ScratchSize\r
129 )\r
130/*++\r
131\r
132Routine Description:\r
133\r
134 The implementation is same as that of EFI_TIANO_DECOMPRESS_PROTOCOL.Decompress().\r
135\r
136Arguments:\r
137\r
138 This - The protocol instance pointer\r
139 Source - The source buffer containing the compressed data.\r
140 SrcSize - The size of source buffer\r
141 Destination - The destination buffer to store the decompressed data\r
142 DstSize - The size of destination buffer.\r
143 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
144 ScratchSize - The size of scratch buffer.\r
145\r
146Returns:\r
147\r
148 EFI_SUCCESS - Decompression is successfull\r
149 EFI_INVALID_PARAMETER - The source data is corrupted\r
150\r
151--*/\r
152;\r
153\r
154typedef\r
155EFI_STATUS\r
156(*GETINFO_FUNCTION) (\r
157 IN VOID *Source,\r
158 IN UINT32 SrcSize,\r
159 OUT UINT32 *DstSize,\r
160 OUT UINT32 *ScratchSize\r
161 );\r
162\r
163typedef\r
164EFI_STATUS\r
165(*DECOMPRESS_FUNCTION) (\r
166 IN VOID *Source,\r
167 IN UINT32 SrcSize,\r
168 IN OUT VOID *Destination,\r
169 IN UINT32 DstSize,\r
170 IN OUT VOID *Scratch,\r
171 IN UINT32 ScratchSize\r
172 );\r
173\r
174#endif\r