]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/u-boot/crc.h
3 * Marvell Semiconductor <www.marvell.com>
4 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 * SPDX-License-Identifier: GPL-2.0+
13 unsigned int crc8(unsigned int crc_start
, const unsigned char *vptr
, int len
);
16 uint32_t crc32 (uint32_t, const unsigned char *, uint
);
17 uint32_t crc32_wd (uint32_t, const unsigned char *, uint
, uint
);
18 uint32_t crc32_no_comp (uint32_t, const unsigned char *, uint
);
21 * crc32_wd_buf - Perform CRC32 on a buffer and return result in buffer
23 * @input: Input buffer
24 * @ilen: Input buffer length
25 * @output: Place to put checksum result (4 bytes)
26 * @chunk_sz: Trigger watchdog after processing this many bytes
28 void crc32_wd_buf(const unsigned char *input
, uint ilen
,
29 unsigned char *output
, uint chunk_sz
);
31 #endif /* _UBOOT_CRC_H */