]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Tools/Source/Common/Compress.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / Common / Compress.h
CommitLineData
3eb9473e 1/*++\r
2\r
4b1e1121
HT
3Copyright (c) 2004 - 2006, 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 Compress.h\r
15\r
16Abstract:\r
17\r
18 Header file for compression routine.\r
19 Providing both EFI and Tiano Compress algorithms.\r
20 \r
21--*/\r
22\r
23#ifndef _COMPRESS_H_\r
24#define _COMPRESS_H_\r
25\r
26/*++\r
27\r
28Routine Description:\r
29\r
30 Tiano compression routine.\r
31\r
32--*/\r
33EFI_STATUS\r
34TianoCompress (\r
35 IN UINT8 *SrcBuffer,\r
36 IN UINT32 SrcSize,\r
37 IN UINT8 *DstBuffer,\r
38 IN OUT UINT32 *DstSize\r
e00e1d46 39 );\r
3eb9473e 40\r
41/*++\r
42\r
43Routine Description:\r
44\r
45 Efi compression routine.\r
46\r
47--*/\r
48EFI_STATUS\r
49EfiCompress (\r
50 IN UINT8 *SrcBuffer,\r
51 IN UINT32 SrcSize,\r
52 IN UINT8 *DstBuffer,\r
53 IN OUT UINT32 *DstSize\r
e00e1d46 54 );\r
3eb9473e 55\r
56/*++\r
57\r
58Routine Description:\r
59\r
60 The compression routine.\r
61\r
62Arguments:\r
63\r
64 SrcBuffer - The buffer storing the source data\r
65 SrcSize - The size of source data\r
66 DstBuffer - The buffer to store the compressed data\r
67 DstSize - On input, the size of DstBuffer; On output,\r
68 the size of the actual compressed data.\r
69\r
70Returns:\r
71\r
72 EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,\r
73 DstSize contains the size needed.\r
74 EFI_SUCCESS - Compression is successful.\r
75 EFI_OUT_OF_RESOURCES - No resource to complete function.\r
76 EFI_INVALID_PARAMETER - Parameter supplied is wrong.\r
77\r
78--*/\r
79typedef\r
80EFI_STATUS\r
81(*COMPRESS_FUNCTION) (\r
82 IN UINT8 *SrcBuffer,\r
83 IN UINT32 SrcSize,\r
84 IN UINT8 *DstBuffer,\r
85 IN OUT UINT32 *DstSize\r
86 );\r
87\r
88#endif\r