kernel-ark/include
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
..
acpi
asm-alpha
asm-arm [PATCH] sched: cleanup context switch locking 2005-06-25 16:24:43 -07:00
asm-arm26
asm-cris
asm-frv
asm-generic [PATCH] kexec: vmlinux: fix physical addresses 2005-06-25 16:24:47 -07:00
asm-h8300
asm-i386 [PATCH] kdump: Routines for copying dump pages 2005-06-25 16:24:53 -07:00
asm-ia64 [PATCH] sched: cleanup context switch locking 2005-06-25 16:24:43 -07:00
asm-m32r
asm-m68k
asm-m68knommu
asm-mips [PATCH] sched: cleanup context switch locking 2005-06-25 16:24:43 -07:00
asm-parisc
asm-ppc [PATCH] kexec: kexec ppc support 2005-06-25 16:24:51 -07:00
asm-ppc64 [PATCH] ppc64: kexec support for ppc64 2005-06-25 16:24:51 -07:00
asm-s390 [PATCH] kexec: s390 support 2005-06-25 16:24:51 -07:00
asm-sh
asm-sh64
asm-sparc [PATCH] sched: cleanup context switch locking 2005-06-25 16:24:43 -07:00
asm-sparc64 [PATCH] sched: cleanup context switch locking 2005-06-25 16:24:43 -07:00
asm-um [PATCH] uml: add profile_pc for i386 2005-06-25 16:24:36 -07:00
asm-v850
asm-x86_64 [PATCH] Kdump: Export crash notes section address through sysfs 2005-06-25 16:24:51 -07:00
asm-xtensa
linux [SCSI] qla2xxx: Add pci ids for new ISP types. 2005-07-14 10:54:20 -04:00
math-emu
media
mtd
net
pcmcia
rxrpc
scsi [SCSI] add int_to_scsilun() function 2005-07-14 11:21:27 -04:00
sound
video