]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/CustomizedDecompress/CustomizedDecompress.h
EdkCompatibilityPkg: Fix typos in comments
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / CustomizedDecompress / CustomizedDecompress.h
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.h\r
15\r
16Abstract:\r
17\r
18 Header file for Customized decompression routine\r
19 \r
20--*/\r
21#ifndef _CUSTOMIZED_DECOMPRESS_LIB_H_\r
22#define _CUSTOMIZED_DECOMPRESS_LIB_H_\r
23\r
24#include EFI_PROTOCOL_DEFINITION (CustomizedDecompress)\r
25\r
26EFI_STATUS\r
27EFIAPI\r
28CustomizedGetInfo (\r
29 IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This,\r
30 IN VOID *Source,\r
31 IN UINT32 SrcSize,\r
32 OUT UINT32 *DstSize,\r
33 OUT UINT32 *ScratchSize\r
34 )\r
35/*++\r
36\r
37Routine Description:\r
38\r
39 The implementation of Customized GetInfo().\r
40\r
41Arguments:\r
42 This - The EFI customized decompress protocol\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 EFI_UNSUPPORTED - Not supported\r
53\r
54--*/\r
55;\r
56\r
57EFI_STATUS\r
58EFIAPI\r
59CustomizedDecompress (\r
60 IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This,\r
61 IN VOID *Source,\r
62 IN UINT32 SrcSize,\r
63 IN OUT VOID *Destination,\r
64 IN UINT32 DstSize,\r
65 IN OUT VOID *Scratch,\r
66 IN UINT32 ScratchSize\r
67 )\r
68/*++\r
69\r
70Routine Description:\r
71\r
72 The implementation of Customized Decompress().\r
73\r
74Arguments:\r
75\r
76 This - The protocol instance pointer\r
77 Source - The source buffer containing the compressed data.\r
78 SrcSize - The size of source buffer\r
79 Destination - The destination buffer to store the decompressed data\r
80 DstSize - The size of destination buffer.\r
81 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
82 ScratchSize - The size of scratch buffer.\r
83\r
84Returns:\r
85\r
86 EFI_SUCCESS - Decompression is successfull\r
87 EFI_INVALID_PARAMETER - The source data is corrupted\r
88 EFI_UNSUPPORTED - Not supported\r
89\r
90--*/\r
91;\r
92\r
93EFI_STATUS\r
94InstallCustomizedDecompress (\r
95 EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL **This\r
96 )\r
97/*++\r
98\r
99Routine Description:\r
100\r
101 Install customeized decompress protocol.\r
102\r
103Arguments:\r
104\r
105 This - The protocol that needs to be installed.\r
106\r
107Returns:\r
108\r
109 EFI_SUCCESS - Always success\r
110\r
111--*/\r
112;\r
113#endif\r