Deleted Added
full compact
scsi_modes (67830) scsi_modes (76999)
1# SCSI mode page data base.
2
3# Copyright (c) 1995 HD Associates
1# SCSI mode page data base.
2
3# Copyright (c) 1995 HD Associates
4# Copyright (c) 2001 The FreeBSD Project
4# (contact: dufault@hda.com)
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions
9# are met:
10# 1. Redistributions of source code must retain the above copyright
11# notice, this list of conditions and the following disclaimer.
12# 2. Redistributions in binary form must reproduce the above copyright
13# notice, this list of conditions and the following disclaimer in the
14# documentation and/or other materials provided with the distribution.
15# 3. The name of HD Associates
16# may not be used to endorse or promote products derived from this software
17# without specific prior written permission.
18#
19# THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES ``AS IS'' AND
20# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22# ARE DISCLAIMED. IN NO EVENT SHALL HD ASSOCIATES BE LIABLE
23# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29# SUCH DAMAGE.
30#
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#
31# $FreeBSD: head/share/misc/scsi_modes 67830 2000-10-29 00:54:59Z mjacob $
32# $FreeBSD: head/share/misc/scsi_modes 76999 2001-05-22 12:37:50Z joerg $
32#
33# The ordering is alphabetical by page name, as it appears in the SCSI spec.
34
35# 'i' is a byte-sized integral types, followed by a field width of
36# 1 through 4 (1 to 4 bytes).
37#
38# 'b' is a bit-sized integral type
39# 't' is a bitfield type- followed by a bit field width
40#
41# 'c' values are character arrays
42# 'z' values are null-padded strings
43#
44#
45# '*' suppresses assignment (for 'seeking').
46# Bitfields are MSB to LSB.
47
48
49# ALL DEVICE TYPES
50
510x0a "Control Mode Page" {
52 {Reserved} *t7
53 {RLEC} t1
54 {Queue Algorithm Modifier} t4
55 {Reserved} *t2
56 {QErr} t1
57 {DQue} t1
58 {EECA} t1
59 {Reserved} *t4
60 {RAENP} t1
61 {UAAENP} t1
62 {EAENP} t1
63 {Reserved} *i1
64 {Ready AEN Holdoff Period} i2
65}
66
670x02 "Disconnect-Reconnect Page" {
68 {Buffer Full Ratio} i1
69 {Buffer Empty Ratio} i1
70 {Bus Inactivity Limit} i2
71 {Disconnect Time Limit} i2
72 {Connect Time Limit} i2
73 {Maximum Burst Size} i2
74 {Reserved} *t6
75 {DTDC} t2
76 {Reserved} *i1
77 {Reserved} *i1
78 {Reserved} *i1
79}
80
810x09 "Peripheral Device Page" {
82 {Interface Identifier} i2
83 {Reserved} *i1
84 {Reserved} *i1
85 {Reserved} *i1
86 {Reserved} *i1
87}
88
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 {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
680x02 "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
820x09 "Peripheral Device Page" {
83 {Interface Identifier} i2
84 {Reserved} *i1
85 {Reserved} *i1
86 {Reserved} *i1
87 {Reserved} *i1
88}
89
900x1a "Power Control" {
91 {Reserved} *i1
92 {Reserved} *t6
93 {Idle} t1
94 {Standby} t1
95 {Idle Condition Timer} i4
96 {Standby Condition Timer} i4
97}
89
90# DIRECT ACCESS DEVICES
910x08 "Caching Page" {
92 {IC} t1
93 {ABPF} t1
94 {CAP} t1
95 {DISC} t1
96 {SIZE} t1
97 {WCE} t1
98 {MF} t1
99 {RCD} t1
100 {Demand Retention Priority} t4
101 {Write Retention Priority} t4
102 {Disable Pre-fetch Transfer Length} i2
103 {Minimum Pre-fetch} i2
104 {Maximum Pre-fetch} i2
105 {Maximum Pre-fetch Ceiling} i2
106}
107
1080x05 "Flexible Disk Page" {
109 {Transfer rate} i2
110 {Number of heads} i1
111 {Sectors per track} i1
112 {Data bytes per sector} i2
113 {Number of cylinders} i2
114 {Starting cylinder-write precompensation} i2
115 {Starting cylinder-reduced write current} i2
116 {Drive step rate} i2
117 {Drive step pulse width} i1
118 {Head settle delay} i2
119 {Motor on delay} i1
120 {Motor off delay} i1
121 {TRDY} t1
122 {SSN} t1
123 {MO} t1
124 {Reserved} *t5
125 {Reserved} *t4
126 {SPC} t4
127 {Write Compensation} i1
128 {Head load delay} i1
129 {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 {Data Compression Enabled} t1
275 {Date Compression Capable} t1
276 {Reserved} *t6
277 {Data Decompression Capable} t1
278 {Data Decompression Report on Exception} t2
279 {Reserved} *t5
280 {Compression Algorithm} i4
281 {Decompression Algorithm} i4
282 {Reserved} *i4
283}
284
2850x00 "Vendor-Specific";
98
99# DIRECT ACCESS DEVICES
1000x08 "Caching Page" {
101 {IC} t1
102 {ABPF} t1
103 {CAP} t1
104 {DISC} t1
105 {SIZE} t1
106 {WCE} t1
107 {MF} t1
108 {RCD} t1
109 {Demand Retention Priority} t4
110 {Write Retention Priority} t4
111 {Disable Pre-fetch Transfer Length} i2
112 {Minimum Pre-fetch} i2
113 {Maximum Pre-fetch} i2
114 {Maximum Pre-fetch Ceiling} i2
115}
116
1170x05 "Flexible Disk Page" {
118 {Transfer rate} i2
119 {Number of heads} i1
120 {Sectors per track} i1
121 {Data bytes per sector} i2
122 {Number of cylinders} i2
123 {Starting cylinder-write precompensation} i2
124 {Starting cylinder-reduced write current} i2
125 {Drive step rate} i2
126 {Drive step pulse width} i1
127 {Head settle delay} i2
128 {Motor on delay} i1
129 {Motor off delay} i1
130 {TRDY} t1
131 {SSN} t1
132 {MO} t1
133 {Reserved} *t5
134 {Reserved} *t4
135 {SPC} t4
136 {Write Compensation} i1
137 {Head load delay} i1
138 {Head unload delay} i1
139 {Pin 34} t4
140 {Pin 2} t4
141 {Pin 4} t4
142 {Pin 1} t4
143 {Medium rotation rate} i2
144 {Reserved} *i1
145 {Reserved} *i1
146}
147
1480x03 "Format Device Page" {
149 {Tracks per Zone} i2
150 {Alternate Sectors per Zone} i2
151 {Alternate Tracks per Zone} i2
152 {Alternate Tracks per Logical Unit} i2
153 {Sectors per Track} i2
154 {Data Bytes per Physical Sector} i2
155 {Interleave} i2
156 {Track Skew Factor} i2
157 {Cylinder Skew Factor} i2
158 {SSEC} t1
159 {HSEC} t1
160 {RMB} t1
161 {SURF} t1
162 {Reserved} *t4
163}
164
1650x0b "Medium Types Supported Page" {
166 {Reserved} *i1
167 {Reserved} *i1
168 {Medium type one supported} i1
169 {Medium type two supported} i1
170 {Medium type three supported} i1
171 {Medium type four supported} i1
172}
173
174# Notch page (0x0c)
1750x0c "Notch and Partition Page";
176
1770x01 "Read-Write Error Recovery Page" {
178 {AWRE (Auto Write Reallocation Enbld)} t1
179 {ARRE (Auto Read Reallocation Enbld)} t1
180 {TB (Transfer Block)} t1
181 {RC (Read Continuous)} t1
182 {EER (Enable Early Recovery)} t1
183 {PER (Post Error)} t1
184 {DTE (Disable Transfer on Error)} t1
185 {DCR (Disable Correction)} t1
186 {Read Retry Count} i1
187 {Correction Span} i1
188 {Head Offset Count} i1
189 {Data Strobe Offset Count} i1
190 {Reserved} *i1
191 {Write Retry Count} i1
192 {Reserved} *i1
193 {Recovery Time Limit} i2
194}
195
1960x04 "Rigid Disk Drive Geometry Page" {
197 {Number of Cylinders} i3
198 {Number of Heads} i1
199 {Starting Cylinder-Write Precompensation} i3
200 {Starting Cylinder-Reduced Write Current} i3
201 {Drive Step Rate} i2
202 {Landing Zone Cylinder} i3
203 {Reserved} *t6
204 {RPL} t2
205 {Rotational Offset} i1
206 {Reserved} *i1
207 {Medium Rotation Rate} i2
208 {Reserved} *i1
209 {Reserved} *i1
210}
211
2120x07 "Verify Error Recovery Page" {
213 {Reserved} *t4
214 {EER} t1
215 {PER} t1
216 {DTE} t1
217 {DCR} t1
218 {Verify Retry Count} i1
219 {Verify Correction Span} i1
220 {Reserved} *i1
221 {Reserved} *i1
222 {Reserved} *i1
223 {Reserved} *i1
224 {Reserved} *i1
225 {Verify Recovery Time Limit} i2
226}
227
2280x0E "CD-ROM Audio Control Parameters Page" {
229 {Reserved} *t5
230 {Immed} t1
231 {SOTC} t1
232 {Reserved} *t1
233 {Reserved} *i2
234 {APRVal} t1
235 {Reserved} *t3
236 {Format of LBAs / sec.} t4
237 {Logical Blocks per Second of Audio Playback} i2
238 {Reserved} *t4
239 {Output Port 0 Channel Selection} t4
240 {Output Port 0 Volume} i1
241 {Reserved} *t4
242 {Output Port 1 Channel Selection} t4
243 {Output Port 1 Volume} i1
244 {Reserved} *t4
245 {Output Port 2 Channel Selection} t4
246 {Output Port 2 Volume} i1
247 {Reserved} *t4
248 {Output Port 3 Channel Selection} t4
249 {Output Port 3 Volume} i1
250}
251
252# SEQUENTIAL ACCESS DEVICES
2530x10 "Device Configuration Page" {
254 {Reserved} *t1
255 {Change Active Partition} t1
256 {Change Active Format} t1
257 {Active Format} t5
258 {Active Partition} i1
259 {Write Buffer Full Ratio} i1
260 {Write Buffer Empty Ratio} i1
261 {Write Delay Time} i2
262 {Data Buffer Recovery} t1
263 {Block Identifiers Support} t1
264 {Report Setmarks} t1
265 {Automatic Velocity Control} t1
266 {Stop on Consecutive Filemarks} t2
267 {Recover Buffer Order} t1
268 {Report Early-Warning} t1
269 {Gap Size} i1
270 {EOD Defined} t3
271 {Enable EOD Generation} t1
272 {Synchronize at Early-Warning} t1
273 {Reserved} *t3
274 {Buffer Size at Early-Warning} i3
275 {Select Data Compression Algorithm} i1
276 {Reserved} *t5
277 {SCSI-3 Associated Write Protect} t1
278 {SCSI-3 Persistent Write Protect} t1
279 {SCSI-3 Permanent Write Protect} t1
280}
281
2820x0f "Data Compression Page" {
283 {Data Compression Enabled} t1
284 {Date Compression Capable} t1
285 {Reserved} *t6
286 {Data Decompression Capable} t1
287 {Data Decompression Report on Exception} t2
288 {Reserved} *t5
289 {Compression Algorithm} i4
290 {Decompression Algorithm} i4
291 {Reserved} *i4
292}
293
2940x00 "Vendor-Specific";