From 85d8bf57131a21424b50e50884372e813345f09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Beh=C3=BAn?= Date: Sun, 3 Sep 2017 17:00:23 +0200 Subject: lib: Add CRC32-C This is needed for BTRFS. Signed-off-by: Marek Behun create mode 100644 lib/crc32c.c --- include/u-boot/crc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/u-boot') diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h index 6764d58..6d08f5d 100644 --- a/include/u-boot/crc.h +++ b/include/u-boot/crc.h @@ -28,4 +28,8 @@ uint32_t crc32_no_comp (uint32_t, const unsigned char *, uint); void crc32_wd_buf(const unsigned char *input, uint ilen, unsigned char *output, uint chunk_sz); +/* lib/crc32c.c */ +void crc32c_init(uint32_t *, uint32_t); +uint32_t crc32c_cal(uint32_t, const char *, int, uint32_t *); + #endif /* _UBOOT_CRC_H */ -- cgit v1.1