3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 CustomizedDecompress.c
18 Implementation file for Customized decompression routine
22 #include <CustomizedDecompress.h>
24 EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL mCustomizedDecompress
= {
29 EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL
*
31 GetCustomizedDecompressProtocol (
35 return &mCustomizedDecompress
;
43 IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL
*This
,
47 OUT UINT32
*ScratchSize
53 The implementation of Customized GetInfo().
56 This - The EFI customized decompress protocol
57 Source - The source buffer containing the compressed data.
58 SrcSize - The size of source buffer
59 DstSize - The size of destination buffer.
60 ScratchSize - The size of scratch buffer.
64 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.
65 EFI_INVALID_PARAMETER - The source data is corrupted
66 EFI_UNSUPPORTED - Not supported
70 return EFI_UNSUPPORTED
;
75 CustomizedDecompress (
76 IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL
*This
,
79 IN OUT VOID
*Destination
,
88 The implementation of Customized Decompress().
92 This - The protocol instance pointer
93 Source - The source buffer containing the compressed data.
94 SrcSize - The size of source buffer
95 Destination - The destination buffer to store the decompressed data
96 DstSize - The size of destination buffer.
97 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.
98 ScratchSize - The size of scratch buffer.
102 EFI_SUCCESS - Decompression is successfull
103 EFI_INVALID_PARAMETER - The source data is corrupted
104 EFI_UNSUPPORTED - Not supported
108 return EFI_UNSUPPORTED
;