]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Tools/Source/Common/CommonLib.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / Common / CommonLib.h
CommitLineData
3eb9473e 1/*++\r
2\r
4b1e1121
HT
3Copyright (c) 2004, 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 CommonLib.h\r
15\r
16Abstract:\r
17\r
18 Common library assistance routines.\r
19\r
20--*/\r
21\r
22#ifndef _EFI_COMMON_LIB_H\r
23#define _EFI_COMMON_LIB_H\r
24\r
25#include "TianoCommon.h"\r
26\r
27#define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination\r
28//\r
29// Function declarations\r
30//\r
31VOID\r
32PeiZeroMem (\r
33 IN VOID *Buffer,\r
34 IN UINTN Size\r
e00e1d46 35 );\r
3eb9473e 36\r
37VOID\r
38PeiCopyMem (\r
39 IN VOID *Destination,\r
40 IN VOID *Source,\r
41 IN UINTN Length\r
e00e1d46 42 );\r
3eb9473e 43\r
44VOID\r
45ZeroMem (\r
46 IN VOID *Buffer,\r
47 IN UINTN Size\r
e00e1d46 48 );\r
3eb9473e 49\r
50VOID\r
51CopyMem (\r
52 IN VOID *Destination,\r
53 IN VOID *Source,\r
54 IN UINTN Length\r
e00e1d46 55 );\r
3eb9473e 56\r
57INTN\r
58CompareGuid (\r
59 IN EFI_GUID *Guid1,\r
60 IN EFI_GUID *Guid2\r
e00e1d46 61 );\r
3eb9473e 62\r
63EFI_STATUS\r
64GetFileImage (\r
65 IN CHAR8 *InputFileName,\r
66 OUT CHAR8 **InputFileImage,\r
67 OUT UINT32 *BytesRead\r
e00e1d46 68 );\r
3eb9473e 69\r
70UINT8\r
71CalculateChecksum8 (\r
72 IN UINT8 *Buffer,\r
73 IN UINTN Size\r
e00e1d46 74 );\r
3eb9473e 75\r
76UINT8\r
77CalculateSum8 (\r
78 IN UINT8 *Buffer,\r
79 IN UINTN Size\r
e00e1d46 80 );\r
3eb9473e 81\r
82UINT16\r
83CalculateChecksum16 (\r
84 IN UINT16 *Buffer,\r
85 IN UINTN Size\r
e00e1d46 86 );\r
3eb9473e 87\r
88UINT16\r
89CalculateSum16 (\r
90 IN UINT16 *Buffer,\r
91 IN UINTN Size\r
e00e1d46 92 );\r
3eb9473e 93\r
94EFI_STATUS\r
95PrintGuid (\r
96 IN EFI_GUID *Guid\r
e00e1d46 97 );\r
3eb9473e 98\r
99#define PRINTED_GUID_BUFFER_SIZE 37 // including null-termination\r
100EFI_STATUS\r
101PrintGuidToBuffer (\r
102 IN EFI_GUID *Guid,\r
103 IN OUT UINT8 *Buffer,\r
104 IN UINT32 BufferLen,\r
105 IN BOOLEAN Uppercase\r
e00e1d46 106 );\r
3eb9473e 107\r
108#endif\r