]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Tools/Source/Common/Crc32.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / Common / Crc32.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
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 crc32.h\r
15\r
16Abstract:\r
17\r
18 Header file for CalcuateCrc32 routine\r
19 \r
20--*/\r
21\r
22#ifndef _CRC32_H\r
23#define _CRC32_H\r
24EFI_STATUS\r
25CalculateCrc32 (\r
26 IN UINT8 *Data,\r
27 IN UINTN DataSize,\r
28 IN OUT UINT32 *CrcOut\r
29 )\r
30;\r
31\r
32/*++\r
33\r
34Routine Description:\r
35\r
36 The CalculateCrc32 routine.\r
37\r
38Arguments:\r
39\r
40 Data - The buffer contaning the data to be processed\r
41 DataSize - The size of data to be processed\r
42 CrcOut - A pointer to the caller allocated UINT32 that on\r
43 contains the CRC32 checksum of Data\r
44\r
45Returns:\r
46\r
47 EFI_SUCCESS - Calculation is successful.\r
48 EFI_INVALID_PARAMETER - Data / CrcOut = NULL, or DataSize = 0\r
49\r
50--*/\r
51#endif