1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2016. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
/** @file crc.h */
/**
* Calculate CRC16 of an arbitrary buffer.
*
* @param [in] buffer Buffer to compute crc for.
* @param [in] size Buffer size.
*
* @return crc16() function of the buffer.
*/
uint16_t ;
/**
* Calculate CRC16 of a NULL-terminated string.
*
* @param [in] s NULL-terminated string to compute crc for.
*
* @return crc16() function of the string.
*/
uint16_t ;
/**
* Calculate CRC32 of an arbitrary buffer.
*
* @param [in] prev_crc Intitial CRC value.
* @param [in] buffer Buffer to compute crc for.
* @param [in] size Buffer size.
*
* @return crc32() function of the buffer.
*/
uint32_t ;