linux/include/scsi
FUJITA Tomonori 5dc2b89e12 [SCSI] add supported_mode and active_mode attributes to the host
This adds supported_mode and active_mode attributes to
/sys/class/sys_host/hostX/ for specifying the mode that a lld supports
and the currently activated mode. The output format is similar to fc
rport roles:

luce:/sys/class/scsi_host/host0$ cat supported_mode
Initiator
luce:/sys/class/scsi_host/host0$ cat active_mode
Initiator

The mode values uses bitmap since we would support dual-mode llds in
the future like this:

luce:/sys/class/scsi_host/host0$ cat supported_mode
Initiator, Target

The supported_mode attribute looks at a scsi_host_template and the
active_mode attribute looks at a scsi_host. We would add a hook to a
scsi_host_template to change the active_mode attribute
dynamically. But now there is no hook since no lld supports that
feature.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2007-10-12 14:46:55 -04:00
..
iscsi_if.h [SCSI] iscsi class, iscsi_tcp, iser, qla4xxx: add netdevname sysfs attr 2007-06-02 15:38:04 -04:00
iscsi_proto.h [SCSI] iscsi: rename DEFAULT_MAX_RECV_DATA_SEGMENT_LENGTH 2007-03-11 11:26:50 -05:00
Kbuild
libiscsi.h [SCSI] libiscsi: fix cmd seqeunce number checking 2007-07-27 09:12:05 -04:00
libsas.h [SCSI] libsas: Remove PCI dependencies 2007-07-26 09:42:43 -04:00
libsrp.h [SCSI] tgt: convert libsrp and ibmvstgt to use srp_transport 2007-10-12 14:37:57 -04:00
sas_ata.h [SCSI] libsas: make ATA functions selectable by a config option 2007-07-22 13:23:13 -05:00
sas.h
scsi_cmnd.h [SCSI] scsi_lib: add scatter/gather data buffer accessors 2007-05-26 16:29:59 -05:00
scsi_dbg.h
scsi_device.h [SCSI] Remove unused method scsi_device_cancel 2007-07-14 16:01:16 -05:00
scsi_devinfo.h
scsi_driver.h [SCSI] sd: disentangle barriers in SCSI 2007-08-04 08:37:04 -05:00
scsi_eh.h
scsi_host.h [SCSI] add supported_mode and active_mode attributes to the host 2007-10-12 14:46:55 -04:00
scsi_ioctl.h
scsi_netlink_fc.h
scsi_netlink.h
scsi_tcq.h
scsi_tgt_if.h [SCSI] tgt: add I_T nexus support 2007-10-12 14:37:50 -04:00
scsi_tgt.h [SCSI] tgt: add I_T nexus support 2007-10-12 14:37:50 -04:00
scsi_transport_fc.h [SCSI] scsi_transport_fc: Introduce disable_target_scan flag 2007-10-12 14:46:29 -04:00
scsi_transport_iscsi.h [SCSI] libiscsi: make can_queue configurable 2007-06-02 15:34:46 -04:00
scsi_transport_sas.h [SCSI] scsi_transport_sas: add destructor for bsg 2007-07-20 12:29:07 -05:00
scsi_transport_spi.h
scsi_transport_srp.h [SCSI] tgt: move tsk_mgmt_response callback to transport class 2007-10-12 14:38:01 -04:00
scsi_transport.h [SCSI] tgt: move tsk_mgmt_response callback to transport class 2007-10-12 14:38:01 -04:00
scsi.h [SCSI] modalias for scsi devices 2007-04-17 18:15:04 -04:00
scsicam.h
sd.h [SCSI] sd: disentangle barriers in SCSI 2007-08-04 08:37:04 -05:00
sg.h
srp.h