X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Tools%2FSource%2FTianoTools%2FCommon%2FCommonLib.h;fp=Tools%2FSource%2FTianoTools%2FCommon%2FCommonLib.h;h=0000000000000000000000000000000000000000;hb=feccee87a78e68d575dbdf44b34ca0cb5a21ea8d;hp=46f0cbace5645a9771ac4f818658c7975332cb8a;hpb=214b0d1914b48d651b25e58f321ddb77a46903b8;p=mirror_edk2.git diff --git a/Tools/Source/TianoTools/Common/CommonLib.h b/Tools/Source/TianoTools/Common/CommonLib.h deleted file mode 100644 index 46f0cbace5..0000000000 --- a/Tools/Source/TianoTools/Common/CommonLib.h +++ /dev/null @@ -1,135 +0,0 @@ -/*++ - -Copyright (c) 2004, Intel Corporation -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. - -Module Name: - - CommonLib.h - -Abstract: - - Common library assistance routines. - ---*/ - -#ifndef _EFI_COMMON_LIB_H -#define _EFI_COMMON_LIB_H - -#include - -#ifndef _MAX_PATH -#define _MAX_PATH 500 -#endif - -#define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination -// -// Function declarations -// -VOID -PeiZeroMem ( - IN VOID *Buffer, - IN UINTN Size - ) -; - -VOID -PeiCopyMem ( - IN VOID *Destination, - IN VOID *Source, - IN UINTN Length - ) -; - -VOID -ZeroMem ( - IN VOID *Buffer, - IN UINTN Size - ) -; - -VOID -CopyMem ( - IN VOID *Destination, - IN VOID *Source, - IN UINTN Length - ) -; - -INTN -CompareGuid ( - IN EFI_GUID *Guid1, - IN EFI_GUID *Guid2 - ) -; - -EFI_STATUS -GetFileImage ( - IN CHAR8 *InputFileName, - OUT CHAR8 **InputFileImage, - OUT UINT32 *BytesRead - ) -; - -UINT8 -CalculateChecksum8 ( - IN UINT8 *Buffer, - IN UINTN Size - ) -; - -UINT8 -CalculateSum8 ( - IN UINT8 *Buffer, - IN UINTN Size - ) -; - -UINT16 -CalculateChecksum16 ( - IN UINT16 *Buffer, - IN UINTN Size - ) -; - -UINT16 -CalculateSum16 ( - IN UINT16 *Buffer, - IN UINTN Size - ) -; - -EFI_STATUS -PrintGuid ( - IN EFI_GUID *Guid - ) -; - -#define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination -EFI_STATUS -PrintGuidToBuffer ( - IN EFI_GUID *Guid, - IN OUT UINT8 *Buffer, - IN UINT32 BufferLen, - IN BOOLEAN Uppercase - ) -; - -#define ASSERT(x) assert(x) - -#ifdef __GNUC__ -#define stricmp strcasecmp -#define strnicmp strncasecmp -#define strcmpi strcasecmp -#ifndef __CYGWIN__ -char *strlwr(char *s); -#endif -#endif - -#endif