[SCSI] lpfc driver 8.0.30 : convert to use of int_to_scsilun()
Replace use of lpfc_put_lun with midlayer's int_to_scsilun Remove driver's local definition of lpfc_put_lun (which converts an int back to a 64-bit LUN) and replace it's use with the recently added int_to_scsilun function provided by the midlayer. Note: Embedding midlayer structure in our structure caused need for more files to include midlayer headers. Signed-off-by: James Smart <James.Smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
ea84c3f74d
commit
918865230e
@@ -78,18 +78,7 @@ struct fcp_rsp {
|
||||
};
|
||||
|
||||
struct fcp_cmnd {
|
||||
uint32_t fcpLunMsl; /* most significant lun word (32 bits) */
|
||||
uint32_t fcpLunLsl; /* least significant lun word (32 bits) */
|
||||
/* # of bits to shift lun id to end up in right
|
||||
* payload word, little endian = 8, big = 16.
|
||||
*/
|
||||
#ifdef __BIG_ENDIAN
|
||||
#define FC_LUN_SHIFT 16
|
||||
#define FC_ADDR_MODE_SHIFT 24
|
||||
#else /* __LITTLE_ENDIAN */
|
||||
#define FC_LUN_SHIFT 8
|
||||
#define FC_ADDR_MODE_SHIFT 0
|
||||
#endif
|
||||
struct scsi_lun fcp_lun;
|
||||
|
||||
uint8_t fcpCntl0; /* FCP_CNTL byte 0 (reserved) */
|
||||
uint8_t fcpCntl1; /* FCP_CNTL byte 1 task codes */
|
||||
|
Reference in New Issue
Block a user