scsi_modes revision 67817
1294491Sdelphij# SCSI mode page data base.
2294491Sdelphij
3294491Sdelphij# Copyright (c) 1995 HD Associates
4294491Sdelphij# (contact: dufault@hda.com)
5294491Sdelphij# All rights reserved.
6294491Sdelphij# 
7294491Sdelphij# Redistribution and use in source and binary forms, with or without
8294491Sdelphij# modification, are permitted provided that the following conditions
9294491Sdelphij# are met:
10294491Sdelphij# 1. Redistributions of source code must retain the above copyright
11294491Sdelphij#    notice, this list of conditions and the following disclaimer.
12294491Sdelphij# 2. Redistributions in binary form must reproduce the above copyright
13294491Sdelphij#    notice, this list of conditions and the following disclaimer in the
14294491Sdelphij#    documentation and/or other materials provided with the distribution.
15294491Sdelphij# 3. The name of HD Associates
16294491Sdelphij#    may not be used to endorse or promote products derived from this software
17294491Sdelphij#    without specific prior written permission.
18294491Sdelphij# 
19294491Sdelphij# THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES ``AS IS'' AND
20294491Sdelphij# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21294491Sdelphij# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22294491Sdelphij# ARE DISCLAIMED.  IN NO EVENT SHALL HD ASSOCIATES BE LIABLE
23294491Sdelphij# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24294491Sdelphij# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25294491Sdelphij# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26294491Sdelphij# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27294491Sdelphij# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28294491Sdelphij# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29294491Sdelphij# SUCH DAMAGE.
30294491Sdelphij#
31294491Sdelphij# $FreeBSD: head/share/misc/scsi_modes 67817 2000-10-28 22:47:47Z mjacob $
32294491Sdelphij#
33294491Sdelphij# The ordering is alphabetical by page name, as it appears in the SCSI spec.
34294491Sdelphij
35294491Sdelphij# 'i' is a byte-sized integral types, followed by a field width of 
36294491Sdelphij#  1 through 4 (1 to 4 bytes).
37294491Sdelphij#
38294491Sdelphij# 'b' is a bit-sized integral type
39294491Sdelphij# 't' is a bitfield type- followed by a bit field width
40294491Sdelphij#
41294491Sdelphij# 'c' values are character arrays
42294491Sdelphij# 'z' values are null-padded strings
43294491Sdelphij#
44294491Sdelphij#
45294491Sdelphij# '*' suppresses assignment (for 'seeking').
46294491Sdelphij# Bitfields are MSB to LSB.
47294491Sdelphij
48294491Sdelphij
49294491Sdelphij# ALL DEVICE TYPES
50294491Sdelphij
51294491Sdelphij0x0a "Control Mode Page" {
52294491Sdelphij	{Reserved} *t7
53294491Sdelphij	{RLEC} t1
54294491Sdelphij	{Queue Algorithm Modifier} t4
55294491Sdelphij	{Reserved} *t2
56294491Sdelphij	{QErr} t1
57294491Sdelphij	{DQue} t1
58294491Sdelphij	{EECA} t1
59294491Sdelphij	{Reserved} *t4
60294491Sdelphij	{RAENP} t1
61294491Sdelphij	{UAAENP} t1
62294491Sdelphij	{EAENP} t1
63294491Sdelphij	{Reserved} *i1
64294491Sdelphij	{Ready AEN Holdoff Period} i2
65294491Sdelphij}
66294491Sdelphij
67294491Sdelphij0x02 "Disconnect-Reconnect Page" {
68294491Sdelphij	{Buffer Full Ratio} i1
69294491Sdelphij	{Buffer Empty Ratio} i1
70294491Sdelphij	{Bus Inactivity Limit} i2
71294491Sdelphij	{Disconnect Time Limit} i2
72294491Sdelphij	{Connect Time Limit} i2
73294491Sdelphij	{Maximum Burst Size} i2
74294491Sdelphij	{Reserved} *t6
75294491Sdelphij	{DTDC} t2
76294491Sdelphij	{Reserved} *i1
77294491Sdelphij	{Reserved} *i1
78294491Sdelphij	{Reserved} *i1
79294491Sdelphij}
80294491Sdelphij
81294491Sdelphij0x09 "Peripheral Device Page" {
82294491Sdelphij	{Interface Identifier} i2
83294491Sdelphij	{Reserved} *i1
84294491Sdelphij	{Reserved} *i1
85294491Sdelphij	{Reserved} *i1
86294491Sdelphij	{Reserved} *i1
87294491Sdelphij}
88294491Sdelphij
89294491Sdelphij
90294491Sdelphij# DIRECT ACCESS DEVICES
91294491Sdelphij0x08 "Caching Page" {
92294491Sdelphij	{IC} t1
93294491Sdelphij	{ABPF} t1
94294491Sdelphij	{CAP} t1
95294491Sdelphij	{DISC} t1
96294491Sdelphij	{SIZE} t1
97294491Sdelphij	{WCE} t1
98294491Sdelphij	{MF} t1
99294491Sdelphij	{RCD} t1
100294491Sdelphij	{Demand Retention Priority} t4
101294491Sdelphij	{Write Retention Priority} t4
102294491Sdelphij	{Disable Pre-fetch Transfer Length} i2
103294491Sdelphij	{Minimum Pre-fetch} i2
104294491Sdelphij	{Maximum Pre-fetch} i2
105294491Sdelphij	{Maximum Pre-fetch Ceiling} i2
106294491Sdelphij}
107294491Sdelphij
108294491Sdelphij0x05 "Flexible Disk Page" {
109294491Sdelphij	{Transfer rate} i2
110294491Sdelphij	{Number of heads} i1
111294491Sdelphij	{Sectors per track} i1
112294491Sdelphij	{Data bytes per sector} i2
113294491Sdelphij	{Number of cylinders} i2
114294491Sdelphij	{Starting cylinder-write precompensation} i2
115294491Sdelphij	{Starting cylinder-reduced write current} i2
116294491Sdelphij	{Drive step rate} i2
117294491Sdelphij	{Drive step pulse width} i1
118294491Sdelphij	{Head settle delay} i2
119294491Sdelphij	{Motor on delay} i1
120294491Sdelphij	{Motor off delay} i1
121294491Sdelphij	{TRDY} t1
122294491Sdelphij	{SSN} t1
123294491Sdelphij	{MO} t1
124294491Sdelphij	{Reserved} *t5
125294491Sdelphij	{Reserved} *t4
126294491Sdelphij	{SPC} t4
127294491Sdelphij	{Write Compensation} i1
128294491Sdelphij	{Head load delay} i1
129294491Sdelphij	{Head unload delay} i1
130	{Pin 34} t4
131	{Pin 2} t4
132	{Pin 4} t4
133	{Pin 1} t4
134	{Medium rotation rate} i2
135	{Reserved} *i1
136	{Reserved} *i1
137}
138
1390x03 "Format Device Page" {
140	{Tracks per Zone} i2
141	{Alternate Sectors per Zone} i2
142	{Alternate Tracks per Zone} i2
143	{Alternate Tracks per Logical Unit} i2
144	{Sectors per Track} i2
145	{Data Bytes per Physical Sector} i2
146	{Interleave} i2
147	{Track Skew Factor} i2
148	{Cylinder Skew Factor} i2
149	{SSEC} t1
150	{HSEC} t1
151	{RMB} t1
152	{SURF} t1
153	{Reserved} *t4
154}
155
1560x0b "Medium Types Supported Page" {
157	{Reserved} *i1
158	{Reserved} *i1
159	{Medium type one supported} i1
160	{Medium type two supported} i1
161	{Medium type three supported} i1
162	{Medium type four supported} i1
163}
164
165# Notch page (0x0c)
1660x0c "Notch and Partition Page";
167
1680x01 "Read-Write Error Recovery Page" {
169	{AWRE (Auto Write Reallocation Enbld)} t1
170	{ARRE (Auto Read Reallocation Enbld)} t1
171	{TB (Transfer Block)} t1
172	{RC (Read Continuous)} t1
173	{EER (Enable Early Recovery)} t1
174	{PER (Post Error)} t1
175	{DTE (Disable Transfer on Error)} t1
176	{DCR (Disable Correction)} t1
177	{Read Retry Count} i1
178	{Correction Span} i1
179	{Head Offset Count} i1
180	{Data Strobe Offset Count} i1
181	{Reserved} *i1
182	{Write Retry Count} i1
183	{Reserved} *i1
184	{Recovery Time Limit} i2
185}
186
1870x04 "Rigid Disk Drive Geometry Page" {
188	{Number of Cylinders} i3
189	{Number of Heads} i1
190	{Starting Cylinder-Write Precompensation} i3
191	{Starting Cylinder-Reduced Write Current} i3
192	{Drive Step Rate} i2
193	{Landing Zone Cylinder} i3
194	{Reserved} *t6
195	{RPL} t2
196	{Rotational Offset} i1
197	{Reserved} *i1
198	{Medium Rotation Rate} i2
199	{Reserved} *i1
200	{Reserved} *i1
201}
202
2030x07 "Verify Error Recovery Page" {
204	{Reserved} *t4
205	{EER} t1
206	{PER} t1
207	{DTE} t1
208	{DCR} t1
209	{Verify Retry Count} i1
210	{Verify Correction Span} i1
211	{Reserved} *i1
212	{Reserved} *i1
213	{Reserved} *i1
214	{Reserved} *i1
215	{Reserved} *i1
216	{Verify Recovery Time Limit} i2
217}
218
2190x0E "CD-ROM Audio Control Parameters Page" {
220	{Reserved} *t5
221	{Immed} t1
222	{SOTC} t1
223	{Reserved} *t1
224	{Reserved} *i2
225	{APRVal} t1
226	{Reserved} *t3
227	{Format of LBAs / sec.} t4
228	{Logical Blocks per Second of Audio Playback} i2
229	{Reserved} *t4
230	{Output Port 0 Channel Selection} t4
231	{Output Port 0 Volume} i1
232	{Reserved} *t4
233	{Output Port 1 Channel Selection} t4
234	{Output Port 1 Volume} i1
235	{Reserved} *t4
236	{Output Port 2 Channel Selection} t4
237	{Output Port 2 Volume} i1
238	{Reserved} *t4
239	{Output Port 3 Channel Selection} t4
240	{Output Port 3 Volume} i1
241}
242
243# SEQUENTIAL ACCESS DEVICES
2440x10 "Device Configuration Page" {
245	{Reserved} *t1
246	{Change Active Partition} t1
247	{Change Active Format} t1
248	{Active Format} t5
249	{Active Partition} i1
250	{Write Buffer Full Ratio} i1
251	{Write Buffer Empty Ratio} i1
252	{Write Delay Time} i2
253	{Data Buffer Recovery} t1
254	{Block Identifiers Support} t1
255	{Report Setmarks} t1
256	{Automatic Velocity Control} t1
257	{Stop on Consecutive Filemarks} t2
258	{Recover Buffer Order} t1
259	{Report Early-Warning} t1
260	{Gap Size} i1
261	{EOD Defined} t3
262	{Enable EOD Generation} t1
263	{Synchronize at Early-Warning} t1
264	{Reserved} *t3
265	{Buffer Size at Early-Warning} i3
266	{Select Data Compression Algorithm} i1
267	{Reserved} *t5
268	{SCSI-3 Associated Write Protect} t1
269	{SCSI-3 Persistent Write Protect} t1
270	{SCSI-3 Permanent Write Protect} t1
271}
272
2730x0f "Data Compression Page" {
274	{Reserved} *t1
275	{Data Compression Enabled} t1
276	{Date Compression Capable} t1
277	{Reserved} *t6
278	{Data Decompression Capable} t1
279	{Data Decompression Report on Exception} t2
280	{Reserved} *t5
281	{Compression Algorithm} i4
282	{Decompression Algorithm} i4
283	{Reserved} *i4
284}
285
2860x00 "Vendor-Specific";
287