xref: /openbsd/share/misc/scsi_modes (revision 274d7c50)
1#	$OpenBSD: scsi_modes,v 1.4 2007/12/09 21:26:19 dlg Exp $
2
3# SCSI mode page data base.
4
5# Copyright (c) 1995 HD Associates
6# (contact: dufault@hda.com)
7# All rights reserved.
8#
9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions
11# are met:
12# 1. Redistributions of source code must retain the above copyright
13#    notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright
15#    notice, this list of conditions and the following disclaimer in the
16#    documentation and/or other materials provided with the distribution.
17# 3. The name of HD Associates
18#    may not be used to endorse or promote products derived from this software
19#    without specific prior written permission.
20#
21# THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES ``AS IS'' AND
22# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24# ARE DISCLAIMED.  IN NO EVENT SHALL HD ASSOCIATES BE LIABLE
25# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31# SUCH DAMAGE.
32
33# The ordering is alphabetical by page name, as it appears in the SCSI spec.
34
35# ALL DEVICE TYPES
36
37# Control mode page:
380x0a {
39	{Reserved} *t7
40	{RLEC} t1
41	{Queue Algorithm Modifier} t4
42	{Reserved} *t2
43	{QErr} t1
44	{DQue} t1
45	{EECA} t1
46	{Reserved} *t4
47	{RAENP} t1
48	{UAAENP} t1
49	{EAENP} t1
50	{Reserved} *i1
51	{Ready AEN Holdoff Period} i2
52}
53
54# Disconnect-Reconnect Page:
550x02	{
56	{Buffer Full Ratio} i1
57	{Buffer Empty Ratio} i1
58	{Bus Inactivity Limit} i2
59	{Disconnect Time Limit} i2
60	{Connect Time Limit} i2
61	{Maximum Burst Size} i2
62	{Reserved} *t6
63	{DTDC} t2
64	{Reserved} *i1
65	{Reserved} *i1
66	{Reserved} *i1
67}
68
69# Peripheral Device Page:
700x09	{
71	{Interface Identifier} i2
72	{Reserved} *i1
73	{Reserved} *i1
74	{Reserved} *i1
75	{Reserved} *i1
76}
77
78
79# DIRECT ACCESS DEVICES
80# Caching page:
810x08 {
82	{IC} t1
83	{ABPF} t1
84	{CAP} t1
85	{DISC} t1
86	{SIZE} t1
87	{WCE} t1
88	{MF} t1
89	{RCD} t1
90	{Demand Retention Priority} t4
91	{Write Retention Priority} t4
92	{Disable Pre-fetch Transfer Length} i2
93	{Minimum Pre-fetch} i2
94	{Maximum Pre-fetch} i2
95	{Maximum Pre-fetch Ceiling} i2
96	{FSW} t1
97	{LBCSS} t1
98	{DRA} t1
99	{Vendor-specific} t2
100	{Reserved} *t2
101	{NV_DIS} t1
102	{Number of Cache Segments} i1
103	{Cache Segment Size} i2
104	{Reserved} *i1
105	{Obsolete} *i2
106}
107
108# Flexible disk page:
1090x05 {
110	{Transfer rate} i2
111	{Number of heads} i1
112	{Sectors per track} i1
113	{Data bytes per sector} i2
114	{Number of cylinders} i2
115	{Starting cylinder-write precompensation} i2
116	{Starting cylinder-reduced write current} i2
117	{Drive step rate} i2
118	{Drive step pulse width} i1
119	{Head settle delay} i2
120	{Motor on delay} i1
121	{Motor off delay} i1
122	{TRDY} t1
123	{SSN} t1
124	{MO} t1
125	{Reserved} *t5
126	{Reserved} *t4
127	{SPC} t4
128	{Write Compensation} i1
129	{Head load delay} i1
130	{Head unload delay} i1
131	{Pin 34} t4
132	{Pin 2} t4
133	{Pin 4} t4
134	{Pin 1} t4
135	{Medium rotation rate} i2
136	{Reserved} *i1
137	{Reserved} *i1
138}
139
140# Format device page:
1410x03 {
142	{Tracks per Zone} i2
143	{Alternate Sectors per Zone} i2
144	{Alternate Tracks per Zone} i2
145	{Alternate Tracks per Logical Unit} i2
146	{Sectors per Track} i2
147	{Data Bytes per Physical Sector} i2
148	{Interleave} i2
149	{Track Skew Factor} i2
150	{Cylinder Skew Factor} i2
151	{SSEC} t1
152	{HSEC} t1
153	{RMB} t1
154	{SURF} t1
155	{Reserved} *t4
156}
157
158# Medium types supported page:
1590x0b	{
160	{Reserved} *i1
161	{Reserved} *i1
162	{Medium type one supported} i1
163	{Medium type two supported} i1
164	{Medium type three supported} i1
165	{Medium type four supported} i1
166}
167
168# Notch page (0x0c)
169
170#  Read-Write Error Recovery Page
1710x01	{
172	{AWRE (Auto Write Reallocation Enbld)} t1
173	{ARRE (Auto Read Reallocation Enbld)} t1
174	{TB (Transfer Block)} t1
175	{RC (Read Continuous)} t1
176	{EER (Enable Early Recovery)} t1
177	{PER (Post Error)} t1
178	{DTE (Disable Transfer on Error)} t1
179	{DCR (Disable Correction)} t1
180	{Read Retry Count} i1
181	{Correction Span} i1
182	{Head Offset Count} i1
183	{Data Strobe Offset Count} i1
184	{Reserved} *i1
185	{Write Retry Count} i1
186	{Reserved} *i1
187	{Recovery Time Limit} i2
188}
189
190# Rigid Disk Drive Geometry Page
1910x04	{
192	{Number of Cylinders} i3
193	{Number of Heads} i1
194	{Starting Cylinder-Write Precompensation} i3
195	{Starting Cylinder-Reduced Write Current} i3
196	{Drive Step Rate} i2
197	{Landing Zone Cylinder} i3
198	{Reserved} *t6
199	{RPL} t2
200	{Rotational Offset} i1
201	{Reserved} *i1
202	{Medium Rotation Rate} i2
203	{Reserved} *i1
204	{Reserved} *i1
205}
206
207# Verify Error Recovery Page
2080x07	{
209	{Reserved} *t4
210	{EER} t1
211	{PER} t1
212	{DTE} t1
213	{DCR} t1
214	{Verify Retry Count} i1
215	{Verify Correction Span} i1
216	{Reserved} *i1
217	{Reserved} *i1
218	{Reserved} *i1
219	{Reserved} *i1
220	{Reserved} *i1
221	{Verify Recovery Time Limit} i2
222}
223
224# CD-ROM Audio Control Parameters Page
2250x0E	{
226	{Reserved} *t5
227	{Immed} t1
228	{SOTC} t1
229	{Reserved} *t1
230	{Reserved} *i2
231	{APRVal} t1
232	{Reserved} *t3
233	{Format of LBAs / sec.} t4
234	{Logical Blocks per Second of Audio Playback} i2
235	{Reserved} *t4
236	{Output Port 0 Channel Selection} t4
237	{Output Port 0 Volume} i1
238	{Reserved} *t4
239	{Output Port 1 Channel Selection} t4
240	{Output Port 1 Volume} i1
241	{Reserved} *t4
242	{Output Port 2 Channel Selection} t4
243	{Output Port 2 Volume} i1
244	{Reserved} *t4
245	{Output Port 3 Channel Selection} t4
246	{Output Port 3 Volume} i1
247}
248
2490x10 {
250	{Reserved} *t1
251	{Change Active Partition} t1
252	{Change Active Format} t1
253	{Active Format} t5
254	{Active Partition} i1
255	{Write Buffer Full Ratio} i1
256	{Write Buffer Empty Ratio} i1
257	{Write Delay Time} i2
258	{Data Buffer Recovery} t1
259	{Block Identifiers Support} t1
260	{Report Setmarks} t1
261	{AAutomatic Velocity Control} t1
262	{Stop on Consecutive Filemarks} t2
263	{Recover Buffer Order} t1
264	{Report Early-Warning} t1
265	{Gap Size} i1
266	{EOD Defined} t3
267	{Enable EOD Generation} t1
268	{Synchronize at Early-Warning} t1
269	{Reserved} *t3
270	{Buffer Size at Early-Warning} i3
271	{Select Data Compression Algorithm} i1
272	{Reserved} *i1
273}
274