/* This function is used for copying data between driver memory and the SLI memory. This function also changes the endianness of each word if native endianness is different from SLI endianness. This function can be called with or without lock.  */
void lpfc_sli_pcimem_bcopy(void *srcp, void *destp, uint32_t cnt)
/* This function is used for copying data between driver memory and the SLI memory. This function also changes the endianness of each word if native endianness is different from SLI endianness. This function can be called with or without lock.  */
void lpfc_sli_pcimem_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 = le32_to_cpu(ldata);
		*dest = ldata;
		src++;
		dest++;
	}
}