File diff 95e39e5412bd → bd21c8aa7237
vmkdrivers/src_9/drivers/scsi/bnx2i/bnx2i.h
Show inline comments
...
 
@@ -1460,25 +1460,24 @@ static inline void pci_free_consistent_esx(struct pci_dev *pdev, size_t size,
 
	alloc_request.numPages = range.numPages;
 
	alloc_request.numElements = 1;
 
	vmk_MemPoolFree(&alloc_request);
 
#endif /* (VMWARE_ESX_DDK_VERSION == 41000) */
 
}
 

	
 
#if (VMWARE_ESX_DDK_VERSION >= 60000)
 
static inline void bnx2i_int_to_scsilun_with_sec_lun_id(uint16_t lun,
 
							struct scsi_lun *scsi_lun,
 
							uint64_t sllid)
 
{
 
	if (sllid != VMKLNX_SCSI_INVALID_SECONDLEVEL_ID) {
 
		VMK_ASSERT(lun <= 255); /* Max LUN supported is 255. */
 
		memset(scsi_lun, 0, 8);
 
		scsi_lun->scsi_lun[0] = (lun >> 8) & 0xFF;
 
		scsi_lun->scsi_lun[1] = lun & 0xFF;
 
		scsi_lun->scsi_lun[2] = (uint8_t)((sllid >> 56) & 0xFF); /* sllid msb */
 
		scsi_lun->scsi_lun[3] = (uint8_t)((sllid >> 48) & 0xFF);
 
		scsi_lun->scsi_lun[4] = (uint8_t)((sllid >> 40) & 0xFF);
 
		scsi_lun->scsi_lun[5] = (uint8_t)((sllid >> 32) & 0xFF);
 
		scsi_lun->scsi_lun[6] = (uint8_t)((sllid >> 24) & 0xFF);
 
		scsi_lun->scsi_lun[7] = (uint8_t)((sllid >> 16) & 0xFF); /* sllid lsb */
 
	} else {
 
		int_to_scsilun(lun, scsi_lun);
 
	}