Linux 6.12-rc7
[linux-stable.git] / include / linux / crc7.h
blobb462842f3c32c72abb1aca2c57a9cc07ff14338b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_CRC7_H
3 #define _LINUX_CRC7_H
4 #include <linux/types.h>
6 extern const u8 crc7_be_syndrome_table[256];
8 static inline u8 crc7_be_byte(u8 crc, u8 data)
10 return crc7_be_syndrome_table[crc ^ data];
13 extern u8 crc7_be(u8 crc, const u8 *buffer, size_t len);
15 #endif