scsi_modes revision 312530
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 312530 2017-01-20 13:01:25Z 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	{SBLP (Supported Block Lengths and Protection)} 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} t4
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	{FSW (Force Sequential Write)} t1
152	{LBCSS (Logical Block Cache Segment Size)} t1
153	{DRA (Disable Read-Ahead)} t1
154	{Vendor Specific} t2
155	{SYNC_PROG} t1
156	{NV_DIS} t1
157	{Number of Cache Segments} i1
158	{Cache Segment Size} i2
159	{Reserved} *t4
160}
161
1620x05 "Flexible Disk Page" {
163	{Transfer rate} i2
164	{Number of heads} i1
165	{Sectors per track} i1
166	{Data bytes per sector} i2
167	{Number of cylinders} i2
168	{Starting cylinder-write precompensation} i2
169	{Starting cylinder-reduced write current} i2
170	{Drive step rate} i2
171	{Drive step pulse width} i1
172	{Head settle delay} i2
173	{Motor on delay} i1
174	{Motor off delay} i1
175	{TRDY} t1
176	{SSN} t1
177	{MO} t1
178	{Reserved} *t5
179	{Reserved} *t4
180	{SPC} t4
181	{Write Compensation} i1
182	{Head load delay} i1
183	{Head unload delay} i1
184	{Pin 34} t4
185	{Pin 2} t4
186	{Pin 4} t4
187	{Pin 1} t4
188	{Medium rotation rate} i2
189	{Reserved} *i1
190	{Reserved} *i1
191}
192
1930x03 "Format Device Page" {
194	{Tracks per Zone} i2
195	{Alternate Sectors per Zone} i2
196	{Alternate Tracks per Zone} i2
197	{Alternate Tracks per Logical Unit} i2
198	{Sectors per Track} i2
199	{Data Bytes per Physical Sector} i2
200	{Interleave} i2
201	{Track Skew Factor} i2
202	{Cylinder Skew Factor} i2
203	{SSEC} t1
204	{HSEC} t1
205	{RMB} t1
206	{SURF} t1
207	{Reserved} *t4
208}
209
2100x0b "Medium Types Supported Page" {
211	{Reserved} *i1
212	{Reserved} *i1
213	{Medium type one supported} i1
214	{Medium type two supported} i1
215	{Medium type three supported} i1
216	{Medium type four supported} i1
217}
218
219# Notch page (0x0c)
2200x0c "Notch and Partition Page";
221
2220x01 "Read-Write Error Recovery Page" {
223	{AWRE (Auto Write Reallocation Enbld)} t1
224	{ARRE (Auto Read Reallocation Enbld)} t1
225	{TB (Transfer Block)} t1
226	{RC (Read Continuous)} t1
227	{EER (Enable Early Recovery)} t1
228	{PER (Post Error)} t1
229	{DTE (Disable Transfer on Error)} t1
230	{DCR (Disable Correction)} t1
231	{Read Retry Count} i1
232	{Correction Span} i1
233	{Head Offset Count} i1
234	{Data Strobe Offset Count} i1
235	{LBPERE (LBP Error Reporting Enabled)} t1
236	{MWR (Misaligned Write Reporting)} t2
237	{Reserved} *t5
238	{Write Retry Count} i1
239	{Reserved} *i1
240	{Recovery Time Limit} i2
241}
242
2430x04 "Rigid Disk Drive Geometry Page" {
244	{Number of Cylinders} i3
245	{Number of Heads} i1
246	{Starting Cylinder-Write Precompensation} i3
247	{Starting Cylinder-Reduced Write Current} i3
248	{Drive Step Rate} i2
249	{Landing Zone Cylinder} i3
250	{Reserved} *t6
251	{RPL} t2
252	{Rotational Offset} i1
253	{Reserved} *i1
254	{Medium Rotation Rate} i2
255	{Reserved} *i1
256	{Reserved} *i1
257}
258
2590x07 "Verify Error Recovery Page" {
260	{Reserved} *t4
261	{EER} t1
262	{PER} t1
263	{DTE} t1
264	{DCR} t1
265	{Verify Retry Count} i1
266	{Verify Correction Span} i1
267	{Reserved} *i1
268	{Reserved} *i1
269	{Reserved} *i1
270	{Reserved} *i1
271	{Reserved} *i1
272	{Verify Recovery Time Limit} i2
273}
274
2750x0E "CD-ROM Audio Control Parameters Page" {
276	{Reserved} *t5
277	{Immed} t1
278	{SOTC} t1
279	{Reserved} *t1
280	{Reserved} *i2
281	{APRVal} t1
282	{Reserved} *t3
283	{Format of LBAs / sec.} t4
284	{Logical Blocks per Second of Audio Playback} i2
285	{Reserved} *t4
286	{Output Port 0 Channel Selection} t4
287	{Output Port 0 Volume} i1
288	{Reserved} *t4
289	{Output Port 1 Channel Selection} t4
290	{Output Port 1 Volume} i1
291	{Reserved} *t4
292	{Output Port 2 Channel Selection} t4
293	{Output Port 2 Volume} i1
294	{Reserved} *t4
295	{Output Port 3 Channel Selection} t4
296	{Output Port 3 Volume} i1
297}
298
299# SEQUENTIAL ACCESS DEVICES
3000x10 "Device Configuration Page" {
301	{Reserved} *t1
302	{Change Active Partition} t1
303	{Change Active Format} t1
304	{Active Format} t5
305	{Active Partition} i1
306	{Write Buffer Full Ratio} i1
307	{Write Buffer Empty Ratio} i1
308	{Write Delay Time} i2
309	{Data Buffer Recovery} t1
310	{Block Identifiers Support} t1
311	{Report Setmarks} t1
312	{Automatic Velocity Control} t1
313	{Stop on Consecutive Filemarks} t2
314	{Recover Buffer Order} t1
315	{Report Early-Warning} t1
316	{Gap Size} i1
317	{EOD Defined} t3
318	{Enable EOD Generation} t1
319	{Synchronize at Early-Warning} t1
320	{Reserved} *t3
321	{Buffer Size at Early-Warning} i3
322	{Select Data Compression Algorithm} i1
323	{Reserved} *t5
324	{SCSI-3 Associated Write Protect} t1
325	{SCSI-3 Persistent Write Protect} t1
326	{SCSI-3 Permanent Write Protect} t1
327}
328
3290x0f "Data Compression Page" {
330	{Data Compression Enabled} t1
331	{Date Compression Capable} t1
332	{Reserved} *t6
333	{Data Decompression Capable} t1
334	{Data Decompression Report on Exception} t2
335	{Reserved} *t5
336	{Compression Algorithm} i4
337	{Decompression Algorithm} i4
338	{Reserved} *i4
339}
340
341# Removable devices
3420x1b "Removable Block Access Capacities Page" {
343	{System Floppy Type Device} t1
344	{Supports Reporting Format Progress} t1
345	{Reserved} *t6
346	{Non CD Optical Device} t1
347	{Single or Multiple LUN Supported} t1
348	{Reserved} *t3
349	{Total Logical Units Supported} t3
350	{Reserved} *i8
351}
352
353# CD-ROM (and CD-R[W]) devices
3540x2a "CD capabilities and mechanical status page" {
355	{Reserved} *t4
356	{Method 2} t1
357	{CD-RW Read} t1
358	{CD-R Read} t1
359	{Reserved} *t4
360	{Test Write} t1
361	{CD-RW Write} t1
362	{CD-R Write} t1
363	{Reserved} *t1
364	{Multi Session} t1
365	{Mode 2 Form 2} t1
366	{Mode 2 Form 1} t1
367	{Digital Port (2)} t1
368	{Digital Port (1)} t1
369	{Composite} t1
370	{Audio Play} t1
371	{Read Bar Code} t1
372	{UPC} t1
373	{ISRC} t1
374	{C2 Pointers are supported} t1
375	{R-W De-interleaved & corrected} t1
376	{R-W Supported} t1
377	{CD-DA Stream is Accurate} t1
378	{CD-DA Commands Supported} t1
379	{Loading Mechanism Type} t3
380	{Reserved} *t1
381	{Eject} t1
382	{Prevent Jumper} t1
383	{Lock State} t1
384	{Lock} t1
385	{Reserved} *t4
386	{S/W Slot Selection} t1
387	{Changer Supports Disc Present reporting} t1
388	{Separate Channel Mute Supported} t1
389	{Separate volume levels per channel} t1
390	{Maximum Read Speed Supported (kBps)} i2
391	{Number of Volume Leves Supported} i2
392	{Buffer Size supported by Drive (KB)} i2
393	{Current Read Speed Selected (kBps)} i2
394	{Reserved} *i1
395	{Reserved} *t2
396	{Length} t2
397	{LSBF} t1
398	{RCK} t1
399	{BCK} t1
400	{Reserved} *t1
401	{Maximum Write Speed Supported (kBps)} i2
402	{Current Write Speed Supported (kBps)} i2
403};
404
4050x00 "Vendor-Specific";
406