Go to the documentation of this file.
10 #define __BFIN_CRC_H__
47 #define CRC_IOC_MAGIC 'C'
48 #define CRC_IOC_CALC_CRC _IOWR('C', 0x01, unsigned int)
49 #define CRC_IOC_MEMCPY_CRC _IOWR('C', 0x02, unsigned int)
50 #define CRC_IOC_VERIFY_VAL _IOWR('C', 0x03, unsigned int)
51 #define CRC_IOC_FILL_VAL _IOWR('C', 0x04, unsigned int)
56 #include <linux/types.h>
83 #define CMPERR 0x00000002
84 #define DCNTEXP 0x00000010
85 #define IBR 0x00010000
86 #define OBR 0x00020000
87 #define IRR 0x00040000
88 #define LUTDONE 0x00080000
89 #define FSTAT 0x00700000
93 #define BLKEN 0x00000001
94 #define OPMODE 0x000000F0
95 #define OPMODE_OFFSET 4
96 #define MODE_DMACPY_CRC 1
97 #define MODE_DATA_FILL 2
98 #define MODE_CALC_CRC 3
99 #define MODE_DATA_VERIFY 4
100 #define AUTOCLRZ 0x00000100
101 #define AUTOCLRF 0x00000200
102 #define OBRSTALL 0x00001000
103 #define IRRSTALL 0x00002000
104 #define BITMIRR 0x00010000
105 #define BITMIRR_OFFSET 16
106 #define BYTMIRR 0x00020000
107 #define BYTMIRR_OFFSET 17
108 #define W16SWP 0x00040000
109 #define W16SWP_OFFSET 18
110 #define FDSEL 0x00080000
111 #define FDSEL_OFFSET 19
112 #define RSLTMIRR 0x00100000
113 #define RSLTMIRR_OFFSET 20
114 #define POLYMIRR 0x00200000
115 #define POLYMIRR_OFFSET 21
116 #define CMPMIRR 0x00400000
117 #define CMPMIRR_OFFSET 22
121 #define DCNTEXPI 0x10