linux/drivers/scsi/libsas
Dan Williams 8ec6552f4a [SCSI] libsas: sgpio write support
Add SFF-8485 v0.7 / SAS-1 smp-write-gpio register support to libsas.
Defer SAS-2 support unless/until it defines an sgpio interface.

Minimum implementation needed to get the lights blinking.
try_test_sas_gpio_gp_bit() provides a common method to parse the
incoming write data (raw bitstream), and the to_sas_gpio_gp_bit() helper
routine can be used as a basis for the set/clear operations for the
'read' implementation.  Host implementations parse as many bits
(ODx.[012]) as are locally supported and report the number of registers
successfully written.  If the submitted data overruns the internal
number of registers available report the write as a success with the
number of bytes remaining reported in ->resid_len.

Example (assuming an active backplane) set the "identify" pattern for
the first 21 devices:

smp_write_gpio --count=2 --data=92,49,24,92,24,92,49,24 -t 4 --index=1 /dev/bsg/sas_hostX

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-09-22 14:59:09 +04:00
..
Kconfig [SCSI] libsas: convert to standard kernel debugging 2011-01-24 12:05:38 -06:00
Makefile Merge branch 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 2011-03-20 18:14:55 -07:00
sas_ata.c [SCSI] libsas: Add option for SATA soft reset 2011-05-26 22:49:33 -05:00
sas_discover.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
sas_dump.c [SCSI] libsas: convert to standard kernel debugging 2011-01-24 12:05:38 -06:00
sas_dump.h [SCSI] libsas: convert to standard kernel debugging 2011-01-24 12:05:38 -06:00
sas_event.c
sas_expander.c [SCSI] libsas: remove expander from dev list on error 2011-07-27 15:50:58 +04:00
sas_host_smp.c [SCSI] libsas: sgpio write support 2011-09-22 14:59:09 +04:00
sas_init.c [SCSI] libsas: export sas_alloc_task() 2011-08-27 08:35:13 -06:00
sas_internal.h [SCSI] libsas: fix/amend device gone notification in sas_deform_port() 2011-05-26 22:49:32 -05:00
sas_phy.c [SCSI] libsas: fix/amend device gone notification in sas_deform_port() 2011-05-26 22:49:32 -05:00
sas_port.c [SCSI] libsas: fix/amend device gone notification in sas_deform_port() 2011-05-26 22:49:32 -05:00
sas_scsi_host.c [SCSI] libsas: fix sas_queuecommand return values 2011-08-30 12:13:46 -07:00
sas_task.c [SCSI] Unify SAM_ and SAM_STAT_ macros 2010-07-28 09:07:49 -05:00