Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _LINUX_CRC32C_H |
| 3 | #define _LINUX_CRC32C_H |
| 4 | |
| 5 | #include <linux/types.h> |
| 6 | |
Herbert Xu | 69c35ef | 2008-11-07 15:11:47 +0800 | [diff] [blame] | 7 | extern u32 crc32c(u32 crc, const void *address, unsigned int length); |
Nikolay Borisov | df91f56 | 2018-01-08 11:45:04 +0200 | [diff] [blame] | 8 | extern const char *crc32c_impl(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Herbert Xu | 0426c16 | 2008-11-11 12:20:06 +0800 | [diff] [blame] | 10 | /* This macro exists for backwards-compatibility. */ |
| 11 | #define crc32c_le crc32c |
| 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #endif /* _LINUX_CRC32C_H */ |