]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004, 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 | |
8 | \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 | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | CustomizedDecompress.h\r | |
15 | \r | |
16 | Abstract:\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 | |
26 | EFI_STATUS\r | |
27 | EFIAPI\r | |
28 | CustomizedGetInfo (\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 | |
37 | Routine Description:\r | |
38 | \r | |
39 | The implementation of Customized GetInfo().\r | |
40 | \r | |
41 | Arguments:\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 | |
48 | Returns:\r | |
49 | \r | |
50 | EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r | |
51 | EFI_INVALID_PARAMETER - The source data is corrupted\r | |
52 | EFI_UNSUPPORTED - Not supported\r | |
53 | \r | |
54 | --*/\r | |
55 | ;\r | |
56 | \r | |
57 | EFI_STATUS\r | |
58 | EFIAPI\r | |
59 | CustomizedDecompress (\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 | |
70 | Routine Description:\r | |
71 | \r | |
72 | The implementation of Customized Decompress().\r | |
73 | \r | |
74 | Arguments:\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 | |
84 | Returns:\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 | |
93 | EFI_STATUS\r | |
94 | InstallCustomizedDecompress (\r | |
95 | EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL **This\r | |
96 | )\r | |
97 | /*++\r | |
98 | \r | |
99 | Routine Description:\r | |
100 | \r | |
101 | Install customeized decompress protocol.\r | |
102 | \r | |
103 | Arguments:\r | |
104 | \r | |
105 | This - The protocol that needs to be installed.\r | |
106 | \r | |
107 | Returns:\r | |
108 | \r | |
109 | EFI_SUCCESS - Always success\r | |
110 | \r | |
111 | --*/\r | |
112 | ;\r | |
113 | #endif\r |