xref: /openbsd-src/share/misc/scsi_modes (revision b2ea75c1b17e1a9a339660e7ed45cd24946b230e)
1#	$OpenBSD: scsi_modes,v 1.3 2001/02/03 08:22:44 niklas 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}
97
98# Flexible disk page:
990x05 {
100	{Transfer rate} i2
101	{Number of heads} i1
102	{Sectors per track} i1
103	{Data bytes per sector} i2
104	{Number of cylinders} i2
105	{Starting cylinder-write precompensation} i2
106	{Starting cylinder-reduced write current} i2
107	{Drive step rate} i2
108	{Drive step pulse width} i1
109	{Head settle delay} i2
110	{Motor on delay} i1
111	{Motor off delay} i1
112	{TRDY} t1
113	{SSN} t1
114	{MO} t1
115	{Reserved} *t5
116	{Reserved} *t4
117	{SPC} t4
118	{Write Compensation} i1
119	{Head load delay} i1
120	{Head unload delay} i1
121	{Pin 34} t4
122	{Pin 2} t4
123	{Pin 4} t4
124	{Pin 1} t4
125	{Medium rotation rate} i2
126	{Reserved} *i1
127	{Reserved} *i1
128}
129
130# Format device page:
1310x03 {
132	{Tracks per Zone} i2
133	{Alternate Sectors per Zone} i2
134	{Alternate Tracks per Zone} i2
135	{Alternate Tracks per Logical Unit} i2
136	{Sectors per Track} i2
137	{Data Bytes per Physical Sector} i2
138	{Interleave} i2
139	{Track Skew Factor} i2
140	{Cylinder Skew Factor} i2
141	{SSEC} t1
142	{HSEC} t1
143	{RMB} t1
144	{SURF} t1
145	{Reserved} *t4
146}
147
148# Medium types supported page:
1490x0b	{
150	{Reserved} *i1
151	{Reserved} *i1
152	{Medium type one supported} i1
153	{Medium type two supported} i1
154	{Medium type three supported} i1
155	{Medium type four supported} i1
156}
157
158# Notch page (0x0c)
159
160#  Read-Write Error Recovery Page
1610x01	{
162	{AWRE (Auto Write Reallocation Enbld)} t1
163	{ARRE (Auto Read Reallocation Enbld)} t1
164	{TB (Transfer Block)} t1
165	{RC (Read Continuous)} t1
166	{EER (Enable Early Recovery)} t1
167	{PER (Post Error)} t1
168	{DTE (Disable Transfer on Error)} t1
169	{DCR (Disable Correction)} t1
170	{Read Retry Count} i1
171	{Correction Span} i1
172	{Head Offset Count} i1
173	{Data Strobe Offset Count} i1
174	{Reserved} *i1
175	{Write Retry Count} i1
176	{Reserved} *i1
177	{Recovery Time Limit} i2
178}
179
180# Rigid Disk Drive Geometry Page
1810x04	{
182	{Number of Cylinders} i3
183	{Number of Heads} i1
184	{Starting Cylinder-Write Precompensation} i3
185	{Starting Cylinder-Reduced Write Current} i3
186	{Drive Step Rate} i2
187	{Landing Zone Cylinder} i3
188	{Reserved} *t6
189	{RPL} t2
190	{Rotational Offset} i1
191	{Reserved} *i1
192	{Medium Rotation Rate} i2
193	{Reserved} *i1
194	{Reserved} *i1
195}
196
197# Verify Error Recovery Page
1980x07	{
199	{Reserved} *t4
200	{EER} t1
201	{PER} t1
202	{DTE} t1
203	{DCR} t1
204	{Verify Retry Count} i1
205	{Verify Correction Span} i1
206	{Reserved} *i1
207	{Reserved} *i1
208	{Reserved} *i1
209	{Reserved} *i1
210	{Reserved} *i1
211	{Verify Recovery Time Limit} i2
212}
213
214# CD-ROM Audio Control Parameters Page
2150x0E	{
216	{Reserved} *t5
217	{Immed} t1
218	{SOTC} t1
219	{Reserved} *t1
220	{Reserved} *i2
221	{APRVal} t1
222	{Reserved} *t3
223	{Format of LBAs / sec.} t4
224	{Logical Blocks per Second of Audio Playback} i2
225	{Reserved} *t4
226	{Output Port 0 Channel Selection} t4
227	{Output Port 0 Volume} i1
228	{Reserved} *t4
229	{Output Port 1 Channel Selection} t4
230	{Output Port 1 Volume} i1
231	{Reserved} *t4
232	{Output Port 2 Channel Selection} t4
233	{Output Port 2 Volume} i1
234	{Reserved} *t4
235	{Output Port 3 Channel Selection} t4
236	{Output Port 3 Volume} i1
237}
238
2390x10 {
240	{Reserved} *t1
241	{Change Active Partition} t1
242	{Change Active Format} t1
243	{Active Format} t5
244	{Active Partition} i1
245	{Write Buffer Full Ratio} i1
246	{Write Buffer Empty Ratio} i1
247	{Write Delay Time} i2
248	{Data Buffer Recovery} t1
249	{Block Identifiers Support} t1
250	{Report Setmarks} t1
251	{AAutomatic Velocity Control} t1
252	{Stop on Consecutive Filemarks} t2
253	{Recover Buffer Order} t1
254	{Report Early-Warning} t1
255	{Gap Size} i1
256	{EOD Defined} t3
257	{Enable EOD Generation} t1
258	{Synchronize at Early-Warning} t1
259	{Reserved} *t3
260	{Buffer Size at Early-Warning} i3
261	{Select Data Compression Algorithm} i1
262	{Reserved} *i1
263}
264