+#include <common.h>
#include <linux/string.h>
#include <asm/arch/sci_types.h>
#include <asm/arch/packet.h>
extern void FDL_SendAckPacket (cmd_pkt_type pkt_type);
-
+extern uint32 FDL_GetBootMode (void);
struct FDL_ChannelHandler *gFdlUsedChannel;
packet_ptr->pkt_state = PKT_RECV;
//check the packet. CRC should be 0
#ifndef CONFIG_FRMCHECK
- crc = crc_16_l_calc((unsigned short *)&packet_ptr->packet_body, packet_ptr->data_size);
+ crc = crc_16_l_calc((char *)&packet_ptr->packet_body, packet_ptr->data_size);
#else
crc = frm_chk((unsigned short *)&packet_ptr->packet_body, packet_ptr->data_size);
#endif
/*src CRC calculation*/
#ifndef CONFIG_FRMCHECK
- crc = crc_16_l_calc ( (const unsigned short *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE);
+ crc = crc_16_l_calc ( (char *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE);
#else
crc = frm_chk ( (const unsigned short *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE);