]>
Commit | Line | Data |
---|---|---|
8c1ba7f5 | 1 | /** @file\r |
2 | Internal include file for Base UEFI Decompress Libary.\r | |
3 | \r | |
b1f700a8 HT |
4 | Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r |
5 | This program and the accompanying materials\r | |
8c1ba7f5 | 6 | are licensed and made available under the terms and conditions of the BSD License\r |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | Module Name: BaseUefiCustomDecompressLibInternals.h\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef __BASE_UEFI_TIANO_CUSTOM_DECOMPRESS_LIB_INTERNALS_H__\r | |
18 | #define __BASE_UEFI_TIANO_CUSTOM_DECOMPRESS_LIB_INTERNALS_H__\r | |
19 | \r | |
20 | #include <PiPei.h>\r | |
21 | \r | |
22 | #include <Library/UefiDecompressLib.h>\r | |
23 | #include <Library/DebugLib.h>\r | |
24 | #include <Library/BaseMemoryLib.h>\r | |
25 | \r | |
3da85e63 | 26 | EFI_STATUS\r |
27 | EFIAPI\r | |
28 | TianoGetInfo (\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 | |
8c1ba7f5 | 35 | \r |
3da85e63 | 36 | Routine Description:\r |
8c1ba7f5 | 37 | \r |
3da85e63 | 38 | The implementation is same as that of EFI_TIANO_DECOMPRESS_PROTOCOL.GetInfo().\r |
8c1ba7f5 | 39 | \r |
3da85e63 | 40 | Arguments:\r |
8c1ba7f5 | 41 | \r |
3da85e63 | 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 | |
8c1ba7f5 | 47 | \r |
3da85e63 | 48 | Returns:\r |
8c1ba7f5 | 49 | \r |
3da85e63 | 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 | |
8c1ba7f5 | 52 | \r |
3da85e63 | 53 | --*/\r |
54 | ;\r | |
8c1ba7f5 | 55 | \r |
3da85e63 | 56 | EFI_STATUS\r |
57 | EFIAPI\r | |
58 | TianoDecompress (\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 | |
8c1ba7f5 | 67 | \r |
3da85e63 | 68 | Routine Description:\r |
8c1ba7f5 | 69 | \r |
3da85e63 | 70 | The implementation is same as that of EFI_TIANO_DECOMPRESS_PROTOCOL.Decompress().\r |
8c1ba7f5 | 71 | \r |
3da85e63 | 72 | Arguments:\r |
8c1ba7f5 | 73 | \r |
3da85e63 | 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 | |
8c1ba7f5 | 81 | \r |
3da85e63 | 82 | Returns:\r |
8c1ba7f5 | 83 | \r |
3da85e63 | 84 | EFI_SUCCESS - Decompression is successfull\r |
85 | EFI_INVALID_PARAMETER - The source data is corrupted\r | |
8c1ba7f5 | 86 | \r |
3da85e63 | 87 | --*/\r |
88 | ;\r | |
8c1ba7f5 | 89 | \r |
90 | #endif\r |