scsi_modes revision 273325
1# SCSI mode page data base.
2
3# Copyright (c) 1995 HD Associates
4# Copyright (c) 2001 The FreeBSD Project
5# (contact: dufault@hda.com)
6# All rights reserved.
7# 
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions
10# are met:
11# 1. Redistributions of source code must retain the above copyright
12#    notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright
14#    notice, this list of conditions and the following disclaimer in the
15#    documentation and/or other materials provided with the distribution.
16# 3. The name of HD Associates
17#    may not be used to endorse or promote products derived from this software
18#    without specific prior written permission.
19# 
20# THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES ``AS IS'' AND
21# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23# ARE DISCLAIMED.  IN NO EVENT SHALL HD ASSOCIATES BE LIABLE
24# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30# SUCH DAMAGE.
31#
32# $FreeBSD: stable/10/share/misc/scsi_modes 273325 2014-10-20 08:09:36Z mav $
33#
34# The ordering is alphabetical by page name, as it appears in the SCSI spec.
35
36# 'i' is a byte-sized integral types, followed by a field width of 
37#  1 through 4 (1 to 4 bytes).
38#
39# 'b' is a bit-sized integral type
40# 't' is a bitfield type- followed by a bit field width
41#
42# 'c' values are character arrays
43# 'z' values are null-padded strings
44#
45#
46# '*' suppresses assignment (for 'seeking').
47# Bitfields are MSB to LSB.
48
49
50# ALL DEVICE TYPES
51
520x0a "Control Mode Page" {
53	{TST} t3
54	{TMF_ONLY} t1
55	{DPICZ} t1
56	{D_SENSE} t1
57	{GLTSD} t1
58	{RLEC} t1
59	{Queue Algorithm Modifier} t4
60	{NUAR} t1
61	{QErr} t2
62	{DQue} t1
63	{EECA} t1
64	{RAC} t1
65	{UA_INTLCK_CTRL} t2
66	{SWP} t1
67	{RAENP} t1
68	{UAAENP} t1
69	{EAENP} t1
70	{ATO} t1
71	{TAS} t1
72	{ATMPE} t1
73	{RWWP} t1
74	{Reserved} *t1
75	{Autoload Mode} t3
76	{Ready AEN Holdoff Period} i2
77	{Busy Timeout Period} i2
78	{Extended Self-Test Completion Time} i2
79}
80
810x02 "Disconnect-Reconnect Page" {
82	{Buffer Full Ratio} i1
83	{Buffer Empty Ratio} i1
84	{Bus Inactivity Limit} i2
85	{Disconnect Time Limit} i2
86	{Connect Time Limit} i2
87	{Maximum Burst Size} i2
88	{Reserved} *t6
89	{DTDC} t2
90	{Reserved} *i1
91	{Reserved} *i1
92	{Reserved} *i1
93}
94
950x15 "Extended Page";
96
970x16 "Extended Device-Type Specific Page";
98
990x1c "Informational Exceptions Control Page" {
100	{PERF} t1
101	{Reserved} *t1
102	{EBF} t1
103	{EWasc} t1
104	{DExcpt} t1
105	{TEST} t1
106	{EBACKERR} t1
107	{LogErr} t1
108	{Reserved} *t4
109	{MRIE} b4
110	{Interval Timer} i4
111	{Report Count} i4
112}
113
1140x09 "Peripheral Device Page" {
115	{Interface Identifier} i2
116	{Reserved} *i1
117	{Reserved} *i1
118	{Reserved} *i1
119	{Reserved} *i1
120}
121
1220x1a "Power Condition Page" {
123	{Reserved} *i1
124	{Reserved} *t6
125	{Idle} t1
126	{Standby} t1
127	{Idle Condition Timer} i4
128	{Standby Condition Timer} i4
129}
130
1310x18 "Protocol-Specific LUN Page";
132
1330x19 "Protocol-Specific Port Page";
134
135# DIRECT ACCESS DEVICES
1360x08 "Caching Page" {
137	{IC} t1
138	{ABPF} t1
139	{CAP} t1
140	{DISC} t1
141	{SIZE} t1
142	{WCE} t1
143	{MF} t1
144	{RCD} t1
145	{Demand Retention Priority} t4
146	{Write Retention Priority} t4
147	{Disable Pre-fetch Transfer Length} i2
148	{Minimum Pre-fetch} i2
149	{Maximum Pre-fetch} i2
150	{Maximum Pre-fetch Ceiling} i2
151}
152
1530x05 "Flexible Disk Page" {
154	{Transfer rate} i2
155	{Number of heads} i1
156	{Sectors per track} i1
157	{Data bytes per sector} i2
158	{Number of cylinders} i2
159	{Starting cylinder-write precompensation} i2
160	{Starting cylinder-reduced write current} i2
161	{Drive step rate} i2
162	{Drive step pulse width} i1
163	{Head settle delay} i2
164	{Motor on delay} i1
165	{Motor off delay} i1
166	{TRDY} t1
167	{SSN} t1
168	{MO} t1
169	{Reserved} *t5
170	{Reserved} *t4
171	{SPC} t4
172	{Write Compensation} i1
173	{Head load delay} i1
174	{Head unload delay} i1
175	{Pin 34} t4
176	{Pin 2} t4
177	{Pin 4} t4
178	{Pin 1} t4
179	{Medium rotation rate} i2
180	{Reserved} *i1
181	{Reserved} *i1
182}
183
1840x03 "Format Device Page" {
185	{Tracks per Zone} i2
186	{Alternate Sectors per Zone} i2
187	{Alternate Tracks per Zone} i2
188	{Alternate Tracks per Logical Unit} i2
189	{Sectors per Track} i2
190	{Data Bytes per Physical Sector} i2
191	{Interleave} i2
192	{Track Skew Factor} i2
193	{Cylinder Skew Factor} i2
194	{SSEC} t1
195	{HSEC} t1
196	{RMB} t1
197	{SURF} t1
198	{Reserved} *t4
199}
200
2010x0b "Medium Types Supported Page" {
202	{Reserved} *i1
203	{Reserved} *i1
204	{Medium type one supported} i1
205	{Medium type two supported} i1
206	{Medium type three supported} i1
207	{Medium type four supported} i1
208}
209
210# Notch page (0x0c)
2110x0c "Notch and Partition Page";
212
2130x01 "Read-Write Error Recovery Page" {
214	{AWRE (Auto Write Reallocation Enbld)} t1
215	{ARRE (Auto Read Reallocation Enbld)} t1
216	{TB (Transfer Block)} t1
217	{RC (Read Continuous)} t1
218	{EER (Enable Early Recovery)} t1
219	{PER (Post Error)} t1
220	{DTE (Disable Transfer on Error)} t1
221	{DCR (Disable Correction)} t1
222	{Read Retry Count} i1
223	{Correction Span} i1
224	{Head Offset Count} i1
225	{Data Strobe Offset Count} i1
226	{LBPERE (LBP Error Reporting Enabled)} t1
227	{Reserved} *t7
228	{Write Retry Count} i1
229	{Reserved} *i1
230	{Recovery Time Limit} i2
231}
232
2330x04 "Rigid Disk Drive Geometry Page" {
234	{Number of Cylinders} i3
235	{Number of Heads} i1
236	{Starting Cylinder-Write Precompensation} i3
237	{Starting Cylinder-Reduced Write Current} i3
238	{Drive Step Rate} i2
239	{Landing Zone Cylinder} i3
240	{Reserved} *t6
241	{RPL} t2
242	{Rotational Offset} i1
243	{Reserved} *i1
244	{Medium Rotation Rate} i2
245	{Reserved} *i1
246	{Reserved} *i1
247}
248
2490x07 "Verify Error Recovery Page" {
250	{Reserved} *t4
251	{EER} t1
252	{PER} t1
253	{DTE} t1
254	{DCR} t1
255	{Verify Retry Count} i1
256	{Verify Correction Span} i1
257	{Reserved} *i1
258	{Reserved} *i1
259	{Reserved} *i1
260	{Reserved} *i1
261	{Reserved} *i1
262	{Verify Recovery Time Limit} i2
263}
264
2650x0E "CD-ROM Audio Control Parameters Page" {
266	{Reserved} *t5
267	{Immed} t1
268	{SOTC} t1
269	{Reserved} *t1
270	{Reserved} *i2
271	{APRVal} t1
272	{Reserved} *t3
273	{Format of LBAs / sec.} t4
274	{Logical Blocks per Second of Audio Playback} i2
275	{Reserved} *t4
276	{Output Port 0 Channel Selection} t4
277	{Output Port 0 Volume} i1
278	{Reserved} *t4
279	{Output Port 1 Channel Selection} t4
280	{Output Port 1 Volume} i1
281	{Reserved} *t4
282	{Output Port 2 Channel Selection} t4
283	{Output Port 2 Volume} i1
284	{Reserved} *t4
285	{Output Port 3 Channel Selection} t4
286	{Output Port 3 Volume} i1
287}
288
289# SEQUENTIAL ACCESS DEVICES
2900x10 "Device Configuration Page" {
291	{Reserved} *t1
292	{Change Active Partition} t1
293	{Change Active Format} t1
294	{Active Format} t5
295	{Active Partition} i1
296	{Write Buffer Full Ratio} i1
297	{Write Buffer Empty Ratio} i1
298	{Write Delay Time} i2
299	{Data Buffer Recovery} t1
300	{Block Identifiers Support} t1
301	{Report Setmarks} t1
302	{Automatic Velocity Control} t1
303	{Stop on Consecutive Filemarks} t2
304	{Recover Buffer Order} t1
305	{Report Early-Warning} t1
306	{Gap Size} i1
307	{EOD Defined} t3
308	{Enable EOD Generation} t1
309	{Synchronize at Early-Warning} t1
310	{Reserved} *t3
311	{Buffer Size at Early-Warning} i3
312	{Select Data Compression Algorithm} i1
313	{Reserved} *t5
314	{SCSI-3 Associated Write Protect} t1
315	{SCSI-3 Persistent Write Protect} t1
316	{SCSI-3 Permanent Write Protect} t1
317}
318
3190x0f "Data Compression Page" {
320	{Data Compression Enabled} t1
321	{Date Compression Capable} t1
322	{Reserved} *t6
323	{Data Decompression Capable} t1
324	{Data Decompression Report on Exception} t2
325	{Reserved} *t5
326	{Compression Algorithm} i4
327	{Decompression Algorithm} i4
328	{Reserved} *i4
329}
330
331# Removable devices
3320x1b "Removable Block Access Capacities Page" {
333	{System Floppy Type Device} t1
334	{Supports Reporting Format Progress} t1
335	{Reserved} *t6
336	{Non CD Optical Device} t1
337	{Single or Multiple LUN Supported} t1
338	{Reserved} *t3
339	{Total Logical Units Supported} t3
340	{Reserved} *i8
341}
342
343# CD-ROM (and CD-R[W]) devices
3440x2a "CD capabilities and mechanical status page" {
345	{Reserved} *t4
346	{Method 2} t1
347	{CD-RW Read} t1
348	{CD-R Read} t1
349	{Reserved} *t4
350	{Test Write} t1
351	{CD-RW Write} t1
352	{CD-R Write} t1
353	{Reserved} *t1
354	{Multi Session} t1
355	{Mode 2 Form 2} t1
356	{Mode 2 Form 1} t1
357	{Digital Port (2)} t1
358	{Digital Port (1)} t1
359	{Composite} t1
360	{Audio Play} t1
361	{Read Bar Code} t1
362	{UPC} t1
363	{ISRC} t1
364	{C2 Pointers are supported} t1
365	{R-W De-interleaved & corrected} t1
366	{R-W Supported} t1
367	{CD-DA Stream is Accurate} t1
368	{CD-DA Commands Supported} t1
369	{Loading Mechanism Type} t3
370	{Reserved} *t1
371	{Eject} t1
372	{Prevent Jumper} t1
373	{Lock State} t1
374	{Lock} t1
375	{Reserved} *t4
376	{S/W Slot Selection} t1
377	{Changer Supports Disc Present reporting} t1
378	{Separate Channel Mute Supported} t1
379	{Separate volume levels per channel} t1
380	{Maximum Read Speed Supported (kBps)} i2
381	{Number of Volume Leves Supported} i2
382	{Buffer Size supported by Drive (KB)} i2
383	{Current Read Speed Selected (kBps)} i2
384	{Reserved} *i1
385	{Reserved} *t2
386	{Length} t2
387	{LSBF} t1
388	{RCK} t1
389	{BCK} t1
390	{Reserved} *t1
391	{Maximum Write Speed Supported (kBps)} i2
392	{Current Write Speed Supported (kBps)} i2
393};
394
3950x00 "Vendor-Specific";
396