Skip to content

Commit 731fc16

Browse files
mchehabmartinkpetersen
authored andcommitted
scsi: docs: convert scsi-changer.txt to ReST
Link: https://lore.kernel.org/r/433d073fa982174a19783c2e59412b724e2cf946.1583136624.git.mchehab+huawei@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 058595d commit 731fc16

3 files changed

Lines changed: 22 additions & 17 deletions

File tree

‎Documentation/scsi/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ Linux SCSI Subsystem
3131
NinjaSCSI
3232
ppa
3333
qlogicfas
34+
scsi-changer
3435

3536
scsi_transport_srp/figures
Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
.. SPDX-License-Identifier: GPL-2.0
12
3+
========================================
24
README for the SCSI media changer driver
35
========================================
46

@@ -28,15 +30,17 @@ The SCSI changer model is complex, compared to - for example - IDE-CD
2830
changers. But it allows to handle nearly all possible cases. It knows
2931
4 different types of changer elements:
3032

31-
media transport - this one shuffles around the media, i.e. the
33+
=============== ==================================================
34+
media transport this one shuffles around the media, i.e. the
3235
transport arm. Also known as "picker".
33-
storage - a slot which can hold a media.
34-
import/export - the same as above, but is accessible from outside,
36+
storage a slot which can hold a media.
37+
import/export the same as above, but is accessible from outside,
3538
i.e. there the operator (you !) can use this to
3639
fill in and remove media from the changer.
3740
Sometimes named "mailslot".
38-
data transfer - this is the device which reads/writes, i.e. the
41+
data transfer this is the device which reads/writes, i.e. the
3942
CD-ROM / Tape / whatever drive.
43+
=============== ==================================================
4044

4145
None of these is limited to one: A huge Jukebox could have slots for
4246
123 CD-ROM's, 5 CD-ROM readers (and therefore 6 SCSI ID's: the changer
@@ -131,24 +135,23 @@ timeout_init=<seconds>
131135
timeout_move=<seconds>
132136
timeout for all other commands (default: 120).
133137

134-
dt_id=<id1>,<id2>,...
135-
dt_lun=<lun1>,<lun2>,...
138+
dt_id=<id1>,<id2>,... / dt_lun=<lun1>,<lun2>,...
136139
These two allow to specify the SCSI ID and LUN for the data
137140
transfer elements. You likely don't need this as the jukebox
138141
should provide this information. But some devices don't ...
139142

140-
vendor_firsts=
141-
vendor_counts=
142-
vendor_labels=
143+
vendor_firsts=, vendor_counts=, vendor_labels=
143144
These insmod options can be used to tell the driver that there
144145
are some vendor-specific element types. Grundig for example
145146
does this. Some jukeboxes have a printer to label fresh burned
146147
CDs, which is addressed as element 0xc000 (type 5). To tell the
147-
driver about this vendor-specific element, use this:
148+
driver about this vendor-specific element, use this::
149+
148150
$ insmod ch \
149151
vendor_firsts=0xc000 \
150152
vendor_counts=1 \
151153
vendor_labels=printer
154+
152155
All three insmod options accept up to four comma-separated
153156
values, this way you can configure the element types 5-8.
154157
You likely need the SCSI specs for the device in question to
@@ -162,19 +165,20 @@ Credits
162165
I wrote this driver using the famous mailing-patches-around-the-world
163166
method. With (more or less) help from:
164167

165-
Daniel Moehwald <moehwald@hdg.de>
166-
Dane Jasper <dane@sonic.net>
167-
R. Scott Bailey <sbailey@dsddi.eds.com>
168-
Jonathan Corbet <corbet@lwn.net>
168+
- Daniel Moehwald <moehwald@hdg.de>
169+
- Dane Jasper <dane@sonic.net>
170+
- R. Scott Bailey <sbailey@dsddi.eds.com>
171+
- Jonathan Corbet <corbet@lwn.net>
169172

170173
Special thanks go to
171-
Martin Kuehne <martin.kuehne@bnbt.de>
174+
175+
- Martin Kuehne <martin.kuehne@bnbt.de>
176+
172177
for a old, second-hand (but full functional) cdrom jukebox which I use
173178
to develop/test driver and tools now.
174179

175180
Have fun,
176181

177182
Gerd
178183

179-
--
180184
Gerd Knorr <kraxel@bytesex.org>

‎drivers/scsi/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ config CHR_DEV_SCH
149149
don't need this for those tiny 6-slot cdrom changers. Media
150150
changers are listed as "Type: Medium Changer" in /proc/scsi/scsi.
151151
If you have such hardware and want to use it with linux, say Y
152-
here. Check <file:Documentation/scsi/scsi-changer.txt> for details.
152+
here. Check <file:Documentation/scsi/scsi-changer.rst> for details.
153153

154154
If you want to compile this as a module ( = code which can be
155155
inserted in and removed from the running kernel whenever you want),

0 commit comments

Comments
 (0)