tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8800g / fdl_crc.h
1 #ifndef FDL_CRC_H
2 #define FDL_CRC_H
3 #ifdef __cplusplus
4 extern   "C"
5 {
6 #endif
7
8 #include "cmd_def.h"
9 //////////////////////////////////////////////////////////
10 //CRC
11 #define CRC_16_POLYNOMIAL       0x1021
12 #define CRC_16_L_POLYNOMIAL     0x8000
13 #define CRC_16_L_SEED           0x80
14 #define CRC_16_L_OK             0x00
15 #define HDLC_FLAG               0x7E
16 #define HDLC_ESCAPE             0x7D
17 #define HDLC_ESCAPE_MASK        0x20
18 #define CRC_CHECK_SIZE          0x02
19
20
21
22 ///////////////////////////////////////////////////////////
23 unsigned int crc_16_l_calc (char *buf_ptr,unsigned int len);
24
25 unsigned short frm_chk (const unsigned short *src, int len);
26 unsigned long Get_CheckSum (const unsigned char *src, int len);
27 #ifdef __cplusplus
28 }
29 #endif
30 #endif /* FDL_CRC_H */