head	1.15;
access;
symbols
	RELENG_8_4:1.15.0.2
	RELENG_9_1_0_RELEASE:1.12.28.3.2.2
	RELENG_9_1:1.12.28.3.0.2
	RELENG_9_1_BP:1.12.28.3
	RELENG_8_3_0_RELEASE:1.12.22.1.8.1
	RELENG_8_3:1.12.22.1.0.8
	RELENG_8_3_BP:1.12.22.1
	RELENG_9_0_0_RELEASE:1.12.28.2.2.1
	RELENG_9_0:1.12.28.2.0.2
	RELENG_9_0_BP:1.12.28.2
	RELENG_9:1.12.0.28
	RELENG_9_BP:1.12
	RELENG_7_4_0_RELEASE:1.12.26.1
	RELENG_8_2_0_RELEASE:1.12.22.1.6.1
	RELENG_7_4:1.12.0.26
	RELENG_7_4_BP:1.12
	RELENG_8_2:1.12.22.1.0.6
	RELENG_8_2_BP:1.12.22.1
	RELENG_8_1_0_RELEASE:1.12.22.1.4.1
	RELENG_8_1:1.12.22.1.0.4
	RELENG_8_1_BP:1.12.22.1
	RELENG_7_3_0_RELEASE:1.12.24.1
	RELENG_7_3:1.12.0.24
	RELENG_7_3_BP:1.12
	RELENG_8_0_0_RELEASE:1.12.22.1.2.1
	RELENG_8_0:1.12.22.1.0.2
	RELENG_8_0_BP:1.12.22.1
	RELENG_8:1.12.0.22
	RELENG_8_BP:1.12
	RELENG_7_2_0_RELEASE:1.12.20.1
	RELENG_7_2:1.12.0.20
	RELENG_7_2_BP:1.12
	RELENG_7_1_0_RELEASE:1.12.18.1
	RELENG_6_4_0_RELEASE:1.12.16.1
	RELENG_7_1:1.12.0.18
	RELENG_7_1_BP:1.12
	RELENG_6_4:1.12.0.16
	RELENG_6_4_BP:1.12
	RELENG_7_0_0_RELEASE:1.12
	RELENG_6_3_0_RELEASE:1.12
	RELENG_7_0:1.12.0.14
	RELENG_7_0_BP:1.12
	RELENG_6_3:1.12.0.12
	RELENG_6_3_BP:1.12
	RELENG_7:1.12.0.10
	RELENG_7_BP:1.12
	RELENG_6_2_0_RELEASE:1.12
	RELENG_6_2:1.12.0.8
	RELENG_6_2_BP:1.12
	RELENG_5_5_0_RELEASE:1.11.8.1
	RELENG_5_5:1.11.8.1.0.4
	RELENG_5_5_BP:1.11.8.1
	RELENG_6_1_0_RELEASE:1.12
	RELENG_6_1:1.12.0.6
	RELENG_6_1_BP:1.12
	RELENG_6_0_0_RELEASE:1.12
	RELENG_6_0:1.12.0.4
	RELENG_6_0_BP:1.12
	RELENG_6:1.12.0.2
	RELENG_6_BP:1.12
	RELENG_5_4_0_RELEASE:1.11.8.1
	RELENG_5_4:1.11.8.1.0.2
	RELENG_5_4_BP:1.11.8.1
	RELENG_4_11_0_RELEASE:1.6.6.4
	RELENG_4_11:1.6.6.4.0.12
	RELENG_4_11_BP:1.6.6.4
	RELENG_5_3_0_RELEASE:1.11
	RELENG_5_3:1.11.0.10
	RELENG_5_3_BP:1.11
	RELENG_5:1.11.0.8
	RELENG_5_BP:1.11
	RELENG_4_10_0_RELEASE:1.6.6.4
	RELENG_4_10:1.6.6.4.0.10
	RELENG_4_10_BP:1.6.6.4
	RELENG_5_2_1_RELEASE:1.11
	RELENG_5_2_0_RELEASE:1.11
	RELENG_5_2:1.11.0.6
	RELENG_5_2_BP:1.11
	RELENG_4_9_0_RELEASE:1.6.6.4
	RELENG_4_9:1.6.6.4.0.8
	RELENG_4_9_BP:1.6.6.4
	RELENG_5_1_0_RELEASE:1.11
	RELENG_5_1:1.11.0.4
	RELENG_5_1_BP:1.11
	RELENG_4_8_0_RELEASE:1.6.6.4
	RELENG_4_8:1.6.6.4.0.6
	RELENG_4_8_BP:1.6.6.4
	RELENG_5_0_0_RELEASE:1.11
	RELENG_5_0:1.11.0.2
	RELENG_5_0_BP:1.11
	RELENG_4_7_0_RELEASE:1.6.6.4
	RELENG_4_7:1.6.6.4.0.4
	RELENG_4_7_BP:1.6.6.4
	RELENG_4_6_2_RELEASE:1.6.6.4
	RELENG_4_6_1_RELEASE:1.6.6.4
	RELENG_4_6_0_RELEASE:1.6.6.4
	RELENG_4_6:1.6.6.4.0.2
	RELENG_4_6_BP:1.6.6.4
	RELENG_4_5_0_RELEASE:1.6.6.3
	RELENG_4_5:1.6.6.3.0.4
	RELENG_4_5_BP:1.6.6.3
	RELENG_4_4_0_RELEASE:1.6.6.3
	RELENG_4_4:1.6.6.3.0.2
	RELENG_4_4_BP:1.6.6.3
	RELENG_4_3_0_RELEASE:1.6.6.2
	RELENG_4_3:1.6.6.2.0.2
	RELENG_4_3_BP:1.6.6.2
	RELENG_4_2_0_RELEASE:1.6.6.2
	RELENG_4_1_1_RELEASE:1.6.6.1
	PRE_SMPNG:1.7
	RELENG_4_1_0_RELEASE:1.6
	RELENG_3_5_0_RELEASE:1.6
	RELENG_4_0_0_RELEASE:1.6
	RELENG_4:1.6.0.6
	RELENG_4_BP:1.6
	RELENG_3_4_0_RELEASE:1.6
	RELENG_3_3_0_RELEASE:1.6
	RELENG_3_2_PAO:1.6.0.4
	RELENG_3_2_PAO_BP:1.6
	RELENG_3_2_0_RELEASE:1.6
	RELENG_3_1_0_RELEASE:1.6
	RELENG_3:1.6.0.2
	RELENG_3_BP:1.6
	RELENG_2_2_8_RELEASE:1.4.2.2
	RELENG_3_0_0_RELEASE:1.6
	RELENG_2_2_7_RELEASE:1.4.2.2
	RELENG_2_2_6_RELEASE:1.4.2.2
	RELENG_2_2_5_RELEASE:1.4.2.1
	RELENG_2_2_2_RELEASE:1.4.2.1
	RELENG_2_2_1_RELEASE:1.4.2.1
	RELENG_2_2_0_RELEASE:1.4.2.1
	RELENG_2_1_7_RELEASE:1.2.4.1
	RELENG_2_1_6_1_RELEASE:1.2.4.1
	RELENG_2_1_6_RELEASE:1.2.4.1
	RELENG_2_2:1.4.0.2
	RELENG_2_2_BP:1.4
	RELENG_2_1_5_RELEASE:1.2.4.1
	RELENG_2_1_0_RELEASE:1.2
	RELENG_2_1_0:1.2.0.4
	RELENG_2_1_0_BP:1.2
	RELENG_2_0_5_RELEASE:1.2
	RELENG_2_0_5:1.2.0.2
	RELENG_2_0_5_BP:1.2
	RELENG_2_0_5_ALPHA:1.2;
locks; strict;
comment	@# @;


1.15
date	2012.11.17.01.50.57;	author svnexp;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2012.04.17.11.13.03;	author mav;	state Exp;
branches;
next	1.13;

1.13
date	2011.10.03.20.32.55;	author ken;	state Exp;
branches;
next	1.12;

1.12
date	2004.10.12.08.51.04;	author bms;	state Exp;
branches
	1.12.2.1
	1.12.10.1
	1.12.16.1
	1.12.18.1
	1.12.20.1
	1.12.22.1
	1.12.24.1
	1.12.26.1
	1.12.28.1;
next	1.11;

1.11
date	2002.02.24.13.27.57;	author joerg;	state Exp;
branches
	1.11.8.1;
next	1.10;

1.10
date	2001.05.22.12.37.50;	author joerg;	state Exp;
branches;
next	1.9;

1.9
date	2000.10.29.00.54.59;	author mjacob;	state Exp;
branches;
next	1.8;

1.8
date	2000.10.28.22.47.47;	author mjacob;	state Exp;
branches;
next	1.7;

1.7
date	2000.08.08.06.24.15;	author kbyanc;	state Exp;
branches;
next	1.6;

1.6
date	97.12.05.22.14.15;	author tegge;	state Exp;
branches
	1.6.2.1
	1.6.6.1;
next	1.5;

1.5
date	97.01.17.18.55.53;	author joerg;	state Exp;
branches;
next	1.4;

1.4
date	96.08.21.22.38.20;	author mpp;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	95.12.28.14.24.08;	author joerg;	state Exp;
branches;
next	1.2;

1.2
date	95.05.05.20.43.46;	author dufault;	state Exp;
branches
	1.2.4.1;
next	1.1;

1.1
date	95.04.28.19.25.17;	author dufault;	state Exp;
branches;
next	;

1.15.2.1
date	2012.11.17.01.50.57;	author svnexp;	state dead;
branches;
next	1.15.2.2;

1.15.2.2
date	2013.03.28.13.03.51;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1
date	2012.11.17.07.42.00;	author svnexp;	state Exp;
branches;
next	;

1.12.10.1
date	2012.11.17.08.04.23;	author svnexp;	state Exp;
branches;
next	;

1.12.16.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.12.18.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.12.20.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.12.22.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.12.22.1.2.1
	1.12.22.1.4.1
	1.12.22.1.6.1
	1.12.22.1.8.1;
next	1.12.22.2;

1.12.22.2
date	2012.04.24.07.28.53;	author mav;	state Exp;
branches;
next	1.12.22.3;

1.12.22.3
date	2012.11.17.10.36.23;	author svnexp;	state Exp;
branches;
next	;

1.12.22.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.12.22.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.12.22.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.12.22.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.12.22.1.8.2;

1.12.22.1.8.2
date	2012.11.17.08.25.03;	author svnexp;	state Exp;
branches;
next	;

1.12.24.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.12.26.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.12.26.2;

1.12.26.2
date	2012.11.17.08.17.00;	author svnexp;	state Exp;
branches;
next	;

1.12.28.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches;
next	1.12.28.2;

1.12.28.2
date	2011.10.06.19.15.51;	author ken;	state Exp;
branches
	1.12.28.2.2.1;
next	1.12.28.3;

1.12.28.3
date	2012.04.24.07.27.56;	author mav;	state Exp;
branches
	1.12.28.3.2.1;
next	1.12.28.4;

1.12.28.4
date	2012.11.17.11.36.42;	author svnexp;	state Exp;
branches;
next	;

1.12.28.2.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.12.28.2.2.2;

1.12.28.2.2.2
date	2012.11.17.08.36.41;	author svnexp;	state Exp;
branches;
next	;

1.12.28.3.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.12.28.3.2.2;

1.12.28.3.2.2
date	2012.11.17.08.47.31;	author svnexp;	state Exp;
branches;
next	;

1.11.8.1
date	2005.02.05.09.16.29;	author bms;	state Exp;
branches;
next	;

1.6.2.1
date	2000.10.28.22.49.16;	author mjacob;	state Exp;
branches;
next	;

1.6.6.1
date	2000.08.14.05.42.33;	author kbyanc;	state Exp;
branches;
next	1.6.6.2;

1.6.6.2
date	2000.10.29.01.01.01;	author mjacob;	state Exp;
branches;
next	1.6.6.3;

1.6.6.3
date	2001.05.25.16.16.55;	author joerg;	state Exp;
branches;
next	1.6.6.4;

1.6.6.4
date	2002.03.14.16.18.48;	author joerg;	state Exp;
branches;
next	1.6.6.5;

1.6.6.5
date	2012.11.17.07.25.04;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1
date	97.01.17.18.57.12;	author joerg;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	98.03.07.12.11.34;	author jkh;	state Exp;
branches;
next	;

1.2.4.1
date	96.06.25.17.37.27;	author joerg;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Switching exporter and resync
@
text
@# SCSI mode page data base.

# Copyright (c) 1995 HD Associates
# Copyright (c) 2001 The FreeBSD Project
# (contact: dufault@@hda.com)
# All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. The name of HD Associates
#    may not be used to endorse or promote products derived from this software
#    without specific prior written permission.
# 
# THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL HD ASSOCIATES BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: head/share/misc/scsi_modes 234376 2012-04-17 11:13:03Z mav $
#
# The ordering is alphabetical by page name, as it appears in the SCSI spec.

# 'i' is a byte-sized integral types, followed by a field width of 
#  1 through 4 (1 to 4 bytes).
#
# 'b' is a bit-sized integral type
# 't' is a bitfield type- followed by a bit field width
#
# 'c' values are character arrays
# 'z' values are null-padded strings
#
#
# '*' suppresses assignment (for 'seeking').
# Bitfields are MSB to LSB.


# ALL DEVICE TYPES

0x0a "Control Mode Page" {
	{TST} t3
	{TMF_ONLY} t1
	{DPICZ} t1
	{D_SENSE} t1
	{GLTSD} t1
	{RLEC} t1
	{Queue Algorithm Modifier} t4
	{NUAR} t1
	{QErr} t2
	{DQue} t1
	{EECA} t1
	{RAC} t1
	{UA_INTLCK_CTRL} t2
	{SWP} t1
	{RAENP} t1
	{UAAENP} t1
	{EAENP} t1
	{ATO} t1
	{TAS} t1
	{ATMPE} t1
	{RWWP} t1
	{Reserved} *t1
	{Autoload Mode} t3
	{Ready AEN Holdoff Period} i2
	{Busy Timeout Period} i2
	{Extended Self-Test Completion Time} i2
}

0x02 "Disconnect-Reconnect Page" {
	{Buffer Full Ratio} i1
	{Buffer Empty Ratio} i1
	{Bus Inactivity Limit} i2
	{Disconnect Time Limit} i2
	{Connect Time Limit} i2
	{Maximum Burst Size} i2
	{Reserved} *t6
	{DTDC} t2
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
}

0x15 "Extended Page";

0x16 "Extended Device-Type Specific Page";

0x1c "Informational Exceptions Control Page" {
	{PERF} t1
	{Reserved} *t1
	{EBF} t1
	{EWasc} t1
	{DExcpt} t1
	{TEST} t1
	{EBACKERR} t1
	{LogErr} t1
	{Reserved} *t4
	{MRIE} b4
	{Interval Timer} i4
	{Report Count} i4
}

0x09 "Peripheral Device Page" {
	{Interface Identifier} i2
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
}

0x1a "Power Condition Page" {
	{Reserved} *i1
	{Reserved} *t6
	{Idle} t1
	{Standby} t1
	{Idle Condition Timer} i4
	{Standby Condition Timer} i4
}

0x18 "Protocol-Specific LUN Page";

0x19 "Protocol-Specific Port Page";

# DIRECT ACCESS DEVICES
0x08 "Caching Page" {
	{IC} t1
	{ABPF} t1
	{CAP} t1
	{DISC} t1
	{SIZE} t1
	{WCE} t1
	{MF} t1
	{RCD} t1
	{Demand Retention Priority} t4
	{Write Retention Priority} t4
	{Disable Pre-fetch Transfer Length} i2
	{Minimum Pre-fetch} i2
	{Maximum Pre-fetch} i2
	{Maximum Pre-fetch Ceiling} i2
}

0x05 "Flexible Disk Page" {
	{Transfer rate} i2
	{Number of heads} i1
	{Sectors per track} i1
	{Data bytes per sector} i2
	{Number of cylinders} i2
	{Starting cylinder-write precompensation} i2
	{Starting cylinder-reduced write current} i2
	{Drive step rate} i2
	{Drive step pulse width} i1
	{Head settle delay} i2
	{Motor on delay} i1
	{Motor off delay} i1
	{TRDY} t1
	{SSN} t1
	{MO} t1
	{Reserved} *t5
	{Reserved} *t4
	{SPC} t4
	{Write Compensation} i1
	{Head load delay} i1
	{Head unload delay} i1
	{Pin 34} t4
	{Pin 2} t4
	{Pin 4} t4
	{Pin 1} t4
	{Medium rotation rate} i2
	{Reserved} *i1
	{Reserved} *i1
}

0x03 "Format Device Page" {
	{Tracks per Zone} i2
	{Alternate Sectors per Zone} i2
	{Alternate Tracks per Zone} i2
	{Alternate Tracks per Logical Unit} i2
	{Sectors per Track} i2
	{Data Bytes per Physical Sector} i2
	{Interleave} i2
	{Track Skew Factor} i2
	{Cylinder Skew Factor} i2
	{SSEC} t1
	{HSEC} t1
	{RMB} t1
	{SURF} t1
	{Reserved} *t4
}

0x0b "Medium Types Supported Page" {
	{Reserved} *i1
	{Reserved} *i1
	{Medium type one supported} i1
	{Medium type two supported} i1
	{Medium type three supported} i1
	{Medium type four supported} i1
}

# Notch page (0x0c)
0x0c "Notch and Partition Page";

0x01 "Read-Write Error Recovery Page" {
	{AWRE (Auto Write Reallocation Enbld)} t1
	{ARRE (Auto Read Reallocation Enbld)} t1
	{TB (Transfer Block)} t1
	{RC (Read Continuous)} t1
	{EER (Enable Early Recovery)} t1
	{PER (Post Error)} t1
	{DTE (Disable Transfer on Error)} t1
	{DCR (Disable Correction)} t1
	{Read Retry Count} i1
	{Correction Span} i1
	{Head Offset Count} i1
	{Data Strobe Offset Count} i1
	{Reserved} *i1
	{Write Retry Count} i1
	{Reserved} *i1
	{Recovery Time Limit} i2
}

0x04 "Rigid Disk Drive Geometry Page" {
	{Number of Cylinders} i3
	{Number of Heads} i1
	{Starting Cylinder-Write Precompensation} i3
	{Starting Cylinder-Reduced Write Current} i3
	{Drive Step Rate} i2
	{Landing Zone Cylinder} i3
	{Reserved} *t6
	{RPL} t2
	{Rotational Offset} i1
	{Reserved} *i1
	{Medium Rotation Rate} i2
	{Reserved} *i1
	{Reserved} *i1
}

0x07 "Verify Error Recovery Page" {
	{Reserved} *t4
	{EER} t1
	{PER} t1
	{DTE} t1
	{DCR} t1
	{Verify Retry Count} i1
	{Verify Correction Span} i1
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
	{Verify Recovery Time Limit} i2
}

0x0E "CD-ROM Audio Control Parameters Page" {
	{Reserved} *t5
	{Immed} t1
	{SOTC} t1
	{Reserved} *t1
	{Reserved} *i2
	{APRVal} t1
	{Reserved} *t3
	{Format of LBAs / sec.} t4
	{Logical Blocks per Second of Audio Playback} i2
	{Reserved} *t4
	{Output Port 0 Channel Selection} t4
	{Output Port 0 Volume} i1
	{Reserved} *t4
	{Output Port 1 Channel Selection} t4
	{Output Port 1 Volume} i1
	{Reserved} *t4
	{Output Port 2 Channel Selection} t4
	{Output Port 2 Volume} i1
	{Reserved} *t4
	{Output Port 3 Channel Selection} t4
	{Output Port 3 Volume} i1
}

# SEQUENTIAL ACCESS DEVICES
0x10 "Device Configuration Page" {
	{Reserved} *t1
	{Change Active Partition} t1
	{Change Active Format} t1
	{Active Format} t5
	{Active Partition} i1
	{Write Buffer Full Ratio} i1
	{Write Buffer Empty Ratio} i1
	{Write Delay Time} i2
	{Data Buffer Recovery} t1
	{Block Identifiers Support} t1
	{Report Setmarks} t1
	{Automatic Velocity Control} t1
	{Stop on Consecutive Filemarks} t2
	{Recover Buffer Order} t1
	{Report Early-Warning} t1
	{Gap Size} i1
	{EOD Defined} t3
	{Enable EOD Generation} t1
	{Synchronize at Early-Warning} t1
	{Reserved} *t3
	{Buffer Size at Early-Warning} i3
	{Select Data Compression Algorithm} i1
	{Reserved} *t5
	{SCSI-3 Associated Write Protect} t1
	{SCSI-3 Persistent Write Protect} t1
	{SCSI-3 Permanent Write Protect} t1
}

0x0f "Data Compression Page" {
	{Data Compression Enabled} t1
	{Date Compression Capable} t1
	{Reserved} *t6
	{Data Decompression Capable} t1
	{Data Decompression Report on Exception} t2
	{Reserved} *t5
	{Compression Algorithm} i4
	{Decompression Algorithm} i4
	{Reserved} *i4
}

# Removable devices
0x1b "Removable Block Access Capacities Page" {
	{System Floppy Type Device} t1
	{Supports Reporting Format Progress} t1
	{Reserved} *t6
	{Non CD Optical Device} t1
	{Single or Multiple LUN Supported} t1
	{Reserved} *t3
	{Total Logical Units Supported} t3
	{Reserved} *i8
}

# CD-ROM (and CD-R[W]) devices
0x2a "CD capabilities and mechanical status page" {
	{Reserved} *t4
	{Method 2} t1
	{CD-RW Read} t1
	{CD-R Read} t1
	{Reserved} *t4
	{Test Write} t1
	{CD-RW Write} t1
	{CD-R Write} t1
	{Reserved} *t1
	{Multi Session} t1
	{Mode 2 Form 2} t1
	{Mode 2 Form 1} t1
	{Digital Port (2)} t1
	{Digital Port (1)} t1
	{Composite} t1
	{Audio Play} t1
	{Read Bar Code} t1
	{UPC} t1
	{ISRC} t1
	{C2 Pointers are supported} t1
	{R-W De-interleaved & corrected} t1
	{R-W Supported} t1
	{CD-DA Stream is Accurate} t1
	{CD-DA Commands Supported} t1
	{Loading Mechanism Type} t3
	{Reserved} *t1
	{Eject} t1
	{Prevent Jumper} t1
	{Lock State} t1
	{Lock} t1
	{Reserved} *t4
	{S/W Slot Selection} t1
	{Changer Supports Disc Present reporting} t1
	{Separate Channel Mute Supported} t1
	{Separate volume levels per channel} t1
	{Maximum Read Speed Supported (kBps)} i2
	{Number of Volume Leves Supported} i2
	{Buffer Size supported by Drive (KB)} i2
	{Current Read Speed Selected (kBps)} i2
	{Reserved} *i1
	{Reserved} *t2
	{Length} t2
	{LSBF} t1
	{RCK} t1
	{BCK} t1
	{Reserved} *t1
	{Maximum Write Speed Supported (kBps)} i2
	{Current Write Speed Supported (kBps)} i2
};

0x00 "Vendor-Specific";
@


1.15.2.1
log
@file scsi_modes was added on branch RELENG_8_4 on 2013-03-28 13:03:51 +0000
@
text
@d1 394
@


1.15.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 381
# SCSI mode page data base.

# Copyright (c) 1995 HD Associates
# Copyright (c) 2001 The FreeBSD Project
# (contact: dufault@@hda.com)
# All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. The name of HD Associates
#    may not be used to endorse or promote products derived from this software
#    without specific prior written permission.
# 
# THIS SOFTWARE IS PROVIDED BY HD ASSOCIATES ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL HD ASSOCIATES BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: releng/8.4/share/misc/scsi_modes 234639 2012-04-24 07:28:53Z mav $
#
# The ordering is alphabetical by page name, as it appears in the SCSI spec.

# 'i' is a byte-sized integral types, followed by a field width of 
#  1 through 4 (1 to 4 bytes).
#
# 'b' is a bit-sized integral type
# 't' is a bitfield type- followed by a bit field width
#
# 'c' values are character arrays
# 'z' values are null-padded strings
#
#
# '*' suppresses assignment (for 'seeking').
# Bitfields are MSB to LSB.


# ALL DEVICE TYPES

0x0a "Control Mode Page" {
	{Reserved} *t7
	{RLEC} t1
	{Queue Algorithm Modifier} t4
	{Reserved} *t2
	{QErr} t1
	{DQue} t1
	{EECA} t1
	{Reserved} *t4
	{RAENP} t1
	{UAAENP} t1
	{EAENP} t1
	{Reserved} *i1
	{Ready AEN Holdoff Period} i2
}

0x02 "Disconnect-Reconnect Page" {
	{Buffer Full Ratio} i1
	{Buffer Empty Ratio} i1
	{Bus Inactivity Limit} i2
	{Disconnect Time Limit} i2
	{Connect Time Limit} i2
	{Maximum Burst Size} i2
	{Reserved} *t6
	{DTDC} t2
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
}

0x15 "Extended Page";

0x16 "Extended Device-Type Specific Page";

0x1c "Informational Exceptions Control Page" {
	{PERF} t1
	{Reserved} *t1
	{EBF} t1
	{EWasc} t1
	{DExcpt} t1
	{TEST} t1
	{EBACKERR} t1
	{LogErr} t1
	{Reserved} *t4
	{MRIE} b4
	{Interval Timer} i4
	{Report Count} i4
}

0x09 "Peripheral Device Page" {
	{Interface Identifier} i2
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
}

0x1a "Power Condition Page" {
	{Reserved} *i1
	{Reserved} *t6
	{Idle} t1
	{Standby} t1
	{Idle Condition Timer} i4
	{Standby Condition Timer} i4
}

0x18 "Protocol-Specific LUN Page";

0x19 "Protocol-Specific Port Page";

# DIRECT ACCESS DEVICES
0x08 "Caching Page" {
	{IC} t1
	{ABPF} t1
	{CAP} t1
	{DISC} t1
	{SIZE} t1
	{WCE} t1
	{MF} t1
	{RCD} t1
	{Demand Retention Priority} t4
	{Write Retention Priority} t4
	{Disable Pre-fetch Transfer Length} i2
	{Minimum Pre-fetch} i2
	{Maximum Pre-fetch} i2
	{Maximum Pre-fetch Ceiling} i2
}

0x05 "Flexible Disk Page" {
	{Transfer rate} i2
	{Number of heads} i1
	{Sectors per track} i1
	{Data bytes per sector} i2
	{Number of cylinders} i2
	{Starting cylinder-write precompensation} i2
	{Starting cylinder-reduced write current} i2
	{Drive step rate} i2
	{Drive step pulse width} i1
	{Head settle delay} i2
	{Motor on delay} i1
	{Motor off delay} i1
	{TRDY} t1
	{SSN} t1
	{MO} t1
	{Reserved} *t5
	{Reserved} *t4
	{SPC} t4
	{Write Compensation} i1
	{Head load delay} i1
	{Head unload delay} i1
	{Pin 34} t4
	{Pin 2} t4
	{Pin 4} t4
	{Pin 1} t4
	{Medium rotation rate} i2
	{Reserved} *i1
	{Reserved} *i1
}

0x03 "Format Device Page" {
	{Tracks per Zone} i2
	{Alternate Sectors per Zone} i2
	{Alternate Tracks per Zone} i2
	{Alternate Tracks per Logical Unit} i2
	{Sectors per Track} i2
	{Data Bytes per Physical Sector} i2
	{Interleave} i2
	{Track Skew Factor} i2
	{Cylinder Skew Factor} i2
	{SSEC} t1
	{HSEC} t1
	{RMB} t1
	{SURF} t1
	{Reserved} *t4
}

0x0b "Medium Types Supported Page" {
	{Reserved} *i1
	{Reserved} *i1
	{Medium type one supported} i1
	{Medium type two supported} i1
	{Medium type three supported} i1
	{Medium type four supported} i1
}

# Notch page (0x0c)
0x0c "Notch and Partition Page";

0x01 "Read-Write Error Recovery Page" {
	{AWRE (Auto Write Reallocation Enbld)} t1
	{ARRE (Auto Read Reallocation Enbld)} t1
	{TB (Transfer Block)} t1
	{RC (Read Continuous)} t1
	{EER (Enable Early Recovery)} t1
	{PER (Post Error)} t1
	{DTE (Disable Transfer on Error)} t1
	{DCR (Disable Correction)} t1
	{Read Retry Count} i1
	{Correction Span} i1
	{Head Offset Count} i1
	{Data Strobe Offset Count} i1
	{Reserved} *i1
	{Write Retry Count} i1
	{Reserved} *i1
	{Recovery Time Limit} i2
}

0x04 "Rigid Disk Drive Geometry Page" {
	{Number of Cylinders} i3
	{Number of Heads} i1
	{Starting Cylinder-Write Precompensation} i3
	{Starting Cylinder-Reduced Write Current} i3
	{Drive Step Rate} i2
	{Landing Zone Cylinder} i3
	{Reserved} *t6
	{RPL} t2
	{Rotational Offset} i1
	{Reserved} *i1
	{Medium Rotation Rate} i2
	{Reserved} *i1
	{Reserved} *i1
}

0x07 "Verify Error Recovery Page" {
	{Reserved} *t4
	{EER} t1
	{PER} t1
	{DTE} t1
	{DCR} t1
	{Verify Retry Count} i1
	{Verify Correction Span} i1
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
	{Reserved} *i1
	{Verify Recovery Time Limit} i2
}

0x0E "CD-ROM Audio Control Parameters Page" {
	{Reserved} *t5
	{Immed} t1
	{SOTC} t1
	{Reserved} *t1
	{Reserved} *i2
	{APRVal} t1
	{Reserved} *t3
	{Format of LBAs / sec.} t4
	{Logical Blocks per Second of Audio Playback} i2
	{Reserved} *t4
	{Output Port 0 Channel Selection} t4
	{Output Port 0 Volume} i1
	{Reserved} *t4
	{Output Port 1 Channel Selection} t4
	{Output Port 1 Volume} i1
	{Reserved} *t4
	{Output Port 2 Channel Selection} t4
	{Output Port 2 Volume} i1
	{Reserved} *t4
	{Output Port 3 Channel Selection} t4
	{Output Port 3 Volume} i1
}

# SEQUENTIAL ACCESS DEVICES
0x10 "Device Configuration Page" {
	{Reserved} *t1
	{Change Active Partition} t1
	{Change Active Format} t1
	{Active Format} t5
	{Active Partition} i1
	{Write Buffer Full Ratio} i1
	{Write Buffer Empty Ratio} i1
	{Write Delay Time} i2
	{Data Buffer Recovery} t1
	{Block Identifiers Support} t1
	{Report Setmarks} t1
	{Automatic Velocity Control} t1
	{Stop on Consecutive Filemarks} t2
	{Recover Buffer Order} t1
	{Report Early-Warning} t1
	{Gap Size} i1
	{EOD Defined} t3
	{Enable EOD Generation} t1
	{Synchronize at Early-Warning} t1
	{Reserved} *t3
	{Buffer Size at Early-Warning} i3
	{Select Data Compression Algorithm} i1
	{Reserved} *t5
	{SCSI-3 Associated Write Protect} t1
	{SCSI-3 Persistent Write Protect} t1
	{SCSI-3 Permanent Write Protect} t1
}

0x0f "Data Compression Page" {
	{Data Compression Enabled} t1
	{Date Compression Capable} t1
	{Reserved} *t6
	{Data Decompression Capable} t1
	{Data Decompression Report on Exception} t2
	{Reserved} *t5
	{Compression Algorithm} i4
	{Decompression Algorithm} i4
	{Reserved} *i4
}

# Removable devices
0x1b "Removable Block Access Capacities Page" {
	{System Floppy Type Device} t1
	{Supports Reporting Format Progress} t1
	{Reserved} *t6
	{Non CD Optical Device} t1
	{Single or Multiple LUN Supported} t1
	{Reserved} *t3
	{Total Logical Units Supported} t3
	{Reserved} *i8
}

# CD-ROM (and CD-R[W]) devices
0x2a "CD capabilities and mechanical status page" {
	{Reserved} *t4
	{Method 2} t1
	{CD-RW Read} t1
	{CD-R Read} t1
	{Reserved} *t4
	{Test Write} t1
	{CD-RW Write} t1
	{CD-R Write} t1
	{Reserved} *t1
	{Multi Session} t1
	{Mode 2 Form 2} t1
	{Mode 2 Form 1} t1
	{Digital Port (2)} t1
	{Digital Port (1)} t1
	{Composite} t1
	{Audio Play} t1
	{Read Bar Code} t1
	{UPC} t1
	{ISRC} t1
	{C2 Pointers are supported} t1
	{R-W De-interleaved & corrected} t1
	{R-W Supported} t1
	{CD-DA Stream is Accurate} t1
	{CD-DA Commands Supported} t1
	{Loading Mechanism Type} t3
	{Reserved} *t1
	{Eject} t1
	{Prevent Jumper} t1
	{Lock State} t1
	{Lock} t1
	{Reserved} *t4
	{S/W Slot Selection} t1
	{Changer Supports Disc Present reporting} t1
	{Separate Channel Mute Supported} t1
	{Separate volume levels per channel} t1
	{Maximum Read Speed Supported (kBps)} i2
	{Number of Volume Leves Supported} i2
	{Buffer Size supported by Drive (KB)} i2
	{Current Read Speed Selected (kBps)} i2
	{Reserved} *i1
	{Reserved} *t2
	{Length} t2
	{LSBF} t1
	{RCK} t1
	{BCK} t1
	{Reserved} *t1
	{Maximum Write Speed Supported (kBps)} i2
	{Current Write Speed Supported (kBps)} i2
};

0x00 "Vendor-Specific";
@


1.14
log
@SVN rev 234376 on 2012-04-17 11:13:03Z by mav

Add some more SCSI mode pages from SPC-4 spec.

MFC after:	1 week
@
text
@d32 1
a32 1
# $FreeBSD$
@


1.13
log
@SVN rev 225950 on 2011-10-03 20:32:55Z by ken

Add descriptor sense support to CAM, and honor sense residuals properly in
CAM.

Desriptor sense is a new sense data format that originated in SPC-3.  Among
other things, it allows for an 8-byte info field, which is necessary to
pass back block numbers larger than 4 bytes.

This change adds a number of new functions to scsi_all.c (and therefore
libcam) that abstract out most access to sense data.

This includes a bump of CAM_VERSION, because the CCB ABI has changed.
Userland programs that use the CAM pass(4) driver will need to be
recompiled.

camcontrol.c:	Change uses of scsi_extract_sense() to use
		scsi_extract_sense_len().

		Use scsi_get_sks() instead of accessing sense key specific
		data directly.

scsi_modes:	Update the control mode page to the latest version (SPC-4).

scsi_cmds.c,
scsi_target.c:	Change references to struct scsi_sense_data to struct
		scsi_sense_data_fixed.  This should be changed to allow the
		user to specify fixed or descriptor sense, and then use
		scsi_set_sense_data() to build the sense data.

ps3cdrom.c:	Use scsi_set_sense_data() instead of setting sense data
		manually.

cam_periph.c:	Use scsi_extract_sense_len() instead of using
		scsi_extract_sense() or accessing sense data directly.

cam_ccb.h:	Bump the CAM_VERSION from 0x15 to 0x16.  The change of
		struct scsi_sense_data from 32 to 252 bytes changes the
		size of struct ccb_scsiio, but not the size of union ccb.
		So the version must be bumped to prevent structure
		mis-matches.

scsi_all.h:	Lots of updated SCSI sense data and other structures.

		Add function prototypes for the new sense data functions.

		Take out the inline implementation of scsi_extract_sense().
		It is now too large to put in a header file.

		Add macros to calculate whether fields are present and
		filled in fixed and descriptor sense data

scsi_all.c:	In scsi_op_desc(), allow the user to pass in NULL inquiry
		data, and we'll assume a direct access device in that case.

		Changed the SCSI RESERVED sense key name and description
		to COMPLETED, as it is now defined in the spec.

		Change the error recovery action for a number of read errors
		to prevent lots of retries when the drive has said that the
		block isn't accessible.  This speeds up reconstruction of
		the block by any RAID software running on top of the drive
		(e.g. ZFS).

		In scsi_sense_desc(), allow for invalid sense key numbers.
		This allows calling this routine without checking the input
		values first.

		Change scsi_error_action() to use scsi_extract_sense_len(),
		and handle things when invalid asc/ascq values are
		encountered.

		Add a new routine, scsi_desc_iterate(), that will call the
		supplied function for every descriptor in descriptor format
		sense data.

		Add scsi_set_sense_data(), and scsi_set_sense_data_va(),
		which build descriptor and fixed format sense data.  They
		currently default to fixed format sense data.

		Add a number of scsi_get_*() functions, which get different
		types of sense data fields from either fixed or descriptor
		format sense data, if the data is present.

		Add a number of scsi_*_sbuf() functions, which print
		formatted versions of various sense data fields.  These
		functions work for either fixed or descriptor sense.

		Add a number of scsi_sense_*_sbuf() functions, which have a
		standard calling interface and print the indicated field.
		These functions take descriptors only.

		Add scsi_sense_desc_sbuf(), which will print a formatted
		version of the given sense descriptor.

		Pull out a majority of the scsi_sense_sbuf() function and
		put it into scsi_sense_only_sbuf().  This allows callers
		that don't use struct ccb_scsiio to easily utilize the
		printing routines.  Revamp that function to handle
		descriptor sense and use the new sense fetching and
		printing routines.

		Move scsi_extract_sense() into scsi_all.c, and implement it
		in terms of the new function, scsi_extract_sense_len().
		The _len() version takes a length (which should be the
		sense length - residual) and can indicate which fields are
		present and valid in the sense data.

		Add a couple of new scsi_get_*() routines to get the sense
		key, asc, and ascq only.

mly.c:		Rename struct scsi_sense_data to struct
		scsi_sense_data_fixed.

sbp_targ.c:	Use the new sense fetching routines to get sense data
		instead of accessing it directly.

sbp.c:		Change the firewire/SCSI sense data transformation code to
		use struct scsi_sense_data_fixed instead of struct
		scsi_sense_data.  This should be changed later to use
		scsi_set_sense_data().

ciss.c:		Calculate the sense residual properly.  Use
		scsi_get_sense_key() to fetch the sense key.

mps_sas.c,
mpt_cam.c:	Set the sense residual properly.

iir.c:		Use scsi_set_sense_data() instead of building sense data by
		hand.

iscsi_subr.c:	Use scsi_extract_sense_len() instead of grabbing sense data
		directly.

umass.c:	Use scsi_set_sense_data() to build sense data.

		Grab the sense key using scsi_get_sense_key().

		Calculate the sense residual properly.

isp_freebsd.h:	Use scsi_get_*() routines to grab asc, ascq, and sense key
		values.

		Calculate and set the sense residual.

MFC after:	3 days
Sponsored by:	Spectra Logic Corporation
@
text
@d95 19
d122 1
a122 1
0x1a "Power Control" {
d131 4
@


1.12
log
@Add mode page 0x1b, "Removable Block Access Capacities". This mode page is
implemented by USB floppy devices using the UFI command set.

Reviewed by:	ken, scottl
Source:		USB Mass Storage UFI Specification v1.0
MFC after:	2 weeks
@
text
@d53 5
a57 1
	{Reserved} *t7
d60 2
a61 2
	{Reserved} *t2
	{QErr} t1
d64 3
a66 1
	{Reserved} *t4
d70 6
a75 1
	{Reserved} *i1
d77 2
@


1.12.10.1
log
@Switch importer
@
text
@d32 1
a32 1
# $FreeBSD: stable/7/share/misc/scsi_modes 136422 2004-10-12 08:51:04Z bms $
@


1.12.2.1
log
@Switch importer
@
text
@d32 1
a32 1
# $FreeBSD: stable/6/share/misc/scsi_modes 136422 2004-10-12 08:51:04Z bms $
@


1.12.28.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.12.28.2
log
@SVN rev 226067 on 2011-10-06 19:15:51Z by ken

MFC r225950:

Add descriptor sense support to CAM, and honor sense residuals properly in
CAM.

Desriptor sense is a new sense data format that originated in SPC-3.  Among
other things, it allows for an 8-byte info field, which is necessary to
pass back block numbers larger than 4 bytes.

This change adds a number of new functions to scsi_all.c (and therefore
libcam) that abstract out most access to sense data.

This includes a bump of CAM_VERSION, because the CCB ABI has changed.
Userland programs that use the CAM pass(4) driver will need to be
recompiled.

camcontrol.c:	Change uses of scsi_extract_sense() to use
		scsi_extract_sense_len().

		Use scsi_get_sks() instead of accessing sense key specific
		data directly.

scsi_modes:	Update the control mode page to the latest version (SPC-4).

scsi_cmds.c,
scsi_target.c:	Change references to struct scsi_sense_data to struct
		scsi_sense_data_fixed.  This should be changed to allow the
		user to specify fixed or descriptor sense, and then use
		scsi_set_sense_data() to build the sense data.

ps3cdrom.c:	Use scsi_set_sense_data() instead of setting sense data
		manually.

cam_periph.c:	Use scsi_extract_sense_len() instead of using
		scsi_extract_sense() or accessing sense data directly.

cam_ccb.h:	Bump the CAM_VERSION from 0x15 to 0x16.  The change of
		struct scsi_sense_data from 32 to 252 bytes changes the
		size of struct ccb_scsiio, but not the size of union ccb.
		So the version must be bumped to prevent structure
		mis-matches.

scsi_all.h:	Lots of updated SCSI sense data and other structures.

		Add function prototypes for the new sense data functions.

		Take out the inline implementation of scsi_extract_sense().
		It is now too large to put in a header file.

		Add macros to calculate whether fields are present and
		filled in fixed and descriptor sense data

scsi_all.c:	In scsi_op_desc(), allow the user to pass in NULL inquiry
		data, and we'll assume a direct access device in that case.

		Changed the SCSI RESERVED sense key name and description
		to COMPLETED, as it is now defined in the spec.

		Change the error recovery action for a number of read errors
		to prevent lots of retries when the drive has said that the
		block isn't accessible.  This speeds up reconstruction of
		the block by any RAID software running on top of the drive
		(e.g. ZFS).

		In scsi_sense_desc(), allow for invalid sense key numbers.
		This allows calling this routine without checking the input
		values first.

		Change scsi_error_action() to use scsi_extract_sense_len(),
		and handle things when invalid asc/ascq values are
		encountered.

		Add a new routine, scsi_desc_iterate(), that will call the
		supplied function for every descriptor in descriptor format
		sense data.

		Add scsi_set_sense_data(), and scsi_set_sense_data_va(),
		which build descriptor and fixed format sense data.  They
		currently default to fixed format sense data.

		Add a number of scsi_get_*() functions, which get different
		types of sense data fields from either fixed or descriptor
		format sense data, if the data is present.

		Add a number of scsi_*_sbuf() functions, which print
		formatted versions of various sense data fields.  These
		functions work for either fixed or descriptor sense.

		Add a number of scsi_sense_*_sbuf() functions, which have a
		standard calling interface and print the indicated field.
		These functions take descriptors only.

		Add scsi_sense_desc_sbuf(), which will print a formatted
		version of the given sense descriptor.

		Pull out a majority of the scsi_sense_sbuf() function and
		put it into scsi_sense_only_sbuf().  This allows callers
		that don't use struct ccb_scsiio to easily utilize the
		printing routines.  Revamp that function to handle
		descriptor sense and use the new sense fetching and
		printing routines.

		Move scsi_extract_sense() into scsi_all.c, and implement it
		in terms of the new function, scsi_extract_sense_len().
		The _len() version takes a length (which should be the
		sense length - residual) and can indicate which fields are
		present and valid in the sense data.

		Add a couple of new scsi_get_*() routines to get the sense
		key, asc, and ascq only.

mly.c:		Rename struct scsi_sense_data to struct
		scsi_sense_data_fixed.

sbp_targ.c:	Use the new sense fetching routines to get sense data
		instead of accessing it directly.

sbp.c:		Change the firewire/SCSI sense data transformation code to
		use struct scsi_sense_data_fixed instead of struct
		scsi_sense_data.  This should be changed later to use
		scsi_set_sense_data().

ciss.c:		Calculate the sense residual properly.  Use
		scsi_get_sense_key() to fetch the sense key.

mps_sas.c,
mpt_cam.c:	Set the sense residual properly.

iir.c:		Use scsi_set_sense_data() instead of building sense data by
		hand.

iscsi_subr.c:	Use scsi_extract_sense_len() instead of grabbing sense data
		directly.

umass.c:	Use scsi_set_sense_data() to build sense data.

		Grab the sense key using scsi_get_sense_key().

		Calculate the sense residual properly.

isp_freebsd.h:	Use scsi_get_*() routines to grab asc, ascq, and sense key
		values.

		Calculate and set the sense residual.

Approved by:	re (kib)
Sponsored by:	Spectra Logic Corporation
@
text
@d53 1
a53 5
	{TST} t3
	{TMF_ONLY} t1
	{DPICZ} t1
	{D_SENSE} t1
	{GLTSD} t1
d56 2
a57 2
	{NUAR} t1
	{QErr} t2
d60 1
a60 3
	{RAC} t1
	{UA_INTLCK_CTRL} t2
	{SWP} t1
d64 1
a64 6
	{ATO} t1
	{TAS} t1
	{ATMPE} t1
	{RWWP} t1
	{Reserved} *t1
	{Autoload Mode} t3
a65 2
	{Busy Timeout Period} i2
	{Extended Self-Test Completion Time} i2
@


1.12.28.3
log
@SVN rev 234638 on 2012-04-24 07:27:56Z by mav

MFC r234376:
Add some more SCSI mode pages from SPC-4 spec.
@
text
@a94 19
0x15 "Extended Page";

0x16 "Extended Device-Type Specific Page";

0x1c "Informational Exceptions Control Page" {
	{PERF} t1
	{Reserved} *t1
	{EBF} t1
	{EWasc} t1
	{DExcpt} t1
	{TEST} t1
	{EBACKERR} t1
	{LogErr} t1
	{Reserved} *t4
	{MRIE} b4
	{Interval Timer} i4
	{Report Count} i4
}

d103 1
a103 1
0x1a "Power Condition Page" {
a111 4
0x18 "Protocol-Specific LUN Page";

0x19 "Protocol-Specific Port Page";

@


1.12.28.4
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d32 1
a32 1
# $FreeBSD: stable/9/share/misc/scsi_modes 234638 2012-04-24 07:27:56Z mav $
@


1.12.28.3.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.12.28.3.2.2
log
@Switch importer
@
text
@d32 1
a32 1
# $FreeBSD: releng/9.1/share/misc/scsi_modes 234638 2012-04-24 07:27:56Z mav $
@


1.12.28.2.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.12.28.2.2.2
log
@Switch importer
@
text
@d32 1
a32 1
# $FreeBSD: releng/9.0/share/misc/scsi_modes 226067 2011-10-06 19:15:51Z ken $
@


1.12.26.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.12.26.2
log
@Switch importer
@
text
@d32 1
a32 1
# $FreeBSD: releng/7.4/share/misc/scsi_modes 136422 2004-10-12 08:51:04Z bms $
@


1.12.24.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.12.22.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.12.22.2
log
@SVN rev 234639 on 2012-04-24 07:28:53Z by mav

MFC r234376:
Add some more SCSI mode pages from SPC-4 spec.
@
text
@a81 19
0x15 "Extended Page";

0x16 "Extended Device-Type Specific Page";

0x1c "Informational Exceptions Control Page" {
	{PERF} t1
	{Reserved} *t1
	{EBF} t1
	{EWasc} t1
	{DExcpt} t1
	{TEST} t1
	{EBACKERR} t1
	{LogErr} t1
	{Reserved} *t4
	{MRIE} b4
	{Interval Timer} i4
	{Report Count} i4
}

d90 1
a90 1
0x1a "Power Condition Page" {
a98 4
0x18 "Protocol-Specific LUN Page";

0x19 "Protocol-Specific Port Page";

@


1.12.22.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d32 1
a32 1
# $FreeBSD: stable/8/share/misc/scsi_modes 234639 2012-04-24 07:28:53Z mav $
@


1.12.22.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.12.22.1.8.2
log
@Switch importer
@
text
@d32 1
a32 1
# $FreeBSD: releng/8.3/share/misc/scsi_modes 136422 2004-10-12 08:51:04Z bms $
@


1.12.22.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.12.22.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.12.22.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.12.20.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.12.18.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.12.16.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.11
log
@Add a definition for mode page 0x2a "CD capabilities and mechanical
status page".
@
text
@d294 12
@


1.11.8.1
log
@MFC rev 1.12:
  Add mode page 0x1b, "Removable Block Access Capacities". This mode page is
  implemented by USB floppy devices using the UFI command set.
@
text
@a293 12
# Removable devices
0x1b "Removable Block Access Capacities Page" {
	{System Floppy Type Device} t1
	{Supports Reporting Format Progress} t1
	{Reserved} *t6
	{Non CD Optical Device} t1
	{Single or Multiple LUN Supported} t1
	{Reserved} *t3
	{Total Logical Units Supported} t3
	{Reserved} *i8
}

@


1.10
log
@Include the Power Control page (0x1a) that is standardized by SCSI-3.
At least some IBM drives support the Standby Condition Timer (i. e.
they allow for an automatic spindown).

Update copyright for 2001.  I don't want to insert my name for just
one mode page definition, do people think that `The FreeBSD Project'
is OK?
@
text
@d32 1
a32 1
# $FreeBSD: src/share/misc/scsi_modes,v 1.9 2000/10/29 00:54:59 mjacob Exp $
d293 52
@


1.9
log
@fix minor oops in new data compression page definition
@
text
@d4 1
d32 1
a32 1
# $FreeBSD: src/share/misc/scsi_modes,v 1.8 2000/10/28 22:47:47 mjacob Exp $
d90 8
@


1.8
log
@Add 3 SCSI-3 bits for Sequential Access Device Congifuration Page.
Add Data Compression Page (SCSI-3). Add some clarifying comments
at the top of the file that say what the syntax is.
@
text
@d31 1
a31 1
# $FreeBSD: src/share/misc/scsi_modes,v 1.7 2000/08/08 06:24:15 kbyanc Exp $
a273 1
	{Reserved} *t1
@


1.7
log
@This is an overhaul of the mode page handling in camcontrol as well as
related patches. These include:
	* Mode page editting can be scripted. This involves two
	  things: first, if stdin is not a tty, changes are read from
	  stdin rather than invoking $EDITOR. Second, and more
	  importantly, not all modepage entries must be included in the
	  change set. This means that camcontrol can now gracefully handle
	  more intrusive editting from the $EDITOR, including removal or
	  rearrangement of lines. It also means that you can do stuff
	  like:
		# echo "WCE: 1" | camcontrol modepage da3 -m 8 -e
		# newfs /dev/da3
		# echo "WCE: 0" | camcontrol modepage da3 -m 8 -e
	* Range-checking on user-supplied input values. modeedit.c now
	  uses the field width specifiers to determine the maximum
	  allowable value for a field. If the user enters a value larger
	  than the maximum, it clips the value to the max and warns the
	  user. This also involved patching cam_cmdparse.c to be more
	  consistent with regards to the "count" parameter to arg_put
	  (previously is was the length of strings and 1 for all integral
	  types). The cam_cdbparse(3) man page was also updated to reflect
	  the revised semantics.
	* In the process, I removed the 64 entry limit on mode pages (not
	  that we were even close to hitting that limit). This was a nice
	  side-effect of the other changes.
	* Technically, the new mode editting functionality allows editting
	  of character array entries in mode pages (type 'c' or 'z'),
	  however since buff_encode doesn't grok them it is currently
	  useless.
	* Camcontrol gained two new options related to mode pages: -l and
	  -b. The former lists all available mode pages for a given
	  device. The latter forces mode page display in binary format
	  (the default when no mode page definition was found in
	  scsi_modes).
	* Added support for mode page names to scsi_modes. Allows names to
	  be displayed alongside mode numbers in the mode page
	  listing. Updated scsi_modes to use the new functionality. This
	  also adds the semicolon into the scsi_modes syntax as an
	  optional mode page definition terminator. This is needed to name
	  pages without providing a page format definition.
	* Updated scsi_all.h to include a structure describing mode page
	  headers.
	* Added $FreeBSD$ line to scsi_modes.

Inspired by:	dwhite
Reviewed by:	ken
@
text
@d31 1
a31 1
# $FreeBSD$
d35 14
d243 2
a244 1
0x10 {
d267 17
a283 1
	{Reserved} *i1
@


1.6
log
@Add some extra flags in the caching page.

Some firmware versions becomes unreliable when these bits are not preserved,
e.g. ST15150N-0017 breaks if the DISC bit is cleared in the caching page.
This happened by default when editing the page.
@
text
@d30 3
a32 1

d37 1
a37 2
# Control mode page:
0x0a {
d53 1
a53 2
# Disconnect-Reconnect Page:
0x02	{
d67 1
a67 2
# Peripheral Device Page:
0x09	{
d77 1
a77 2
# Caching page:
0x08 {
d94 1
a94 2
# Flexible disk page:
0x05 {
d125 1
a125 2
# Format device page:
0x03 {
d142 1
a142 2
# Medium types supported page:
0x0b	{
d152 1
d154 1
a154 2
#  Read-Write Error Recovery Page
0x01	{
d173 1
a173 2
# Rigid Disk Drive Geometry Page
0x04	{
d189 1
a189 2
# Verify Error Recovery Page
0x07	{
d205 1
a205 2
# CD-ROM Audio Control Parameters Page
0x0E	{
d241 1
a241 1
	{AAutomatic Velocity Control} t1
d254 2
@


1.6.2.1
log
@MFC: Add 3 SCSI-3 bits for Sequential Access Device Congifuration Page.
Add Data Compression Page (SCSI-3). Add some clarifying comments
at the top of the file that say what the syntax is.
@
text
@d30 1
a30 3
#
# $FreeBSD: $
#
a32 14
# 'i' is a byte-sized integral types, followed by a field width of 
#  1 through 4 (1 to 4 bytes).
#
# 'b' is a bit-sized integral type
# 't' is a bitfield type- followed by a bit field width
#
# 'c' values are character arrays
# 'z' values are null-padded strings
#
#
# '*' suppresses assignment (for 'seeking').
# Bitfields are MSB to LSB.


d237 1
a237 2
# SEQUENTIAL ACCESS DEVICES
0x10 "Device Configuration Page" {
d260 1
a260 17
	{Reserved} *t5
	{SCSI-3 Associated Write Protect} t1
	{SCSI-3 Persistent Write Protect} t1
	{SCSI-3 Permanent Write Protect} t1
}

0x0f "Data Compression Page" {
	{Reserved} *t1
	{Data Compression Enabled} t1
	{Date Compression Capable} t1
	{Reserved} *t6
	{Data Decompression Capable} t1
	{Data Decompression Report on Exception} t2
	{Reserved} *t5
	{Compression Algorithm} i4
	{Decompression Algorithm} i4
	{Reserved} *i4
@


1.6.6.1
log
@MFC: Enhanced mode page editing functionality.
@
text
@d30 1
a30 3
#
# $FreeBSD: src/share/misc/scsi_modes,v 1.7 2000/08/08 06:24:15 kbyanc Exp $
#
d35 2
a36 1
0x0a "Control Mode Page" {
d52 2
a53 1
0x02 "Disconnect-Reconnect Page" {
d67 2
a68 1
0x09 "Peripheral Device Page" {
d78 2
a79 1
0x08 "Caching Page" {
d96 2
a97 1
0x05 "Flexible Disk Page" {
d128 2
a129 1
0x03 "Format Device Page" {
d146 2
a147 1
0x0b "Medium Types Supported Page" {
a156 1
0x0c "Notch and Partition Page";
d158 2
a159 1
0x01 "Read-Write Error Recovery Page" {
d178 2
a179 1
0x04 "Rigid Disk Drive Geometry Page" {
d195 2
a196 1
0x07 "Verify Error Recovery Page" {
d212 2
a213 1
0x0E "CD-ROM Audio Control Parameters Page" {
d249 1
a249 1
	{Automatic Velocity Control} t1
a261 2

0x00 "Vendor-Specific";
@


1.6.6.2
log
@Wierd. I got the wrong branch for RELENG_4 I guess.

MFC: Add 3 SCSI-3 bits for Sequential Access Device Congifuration Page.
Add Data Compression Page (SCSI-3). Add some clarifying comments
at the top of the file that say what the syntax is.
@
text
@d31 1
a31 1
# $FreeBSD: src/share/misc/scsi_modes,v 1.6.6.1 2000/08/14 05:42:33 kbyanc Exp $
a34 14
# 'i' is a byte-sized integral types, followed by a field width of 
#  1 through 4 (1 to 4 bytes).
#
# 'b' is a bit-sized integral type
# 't' is a bitfield type- followed by a bit field width
#
# 'c' values are character arrays
# 'z' values are null-padded strings
#
#
# '*' suppresses assignment (for 'seeking').
# Bitfields are MSB to LSB.


d229 1
a229 2
# SEQUENTIAL ACCESS DEVICES
0x10 "Device Configuration Page" {
d252 1
a252 16
	{Reserved} *t5
	{SCSI-3 Associated Write Protect} t1
	{SCSI-3 Persistent Write Protect} t1
	{SCSI-3 Permanent Write Protect} t1
}

0x0f "Data Compression Page" {
	{Data Compression Enabled} t1
	{Date Compression Capable} t1
	{Reserved} *t6
	{Data Decompression Capable} t1
	{Data Decompression Report on Exception} t2
	{Reserved} *t5
	{Compression Algorithm} i4
	{Decompression Algorithm} i4
	{Reserved} *i4
@


1.6.6.3
log
@MFC rev 1.10: include the Power Control page (0x1a).
@
text
@a3 1
# Copyright (c) 2001 The FreeBSD Project
d31 1
a31 1
# $FreeBSD$
a88 8
0x1a "Power Control" {
	{Reserved} *i1
	{Reserved} *t6
	{Idle} t1
	{Standby} t1
	{Idle Condition Timer} i4
	{Standby Condition Timer} i4
}
@


1.6.6.4
log
@MFC 1.11: mode page 0x2a "CD capabilities and mechanical status page".
@
text
@a293 52
# CD-ROM (and CD-R[W]) devices
0x2a "CD capabilities and mechanical status page" {
	{Reserved} *t4
	{Method 2} t1
	{CD-RW Read} t1
	{CD-R Read} t1
	{Reserved} *t4
	{Test Write} t1
	{CD-RW Write} t1
	{CD-R Write} t1
	{Reserved} *t1
	{Multi Session} t1
	{Mode 2 Form 2} t1
	{Mode 2 Form 1} t1
	{Digital Port (2)} t1
	{Digital Port (1)} t1
	{Composite} t1
	{Audio Play} t1
	{Read Bar Code} t1
	{UPC} t1
	{ISRC} t1
	{C2 Pointers are supported} t1
	{R-W De-interleaved & corrected} t1
	{R-W Supported} t1
	{CD-DA Stream is Accurate} t1
	{CD-DA Commands Supported} t1
	{Loading Mechanism Type} t3
	{Reserved} *t1
	{Eject} t1
	{Prevent Jumper} t1
	{Lock State} t1
	{Lock} t1
	{Reserved} *t4
	{S/W Slot Selection} t1
	{Changer Supports Disc Present reporting} t1
	{Separate Channel Mute Supported} t1
	{Separate volume levels per channel} t1
	{Maximum Read Speed Supported (kBps)} i2
	{Number of Volume Leves Supported} i2
	{Buffer Size supported by Drive (KB)} i2
	{Current Read Speed Selected (kBps)} i2
	{Reserved} *i1
	{Reserved} *t2
	{Length} t2
	{LSBF} t1
	{RCK} t1
	{BCK} t1
	{Reserved} *t1
	{Maximum Write Speed Supported (kBps)} i2
	{Current Write Speed Supported (kBps)} i2
};

@


1.6.6.5
log
@Switch importer
@
text
@d32 1
a32 1
# $FreeBSD: stable/4/share/misc/scsi_modes 92273 2002-03-14 16:18:48Z joerg $
@


1.5
log
@Add page 0x10 (Device Configuration Page for sequential-access devices).
@
text
@d80 5
a84 1
	{Reserved} *t5
@


1.4
log
@Fix a spelling error.
@
text
@d232 26
@


1.4.2.1
log
@YAMFC (page 0x10 from rev 1.5)
@
text
@a231 26

0x10 {
	{Reserved} *t1
	{Change Active Partition} t1
	{Change Active Format} t1
	{Active Format} t5
	{Active Partition} i1
	{Write Buffer Full Ratio} i1
	{Write Buffer Empty Ratio} i1
	{Write Delay Time} i2
	{Data Buffer Recovery} t1
	{Block Identifiers Support} t1
	{Report Setmarks} t1
	{AAutomatic Velocity Control} t1
	{Stop on Consecutive Filemarks} t2
	{Recover Buffer Order} t1
	{Report Early-Warning} t1
	{Gap Size} i1
	{EOD Defined} t3
	{Enable EOD Generation} t1
	{Synchronize at Early-Warning} t1
	{Reserved} *t3
	{Buffer Size at Early-Warning} i3
	{Select Data Compression Algorithm} i1
	{Reserved} *i1
}
@


1.4.2.2
log
@MFC: new entries
@
text
@d80 1
a80 5
	{IC} t1
	{ABPF} t1
	{CAP} t1
	{DISC} t1
	{SIZE} t1
@


1.3
log
@Add the ``CD-ROM Audio Control Parameter Page''.
@
text
@d87 1
a87 1
	{Minumum Pre-fetch} i2
@


1.2
log
@New modes file needed for mode editor.  "b" can not stand for bit fields.
@
text
@d207 25
@


1.2.4.1
log
@Merge with HEAD:
add the CD-ROM Audio Control Parameter Page
@
text
@a206 25

# CD-ROM Audio Control Parameters Page
0x0E	{
	{Reserved} *t5
	{Immed} t1
	{SOTC} t1
	{Reserved} *t1
	{Reserved} *i2
	{APRVal} t1
	{Reserved} *t3
	{Format of LBAs / sec.} t4
	{Logical Blocks per Second of Audio Playback} i2
	{Reserved} *t4
	{Output Port 0 Channel Selection} t4
	{Output Port 0 Volume} i1
	{Reserved} *t4
	{Output Port 1 Channel Selection} t4
	{Output Port 1 Volume} i1
	{Reserved} *t4
	{Output Port 2 Channel Selection} t4
	{Output Port 2 Volume} i1
	{Reserved} *t4
	{Output Port 3 Channel Selection} t4
	{Output Port 3 Volume} i1
}
@


1.1
log
@Symoblic representation of mode pages
@
text
@d37 11
a47 11
	{Reserved} *b7
	{RLEC} b1
	{Queue Algorithm Modifier} b4
	{Reserved} *b2
	{QErr} b1
	{DQue} b1
	{EECA} b1
	{Reserved} *b4
	{RAENP} b1
	{UAAENP} b1
	{EAENP} b1
d60 2
a61 2
	{Reserved} *b6
	{DTDC} b2
d80 6
a85 6
	{Reserved} *b5
	{WCE} b1
	{MF} b1
	{RCD} b1
	{Demand Retention Priority} b4
	{Write Retention Priority} b4
d106 6
a111 6
	{TRDY} b1
	{SSN} b1
	{MO} b1
	{Reserved} *b5
	{Reserved} *b4
	{SPC} b4
d115 4
a118 4
	{Pin 34} b4
	{Pin 2} b4
	{Pin 4} b4
	{Pin 1} b4
d135 5
a139 5
	{SSEC} b1
	{HSEC} b1
	{RMB} b1
	{SURF} b1
	{Reserved} *b4
d156 8
a163 8
	{AWRE (Auto Write Reallocation Enbld)} b1
	{ARRE (Auto Read Reallocation Enbld)} b1
	{TB (Transfer Block)} b1
	{RC (Read Continuous)} b1
	{EER (Enable Early Recovery)} b1
	{PER (Post Error)} b1
	{DTE (Disable Transfer on Error)} b1
	{DCR (Disable Correction)} b1
d182 2
a183 2
	{Reserved} *b6
	{RPL} b2
d193 5
a197 5
	{Reserved} *b4
	{EER} b1
	{PER} b1
	{DTE} b1
	{DCR} b1
@
