+++ /dev/null
-/** @file\r
- Custom Decompress Functions\r
-\r
- Copyright (c) 2006 - 2007, Intel Corporation\r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-\r
-#ifndef __CUSTOM_DECPOMPRESS_LIB_H__\r
-#define __CUSTOM_DECPOMPRESS_LIB_H__\r
-\r
-/**
- Decompress GetInfo fucntion.\r
- @param[in] DecompressGuid The guid matches this decompress method.
- @param[in] Source The source buffer containing the compressed data.
- @param[in] SourceSize The size of source buffer
- @param[out] DestinationSize The size of destination buffer.
- @param[out] ScratchSize The size of scratch buffer.
-
- @retval RETURN_SUCCESS The size of destination buffer and the size of scratch buffer are successull retrieved.\r
- @retval RETURN_INVALID_PARAMETER The source data is corrupted
-
-**/\r
-RETURN_STATUS\r
-EFIAPI\r
-CustomDecompressGetInfo (\r
- IN CONST GUID *DecompressGuid,\r
- IN CONST VOID *Source,\r
- IN UINT32 SourceSize,\r
- OUT UINT32 *DestinationSize,\r
- OUT UINT32 *ScratchSize\r
- );\r
-\r
-/**
- Decompress fucntion.\r
-\r
- @param[in] DecompressGuid The guid matches this decompress method.
- @param[in] Source The source buffer containing the compressed data.
- @param[in] Destination The destination buffer to store the decompressed data
- @param[out] Scratch The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
-
- @retval RETURN_SUCCESS Decompression is successfull\r
- @retval RETURN_INVALID_PARAMETER The source data is corrupted
-
-**/\r
-RETURN_STATUS\r
-EFIAPI\r
-CustomDecompress (\r
- IN CONST GUID *DecompressGuid,\r
- IN CONST VOID *Source,\r
- IN OUT VOID *Destination,\r
- IN OUT VOID *Scratch\r
- );\r
-\r
-/**
- Get decompress method guid list.\r
-\r
- @param[in, out] AlgorithmGuidTable The decompress method guid list.
- @param[in, out] NumberOfAlgorithms The number of decompress methods.
-
- @retval RETURN_SUCCESS Get all algorithmes list successfully..
-**/\r
-RETURN_STATUS\r
-EFIAPI\r
-CustomDecompressGetAlgorithms (\r
- IN OUT GUID **AlgorithmGuidTable,\r
- IN OUT UINT32 *NumberOfAlgorithms\r
- );\r
-\r
-#endif\r
+++ /dev/null
-/** @file\r
- Null implementation of the custom decompress library\r
-\r
- Copyright (c) 2006 - 2007, Intel Corporation.<BR>\r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-#include <Base.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/CustomDecompressLib.h>\r
-\r
-\r
-/**
- The internal implementation of *_DECOMPRESS_PROTOCOL.GetInfo().\r
-
- @param[in] Source The source buffer containing the compressed data.
- @param[in] SourceSize The size of source buffer
- @param[out] DestinationSize The size of destination buffer.
- @param[out] ScratchSize The size of scratch buffer.
-
- @retval RETURN_SUCCESS The size of destination buffer and the size of scratch buffer are successull retrieved.\r
- @retval RETURN_INVALID_PARAMETER The source data is corrupted
-
-**/\r
-RETURN_STATUS\r
-EFIAPI\r
-CustomDecompressGetInfo (\r
- IN CONST GUID *DecompressGuid,\r
- IN CONST VOID *Source,\r
- IN UINT32 SourceSize,\r
- OUT UINT32 *DestinationSize,\r
- OUT UINT32 *ScratchSize\r
- )\r
-{\r
- return RETURN_UNSUPPORTED;\r
-}\r
-\r
-\r
-/**
- The internal implementation of *_DECOMPRESS_PROTOCOL.Decompress().\r
-
- @param[in] Source The source buffer containing the compressed data.
- @param[in] Destination The destination buffer to store the decompressed data
- @param[out] Scratch The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
-
-
- @retval RETURN_SUCCESS Decompression is successfull\r
- @retval RETURN_INVALID_PARAMETER The source data is corrupted
-
-**/\r
-RETURN_STATUS\r
-EFIAPI\r
-CustomDecompress (\r
- IN CONST GUID *DecompressGuid,\r
- IN CONST VOID *Source,\r
- IN OUT VOID *Destination,\r
- IN OUT VOID *Scratch\r
- )\r
-{\r
- return RETURN_UNSUPPORTED;\r
-}\r
-\r
-/**
- Get decompress method guid list.\r
-\r
- @param[in, out] AlgorithmGuidTable The decompress method guid list.
- @param[in, out] NumberOfAlgorithms The number of decompress methods.
-
- @retval RETURN_SUCCESS Get all algorithmes list successfully..
-**/\r
-RETURN_STATUS\r
-EFIAPI\r
-CustomDecompressGetAlgorithms (\r
- IN OUT GUID **AlgorithmGuidTable,\r
- IN OUT UINT32 *NumberOfAlgorithms\r
- )\r
-{\r
- ASSERT (NumberOfAlgorithms != NULL);\r
-\r
- *NumberOfAlgorithms = 0;\r
- return RETURN_SUCCESS; \r
-}\r
+++ /dev/null
-#/** @file\r
-# Base Custom Decompression Library\r
-#\r
-# Customer Decompress Library with NULL implementation.\r
-# Copyright (c) 2006 - 2007, Intel Corporation.\r
-#\r
-# All rights reserved. This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-#\r
-#**/\r
-\r
-[Defines]\r
- INF_VERSION = 0x00010005\r
- BASE_NAME = BaseCustomDecompressLibNull\r
- FILE_GUID = e5566134-c75e-4ace-bad1-e23a3b335e30\r
- MODULE_TYPE = BASE\r
- VERSION_STRING = 1.0\r
- LIBRARY_CLASS = CustomDecompressLib \r
- EDK_RELEASE_VERSION = 0x00020000\r
- EFI_SPECIFICATION_VERSION = 0x00020000\r
-\r
-\r
-#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
-#\r
-\r
-[Sources.common]\r
- BaseCustomDecompressLibNull.c\r
-\r
-[Packages]\r
- MdePkg/MdePkg.dec\r
-\r
-[LibraryClasses]\r
- DebugLib
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\r
- <MsaHeader>\r
- <ModuleName>BaseCustomDecompressLibNull</ModuleName>\r
- <ModuleType>BASE</ModuleType>\r
- <GuidValue>e5566134-c75e-4ace-bad1-e23a3b335e30</GuidValue>\r
- <Version>1.0</Version>\r
- <Abstract>Base Custom Decompression Library</Abstract>\r
- <Description>Customer Decompress Library with NULL implementation.</Description>\r
- <Copyright>Copyright (c) 2006 - 2007, Intel Corporation.</Copyright>\r
- <License>All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>\r
- <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052</Specification>\r
- </MsaHeader>\r
- <ModuleDefinitions>\r
- <SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures>\r
- <BinaryModule>false</BinaryModule>\r
- <OutputFileBasename>BaseCustomDecompressLibNull</OutputFileBasename>\r
- </ModuleDefinitions>\r
- <LibraryClassDefinitions>\r
- <LibraryClass Usage="ALWAYS_PRODUCED">\r
- <Keyword>CustomDecompressLib</Keyword>\r
- </LibraryClass>\r
- </LibraryClassDefinitions>\r
- <SourceFiles>\r
- <Filename>BaseCustomDecompressLibNull.c</Filename>\r
- </SourceFiles>\r
- <PackageDependencies>\r
- <Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
- <Package PackageGuid="68169ab0-d41b-4009-9060-292c253ac43d"/>\r
- </PackageDependencies>\r
- <Externs>\r
- <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
- <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
- </Externs>\r
-</ModuleSurfaceArea>
\ No newline at end of file