]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/TianoTools/CustomizedCompress/CustomizedCompress.c
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / TianoTools / CustomizedCompress / CustomizedCompress.c
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
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 CustomizedCompress.c\r
15\r
16Abstract:\r
17\r
18 Header file for Customized compression routine\r
19 \r
20--*/\r
21\r
ce53a8c3 22#include <Common/UefiBaseTypes.h>\r
878ddf1f 23\r
24EFI_STATUS\r
25SetCustomizedCompressionType (\r
26 IN CHAR8 *Type\r
27 )\r
28/*++\r
29\r
30Routine Description:\r
31\r
32The implementation of Customized SetCompressionType().\r
33\r
34Arguments:\r
35 Type - The type if compression.\r
36 \r
37Returns:\r
38 \r
39 EFI_SUCCESS - The type has been set.\r
40 EFI_UNSUPPORTED - This type is unsupported.\r
41\r
42 \r
43--*/\r
44{\r
45 return EFI_UNSUPPORTED;\r
46}\r
47\r
48EFI_STATUS\r
49CustomizedGetInfo (\r
50 IN VOID *Source,\r
51 IN UINT32 SrcSize,\r
52 OUT UINT32 *DstSize,\r
53 OUT UINT32 *ScratchSize\r
54 )\r
55/*++\r
56\r
57Routine Description:\r
58\r
59The implementation of Customized GetInfo().\r
60\r
61Arguments:\r
62 Source - The source buffer containing the compressed data.\r
63 SrcSize - The size of source buffer\r
64 DstSize - The size of destination buffer.\r
65 ScratchSize - The size of scratch buffer.\r
66 \r
67Returns:\r
68 \r
69 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
70 EFI_INVALID_PARAMETER - The source data is corrupted\r
71 EFI_UNSUPPORTED - The operation is unsupported.\r
72\r
73 \r
74--*/\r
75{\r
76 return EFI_UNSUPPORTED;\r
77}\r
78\r
79EFI_STATUS\r
80CustomizedDecompress (\r
81 IN VOID *Source,\r
82 IN UINT32 SrcSize,\r
83 IN OUT VOID *Destination,\r
84 IN UINT32 DstSize,\r
85 IN OUT VOID *Scratch,\r
86 IN UINT32 ScratchSize\r
87 )\r
88/*++\r
89\r
90Routine Description:\r
91\r
92 The implementation of Customized Decompress().\r
93\r
94Arguments:\r
95\r
96 This - The protocol instance pointer\r
97 Source - The source buffer containing the compressed data.\r
98 SrcSize - The size of source buffer\r
99 Destination - The destination buffer to store the decompressed data\r
100 DstSize - The size of destination buffer.\r
101 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
102 ScratchSize - The size of scratch buffer.\r
103\r
104Returns:\r
105\r
106 EFI_SUCCESS - Decompression is successfull\r
107 EFI_INVALID_PARAMETER - The source data is corrupted\r
108 EFI_UNSUPPORTED - The operation is unsupported.\r
109\r
110--*/\r
111{\r
112 return EFI_UNSUPPORTED;\r
113}\r
114\r
115EFI_STATUS\r
116CustomizedCompress (\r
117 IN UINT8 *SrcBuffer,\r
118 IN UINT32 SrcSize,\r
119 IN UINT8 *DstBuffer,\r
120 IN OUT UINT32 *DstSize\r
121 )\r
122/*++\r
123\r
124Routine Description:\r
125\r
126 The Customized compression routine.\r
127\r
128Arguments:\r
129\r
130 SrcBuffer - The buffer storing the source data\r
131 SrcSize - The size of source data\r
132 DstBuffer - The buffer to store the compressed data\r
133 DstSize - On input, the size of DstBuffer; On output,\r
134 the size of the actual compressed data.\r
135\r
136Returns:\r
137\r
138 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,\r
139 DstSize contains the size needed.\r
140 EFI_SUCCESS - Compression is successful.\r
141\r
142 EFI_UNSUPPORTED - The operation is unsupported.\r
143--*/\r
144{\r
145 return EFI_UNSUPPORTED;\r
146}\r