mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
This patch allows reading and writing of the LSI SCSI target id via /proc/scsi_tgt/mpt_scst/x (where x is the controller number). Reading that file dumps various statistics as before: # cat /proc/scsi_tgt/mpt_scst/0 ProductID :0x020b (LSI53C1030) Target Enable :True Target ID :3 Capabilities :0x7087fa0 PhysicalInterface:0x30000fe Configuration :0x3000800 OnBusTimerValue :0x0 TargetConfig :0x1 IDConfig :0x0 PortFlags :0x2000000 PortSettings :0x37020000 Device 00: 0x7087fa0, 0x0 Device 01: 0x7087fa0, 0x0 Device 02: 0x7087fa0, 0x0 Device 03: 0x7087fa0, 0x0 Device 04: 0x7087fa0, 0x0 Device 05: 0x7087fa0, 0x0 Device 06: 0x7087fa0, 0x0 Device 07: 0x7087fa0, 0x0 Device 08: 0x7087fa0, 0x0 Device 09: 0x7087fa0, 0x0 Device 10: 0x7087fa0, 0x0 Device 11: 0x7087fa0, 0x0 Device 12: 0x7087fa0, 0x0 Device 13: 0x7087fa0, 0x0 Device 14: 0x7087fa0, 0x0 Device 15: 0x7087fa0, 0x0 Writing "target_id:n" will change the SCSI target id to n. # echo "target_id:5" > /proc/scsi_tgt/mpt_scst/0 # cat /proc/scsi_tgt/mpt_scst/0 ProductID :0x020b (LSI53C1030) Target Enable :True Target ID :5 Capabilities :0x7087fa0 .... git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@68 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Target driver for LSI/MPT XXX cards =================================== Version X.X.X, XX XXX 200X -------------------------- This driver was originally developed by Hu Gang and then is developed by Erik Habbinga <erikhabbinga@inphase-tech.com>. It is on the early stage of development. The current maintainer of this driver is Erik. Please send him all question related to it (CC: scst-devel@lists.sourceforge.net). This driver tested only on Linux kernel versions 2.6.15.x. Building from the Linux kernel tree ----------------------------------- To build from the kernel tree, you should: 1. Link drivers/message/fusion/mpt_scst to $(SCST_DIR)/mpt 2. Patch drivers/message/fusion/Makefile and drivers/message/fusion/Kconfig by diffs from $(SCST_DIR)/mpt/in-tree 3. Correct in drivers/message/fusion/Makefile SCST_INC_DIR variable so it points to correct directory with SCST include files.