/* This function is used for copying data between a data structure with big endian representation to local endianness. This function can be called with or without lock.  */
void lpfc_sli_bemem_bcopy(void *srcp, void *destp, uint32_t cnt)
/* This function is used for copying data between a data structure with big endian representation to local endianness. This function can be called with or without lock.  */
void lpfc_sli_bemem_bcopy(void *srcp, void *destp, uint32_t cnt)
{
	uint32_t *src = srcp;
	uint32_t *dest = destp;
	uint32_t ldata;
	int i;
	for (i = 0; i < (int)cnt; i += sizeof(uint32_t)) {
		ldata = *src;
		ldata = be32_to_cpu(ldata);
		*dest = ldata;
		src++;
		dest++;
	}
}