]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/CustomizedDecompress/CustomizedDecompress.c
EdkCompatibilityPkg: Fix typos in comments
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / CustomizedDecompress / CustomizedDecompress.c
CommitLineData
3eb9473e 1/*++\r
2\r
4ea9375a
HT
3Copyright (c) 2004, 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 CustomizedDecompress.c\r
15\r
16Abstract:\r
17\r
18 Implementation file for Customized decompression routine\r
19 \r
20--*/\r
21#include "TianoCommon.h"\r
22#include "CustomizedDecompress.h"\r
23\r
24EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL mCustomizedDecompress = {\r
25 CustomizedGetInfo,\r
26 CustomizedDecompress\r
27};\r
28\r
29EFI_STATUS\r
30InstallCustomizedDecompress (\r
31 EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL **This\r
32 )\r
33/*++\r
34\r
35Routine Description:\r
36\r
37 Install customeized decompress protocol.\r
38\r
39Arguments:\r
40\r
41 This - The protocol that needs to be installed.\r
42\r
43Returns:\r
44\r
45 EFI_SUCCESS - Always success\r
46\r
47--*/\r
48{\r
49 *This = &mCustomizedDecompress;\r
50 return EFI_SUCCESS;\r
51}\r
52\r
53EFI_STATUS\r
54EFIAPI\r
55CustomizedGetInfo (\r
56 IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This,\r
57 IN VOID *Source,\r
58 IN UINT32 SrcSize,\r
59 OUT UINT32 *DstSize,\r
60 OUT UINT32 *ScratchSize\r
61 )\r
62/*++\r
63\r
64Routine Description:\r
65\r
66 The implementation of Customized GetInfo().\r
67\r
68Arguments:\r
69 This - The EFI customized decompress protocol\r
70 Source - The source buffer containing the compressed data.\r
71 SrcSize - The size of source buffer\r
72 DstSize - The size of destination buffer.\r
73 ScratchSize - The size of scratch buffer.\r
74\r
75Returns:\r
76\r
4fc0be87 77 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successfully retrieved.\r
3eb9473e 78 EFI_INVALID_PARAMETER - The source data is corrupted\r
79 EFI_UNSUPPORTED - Not supported\r
80\r
81--*/\r
82{\r
83 return EFI_UNSUPPORTED;\r
84}\r
85\r
86EFI_STATUS\r
87EFIAPI\r
88CustomizedDecompress (\r
89 IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This,\r
90 IN VOID *Source,\r
91 IN UINT32 SrcSize,\r
92 IN OUT VOID *Destination,\r
93 IN UINT32 DstSize,\r
94 IN OUT VOID *Scratch,\r
95 IN UINT32 ScratchSize\r
96 )\r
97/*++\r
98\r
99Routine Description:\r
100\r
101 The implementation of Customized Decompress().\r
102\r
103Arguments:\r
104\r
105 This - The protocol instance pointer\r
106 Source - The source buffer containing the compressed data.\r
107 SrcSize - The size of source buffer\r
108 Destination - The destination buffer to store the decompressed data\r
109 DstSize - The size of destination buffer.\r
110 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
111 ScratchSize - The size of scratch buffer.\r
112\r
113Returns:\r
114\r
115 EFI_SUCCESS - Decompression is successfull\r
116 EFI_INVALID_PARAMETER - The source data is corrupted\r
117 EFI_UNSUPPORTED - Not supported\r
118\r
119--*/\r
120{\r
121 return EFI_UNSUPPORTED;\r
122}\r