]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | Crc32.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Header file for CalcuateCrc32 routine\r | |
19 | \r | |
20 | --*/\r | |
21 | \r | |
878ddf1f | 22 | #ifndef _CRC32_H\r |
23 | #define _CRC32_H\r | |
ce53a8c3 | 24 | \r |
25 | #include <Common/UefiBaseTypes.h>\r | |
26 | \r | |
878ddf1f | 27 | EFI_STATUS\r |
28 | CalculateCrc32 (\r | |
29 | IN UINT8 *Data,\r | |
30 | IN UINTN DataSize,\r | |
31 | IN OUT UINT32 *CrcOut\r | |
32 | )\r | |
878ddf1f | 33 | /*++\r |
34 | \r | |
35 | Routine Description:\r | |
36 | \r | |
37 | The CalculateCrc32 routine.\r | |
38 | \r | |
39 | Arguments:\r | |
40 | \r | |
41 | Data - The buffer contaning the data to be processed\r | |
42 | DataSize - The size of data to be processed\r | |
43 | CrcOut - A pointer to the caller allocated UINT32 that on\r | |
44 | contains the CRC32 checksum of Data\r | |
45 | \r | |
46 | Returns:\r | |
47 | \r | |
48 | EFI_SUCCESS - Calculation is successful.\r | |
49 | EFI_INVALID_PARAMETER - Data / CrcOut = NULL, or DataSize = 0\r | |
50 | \r | |
51 | --*/\r | |
ce53a8c3 | 52 | ;\r |
53 | \r | |
878ddf1f | 54 | #endif\r |