]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - share/misc/scsi_modes
MFC r362623:
[FreeBSD/stable/8.git] / share / misc / scsi_modes
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$
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
52 0x0a "Control Mode Page" {
53         {Reserved} *t7
54         {RLEC} t1
55         {Queue Algorithm Modifier} t4
56         {Reserved} *t2
57         {QErr} t1
58         {DQue} t1
59         {EECA} t1
60         {Reserved} *t4
61         {RAENP} t1
62         {UAAENP} t1
63         {EAENP} t1
64         {Reserved} *i1
65         {Ready AEN Holdoff Period} i2
66 }
67
68 0x02 "Disconnect-Reconnect Page" {
69         {Buffer Full Ratio} i1
70         {Buffer Empty Ratio} i1
71         {Bus Inactivity Limit} i2
72         {Disconnect Time Limit} i2
73         {Connect Time Limit} i2
74         {Maximum Burst Size} i2
75         {Reserved} *t6
76         {DTDC} t2
77         {Reserved} *i1
78         {Reserved} *i1
79         {Reserved} *i1
80 }
81
82 0x15 "Extended Page";
83
84 0x16 "Extended Device-Type Specific Page";
85
86 0x1c "Informational Exceptions Control Page" {
87         {PERF} t1
88         {Reserved} *t1
89         {EBF} t1
90         {EWasc} t1
91         {DExcpt} t1
92         {TEST} t1
93         {EBACKERR} t1
94         {LogErr} t1
95         {Reserved} *t4
96         {MRIE} b4
97         {Interval Timer} i4
98         {Report Count} i4
99 }
100
101 0x09 "Peripheral Device Page" {
102         {Interface Identifier} i2
103         {Reserved} *i1
104         {Reserved} *i1
105         {Reserved} *i1
106         {Reserved} *i1
107 }
108
109 0x1a "Power Condition Page" {
110         {Reserved} *i1
111         {Reserved} *t6
112         {Idle} t1
113         {Standby} t1
114         {Idle Condition Timer} i4
115         {Standby Condition Timer} i4
116 }
117
118 0x18 "Protocol-Specific LUN Page";
119
120 0x19 "Protocol-Specific Port Page";
121
122 # DIRECT ACCESS DEVICES
123 0x08 "Caching Page" {
124         {IC} t1
125         {ABPF} t1
126         {CAP} t1
127         {DISC} t1
128         {SIZE} t1
129         {WCE} t1
130         {MF} t1
131         {RCD} t1
132         {Demand Retention Priority} t4
133         {Write Retention Priority} t4
134         {Disable Pre-fetch Transfer Length} i2
135         {Minimum Pre-fetch} i2
136         {Maximum Pre-fetch} i2
137         {Maximum Pre-fetch Ceiling} i2
138 }
139
140 0x05 "Flexible Disk Page" {
141         {Transfer rate} i2
142         {Number of heads} i1
143         {Sectors per track} i1
144         {Data bytes per sector} i2
145         {Number of cylinders} i2
146         {Starting cylinder-write precompensation} i2
147         {Starting cylinder-reduced write current} i2
148         {Drive step rate} i2
149         {Drive step pulse width} i1
150         {Head settle delay} i2
151         {Motor on delay} i1
152         {Motor off delay} i1
153         {TRDY} t1
154         {SSN} t1
155         {MO} t1
156         {Reserved} *t5
157         {Reserved} *t4
158         {SPC} t4
159         {Write Compensation} i1
160         {Head load delay} i1
161         {Head unload delay} i1
162         {Pin 34} t4
163         {Pin 2} t4
164         {Pin 4} t4
165         {Pin 1} t4
166         {Medium rotation rate} i2
167         {Reserved} *i1
168         {Reserved} *i1
169 }
170
171 0x03 "Format Device Page" {
172         {Tracks per Zone} i2
173         {Alternate Sectors per Zone} i2
174         {Alternate Tracks per Zone} i2
175         {Alternate Tracks per Logical Unit} i2
176         {Sectors per Track} i2
177         {Data Bytes per Physical Sector} i2
178         {Interleave} i2
179         {Track Skew Factor} i2
180         {Cylinder Skew Factor} i2
181         {SSEC} t1
182         {HSEC} t1
183         {RMB} t1
184         {SURF} t1
185         {Reserved} *t4
186 }
187
188 0x0b "Medium Types Supported Page" {
189         {Reserved} *i1
190         {Reserved} *i1
191         {Medium type one supported} i1
192         {Medium type two supported} i1
193         {Medium type three supported} i1
194         {Medium type four supported} i1
195 }
196
197 # Notch page (0x0c)
198 0x0c "Notch and Partition Page";
199
200 0x01 "Read-Write Error Recovery Page" {
201         {AWRE (Auto Write Reallocation Enbld)} t1
202         {ARRE (Auto Read Reallocation Enbld)} t1
203         {TB (Transfer Block)} t1
204         {RC (Read Continuous)} t1
205         {EER (Enable Early Recovery)} t1
206         {PER (Post Error)} t1
207         {DTE (Disable Transfer on Error)} t1
208         {DCR (Disable Correction)} t1
209         {Read Retry Count} i1
210         {Correction Span} i1
211         {Head Offset Count} i1
212         {Data Strobe Offset Count} i1
213         {Reserved} *i1
214         {Write Retry Count} i1
215         {Reserved} *i1
216         {Recovery Time Limit} i2
217 }
218
219 0x04 "Rigid Disk Drive Geometry Page" {
220         {Number of Cylinders} i3
221         {Number of Heads} i1
222         {Starting Cylinder-Write Precompensation} i3
223         {Starting Cylinder-Reduced Write Current} i3
224         {Drive Step Rate} i2
225         {Landing Zone Cylinder} i3
226         {Reserved} *t6
227         {RPL} t2
228         {Rotational Offset} i1
229         {Reserved} *i1
230         {Medium Rotation Rate} i2
231         {Reserved} *i1
232         {Reserved} *i1
233 }
234
235 0x07 "Verify Error Recovery Page" {
236         {Reserved} *t4
237         {EER} t1
238         {PER} t1
239         {DTE} t1
240         {DCR} t1
241         {Verify Retry Count} i1
242         {Verify Correction Span} i1
243         {Reserved} *i1
244         {Reserved} *i1
245         {Reserved} *i1
246         {Reserved} *i1
247         {Reserved} *i1
248         {Verify Recovery Time Limit} i2
249 }
250
251 0x0E "CD-ROM Audio Control Parameters Page" {
252         {Reserved} *t5
253         {Immed} t1
254         {SOTC} t1
255         {Reserved} *t1
256         {Reserved} *i2
257         {APRVal} t1
258         {Reserved} *t3
259         {Format of LBAs / sec.} t4
260         {Logical Blocks per Second of Audio Playback} i2
261         {Reserved} *t4
262         {Output Port 0 Channel Selection} t4
263         {Output Port 0 Volume} i1
264         {Reserved} *t4
265         {Output Port 1 Channel Selection} t4
266         {Output Port 1 Volume} i1
267         {Reserved} *t4
268         {Output Port 2 Channel Selection} t4
269         {Output Port 2 Volume} i1
270         {Reserved} *t4
271         {Output Port 3 Channel Selection} t4
272         {Output Port 3 Volume} i1
273 }
274
275 # SEQUENTIAL ACCESS DEVICES
276 0x10 "Device Configuration Page" {
277         {Reserved} *t1
278         {Change Active Partition} t1
279         {Change Active Format} t1
280         {Active Format} t5
281         {Active Partition} i1
282         {Write Buffer Full Ratio} i1
283         {Write Buffer Empty Ratio} i1
284         {Write Delay Time} i2
285         {Data Buffer Recovery} t1
286         {Block Identifiers Support} t1
287         {Report Setmarks} t1
288         {Automatic Velocity Control} t1
289         {Stop on Consecutive Filemarks} t2
290         {Recover Buffer Order} t1
291         {Report Early-Warning} t1
292         {Gap Size} i1
293         {EOD Defined} t3
294         {Enable EOD Generation} t1
295         {Synchronize at Early-Warning} t1
296         {Reserved} *t3
297         {Buffer Size at Early-Warning} i3
298         {Select Data Compression Algorithm} i1
299         {Reserved} *t5
300         {SCSI-3 Associated Write Protect} t1
301         {SCSI-3 Persistent Write Protect} t1
302         {SCSI-3 Permanent Write Protect} t1
303 }
304
305 0x0f "Data Compression Page" {
306         {Data Compression Enabled} t1
307         {Date Compression Capable} t1
308         {Reserved} *t6
309         {Data Decompression Capable} t1
310         {Data Decompression Report on Exception} t2
311         {Reserved} *t5
312         {Compression Algorithm} i4
313         {Decompression Algorithm} i4
314         {Reserved} *i4
315 }
316
317 # Removable devices
318 0x1b "Removable Block Access Capacities Page" {
319         {System Floppy Type Device} t1
320         {Supports Reporting Format Progress} t1
321         {Reserved} *t6
322         {Non CD Optical Device} t1
323         {Single or Multiple LUN Supported} t1
324         {Reserved} *t3
325         {Total Logical Units Supported} t3
326         {Reserved} *i8
327 }
328
329 # CD-ROM (and CD-R[W]) devices
330 0x2a "CD capabilities and mechanical status page" {
331         {Reserved} *t4
332         {Method 2} t1
333         {CD-RW Read} t1
334         {CD-R Read} t1
335         {Reserved} *t4
336         {Test Write} t1
337         {CD-RW Write} t1
338         {CD-R Write} t1
339         {Reserved} *t1
340         {Multi Session} t1
341         {Mode 2 Form 2} t1
342         {Mode 2 Form 1} t1
343         {Digital Port (2)} t1
344         {Digital Port (1)} t1
345         {Composite} t1
346         {Audio Play} t1
347         {Read Bar Code} t1
348         {UPC} t1
349         {ISRC} t1
350         {C2 Pointers are supported} t1
351         {R-W De-interleaved & corrected} t1
352         {R-W Supported} t1
353         {CD-DA Stream is Accurate} t1
354         {CD-DA Commands Supported} t1
355         {Loading Mechanism Type} t3
356         {Reserved} *t1
357         {Eject} t1
358         {Prevent Jumper} t1
359         {Lock State} t1
360         {Lock} t1
361         {Reserved} *t4
362         {S/W Slot Selection} t1
363         {Changer Supports Disc Present reporting} t1
364         {Separate Channel Mute Supported} t1
365         {Separate volume levels per channel} t1
366         {Maximum Read Speed Supported (kBps)} i2
367         {Number of Volume Leves Supported} i2
368         {Buffer Size supported by Drive (KB)} i2
369         {Current Read Speed Selected (kBps)} i2
370         {Reserved} *i1
371         {Reserved} *t2
372         {Length} t2
373         {LSBF} t1
374         {RCK} t1
375         {BCK} t1
376         {Reserved} *t1
377         {Maximum Write Speed Supported (kBps)} i2
378         {Current Write Speed Supported (kBps)} i2
379 };
380
381 0x00 "Vendor-Specific";