1
linux/include/scsi
James.Smart@Emulex.Com 2f4701d827 [SCSI] add int_to_scsilun() function
One of the issues we had was reverting the midlayers lun value
into the 8byte lun value that we wanted to send to the device.
Historically, there's been some combination of byte swapping,
setting high/low, etc. There's also been no common thread between
how our driver did it and others.  I also got very confused as
to why byteswap routines were being used.

Anyway, this patch is a LLDD-callable function that reverts the
midlayer's lun value, stored in an int, to the 8-byte quantity
(note: this is not the real 8byte quantity, just the same amount
that scsilun_to_int() was able to convert and store originally).

This also solves the dilemma of the thread:
http://marc.theaimsgroup.com/?l=linux-kernel&m=112116767118981&w=2

A patch for the lpfc driver to use this function will be along
in a few days (batched with other patches).

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2005-07-14 11:21:27 -04:00
..
scsi_cmnd.h [SCSI] remove scsi_cmnd->state 2005-06-26 12:16:24 -05:00
scsi_dbg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_device.h [SCSI] add int_to_scsilun() function 2005-07-14 11:21:27 -04:00
scsi_devinfo.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_driver.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_eh.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_host.h [SCSI] remove scsi_set_device 2005-06-26 08:31:47 -05:00
scsi_ioctl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_request.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_tcq.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_transport_fc.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_transport_iscsi.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi_transport_spi.h [SCSI] implement parameter limits in the SPI transport class 2005-05-20 15:54:32 -05:00
scsi_transport.h [SCSI] allow the HBA to reserve target and device private areas 2005-05-26 11:49:20 -04:00
scsi.h [SCSI] add TYPE_RBC to our type table 2005-07-11 12:38:33 -05:00
scsicam.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sg_request.h [PATCH] I2O: Adaptec specific SG_IO access, firmware access through sysfs and 2400A workaround 2005-06-24 00:05:28 -07:00
sg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00