3 * Marvell Semiconductor <www.marvell.com>
4 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 * SPDX-License-Identifier: GPL-2.0+
13 uint32_t crc32 (uint32_t, const unsigned char *, uint);
14 uint32_t crc32_wd (uint32_t, const unsigned char *, uint, uint);
15 uint32_t crc32_no_comp (uint32_t, const unsigned char *, uint);
18 * crc32_wd_buf - Perform CRC32 on a buffer and return result in buffer
20 * @input: Input buffer
21 * @ilen: Input buffer length
22 * @output: Place to put checksum result (4 bytes)
23 * @chunk_sz: Trigger watchdog after processing this many bytes
25 void crc32_wd_buf(const unsigned char *input, uint ilen,
26 unsigned char *output, uint chunk_sz);
28 #endif /* _UBOOT_CRC_H */