]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
4b1e1121 HT |
3 | Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 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 | |
22 | #ifndef _CRC32_H\r | |
23 | #define _CRC32_H\r | |
24 | EFI_STATUS\r | |
25 | CalculateCrc32 (\r | |
26 | IN UINT8 *Data,\r | |
27 | IN UINTN DataSize,\r | |
28 | IN OUT UINT32 *CrcOut\r | |
e00e1d46 | 29 | );\r |
3eb9473e | 30 | \r |
31 | /*++\r | |
32 | \r | |
33 | Routine Description:\r | |
34 | \r | |
35 | The CalculateCrc32 routine.\r | |
36 | \r | |
37 | Arguments:\r | |
38 | \r | |
39 | Data - The buffer contaning the data to be processed\r | |
40 | DataSize - The size of data to be processed\r | |
41 | CrcOut - A pointer to the caller allocated UINT32 that on\r | |
42 | contains the CRC32 checksum of Data\r | |
43 | \r | |
44 | Returns:\r | |
45 | \r | |
46 | EFI_SUCCESS - Calculation is successful.\r | |
47 | EFI_INVALID_PARAMETER - Data / CrcOut = NULL, or DataSize = 0\r | |
48 | \r | |
49 | --*/\r | |
b4e547b6 | 50 | #endif\r |