diff options
author | Marek BehĂșn | 2017-09-03 17:00:23 +0200 |
---|---|---|
committer | Tom Rini | 2017-10-02 20:31:25 -0400 |
commit | 85d8bf57131a21424b50e50884372e813345f09a (patch) | |
tree | 89b5c9a646761fa4e060043a8ca1a5bd4c46cbbc /include/u-boot | |
parent | 43dd6dacb200757c7088af00eec78c82a7e8cbff (diff) |
lib: Add CRC32-C
This is needed for BTRFS.
Signed-off-by: Marek Behun <marek.behun@nic.cz>
create mode 100644 lib/crc32c.c
Diffstat (limited to 'include/u-boot')
-rw-r--r-- | include/u-boot/crc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/u-boot/crc.h b/include/u-boot/crc.h index 6764d58baba..6d08f5df98f 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 */ |