;-----------------------------------------------------
; SCSI Pages stuff (public / restricted)
;
; (C) Mikhail Mavritsin (rtester@rlab.ru)
;
;-----------------------------------------------------

[GENERAL]
;
; SCSI Mode Pages
;
MP00=vendor-specific
MP01=Read/Write Error Recovery
MP02=Disconnect/Reconnect
MP03=Format
MP04=Rigid Disc Geometry
MP05=Flexible Disk
MP07=Verify Error Recovery
MP08=Caching Parameters
MP09=Peripheral Device
MP0A=Control
MP010A=Control Extension
MP020A=Application Tag
MP030A=Command Duration Limit A
MP040A=Command Duration Limit B
MP050A=IO Advice Hints Grouping
MP060A=Background Operation Control
MPF00A=Application Tag (vendor-specific)
MPF10A=PATA Control
MPF20A=SATA Control
MP0B=Medium Types Supported
MP0C=Notch Parameters
MP0D=Power Condition
MP0F=Data Compression
MP10=XOR Control / Device Configuration
MP11=Medium Partition
MP14=Enclosure Service Management
MP15=Extended
MP16=Extended Device-Type Specific
MP18=Logical Unit (protocol-specific)
MP19=Port Control (protocol-specific)
MP1A=Power Condition
MP010A=Power Consumption
MPF11A=ATA Power Condition
MP1B=Removable Block Access Capabilities
; USB UFI = Timer and Protect Page (0x1C)
MP1C=Information Exceptions Control
MP011C=Background Control
MP021C=Logical Block Provisioning
MP22=Reconnection Timings
MP23=IBM/HITACHI Support Page
MP33=Format Parameters (SUN)
MP34=Rigid Drive Parameters (SUN)
MP37=SUN Anarchy Control
MP39=vendor-specific
MP3A=Background Media Scan Control
MP3C=vendor-specific
;
; SCSI VPD Pages
;
VPD00=Supported Vendor Pages
VPD03=vendor-specific
VPD80=Unit Serial Number
VPD81=Implemented Operating Definition
VPD82=ASCII Implemented Operating Definition
VPD83=Device Identification
VPD84=Software Interface Identification
VPD85=Management Network Addresses
VPD86=Extended INQUIRY data
VPD87=Mode Page Policy
VPD88=SCSI Ports
VPD89=ATA Information
VPD8A=Power Condition Timers
VPD8B=Device Constituents (SPC-5)
VPD8C=CFA Profile Information (SPC-5)
VPD8D=Power Consumption
VPD8F=Third-Party Copy (SPC-5)
VPD90=Protocol Specific Logical Unit Information
VPD91=Protocol Specific Port Information
VPDB0=Block Limits (SBC-3)
VPDB1=Block Device Characteristics (SBC-3)
VPDB2=Logical Block Provisioning
VPDB3=Referrals
VPDB5=Block Device Characteristics Extension
VPDB6=Zoned Block Device Characteristics
VPDB7=Block Limits Extension
VPDC0=Firmware Numbers
VPDC1=Date Code
VPDC2=Jumper Settings
VPDC3=vendor-specific
VPDC4=vendor-specific
VPDC7=OEM-specific (IBM SCDD)
VPDC8=OEM-specific (IBM AIX)
VPDC9=OEM-specific (IBM AIX)
VPDD0=vendor-specific
VPDD1=vendor-specific
VPDD2=vendor-specific
VPDD3=vendor-specific
VPDD5=FW Identification and Revision
VPDD6=Jumper Settings
VPDD7=HDDQ Version
VPDDC=DELL Unique
VPDF3=vendor-specific
;
; SCSI LOG Pages
;
LOG00=Supported Pages
LOG01=Buffer Over/Under-run
LOG02=Write Errors Count
LOG03=Read Errors Count
LOG04=Read Reverse Error Count
LOG05=Verify Errors Count
LOG06=Non-Medium Errors Count
LOG07=Last n-Error Events
LOG08=Format Status (SCSI-3)
LOG0B=Last n-Deferred/Async Events
LOG0C=Logical Block Provisioning
LOG0D=Temperature
LOG010D=Environmental Reporting
LOG020D=Environmental Limits
LOG0E=Start-Stop Cycle/Utilization Log
LOG0F=Application Client Log
LOG10=Self-Test Result
LOG11=SSD Media Log
LOG15=Background Scan Results (BGMS)
LOG0115=Pending Defects
LOG0215=Background Operation
LOG16=ATA-PASSTHROUGH Results
LOG17=Non-volatile Cache (NVC)
LOG18=SAS Protocol Specific
LOG19=General Statistics and Performance
LOG1A=Power Condition
LOG2F=SMART PFA Status
LOG33=SCSI Slow Command Log 
LOG36=Enhanced Workload Management
LOG37=Cache Statistics
LOG3E=Factory Log
LOG3F=Factory Log

[GENERAL.SCSI]
MP0119=Margin Control
MP0219=Saved Training Configuration Values
MP0319=Negotiated Settings
MP0419=Report Transfer Capabilities

[GENERAL.FCAL]
MP8019=Transceiver Control (vendor-specific)

[GENERAL.SAS]
MP0119=PHY Control And Discover
MP0219=Shared Port Control
MP0319=SAS-2 PHY Control And Discover

; ==========	Section Router	==================================================================================================================================

[TYPE]
MP01=MP01
MP05=MP05
MP08=MP08
;
VPD8A=VPD8A
VPDB2=VPDB2

; ==========	SCSI Mode Pages	==================================================================================================================================

[MP01]
** PAGE CODE=00 HEX 00 0x003F
** PAGE CAN BE SAVED=00 BOOL 07
Auto Write Reallocation=01 BOOL 07
Auto Read Reallocation=01 BOOL 06
Transfer Bad Block=01 BOOL 05
Read Continuous=01 BOOL 04
Enable Eearly Recovery=01 BOOL 03
Post All Errors=01 BOOL 02
Disable Transfer On Error=01 BOOL 01
Disable Correction=01 BOOL 00
Read Retry Count=01 DEC 08 0x00FF
Correction Span Bits=02 DEC 00 0x00FF
Head Offset Count=02 DEC 08 0x00FF
Data Strobe Offset Count=03 DEC 00 0x00FF
Write Retry Count=04 DEC 00 0x00FF
Recovery Time Limit=05 RDEC 00 0xFFFF

[MP02]
** PAGE CODE=00 HEX 00 0x003F
** PAGE CAN BE SAVED=00 BOOL 07
Buffer Full Ratio=1 DEC 00 0x00ff
Buffer Empty Ratio=1 DEC 08 0x00ff
BUS Inactivity Limit=2 RDEC 00 0xffff
Disconnect Time Limit=3 RDEC 00 0xffff
Connect Time Limit=4 RDEC 00 0xffff
Maximum Burst Size=5 RDEC 00 0xffff
Enable Modify Data Pointer=06 BOOL 07
FAIR Arbitration=6 DEC 00 0x0070
Disconect Immediate=6 BOOL 03
Data Transfer Disconnection Control=6 DEC 00 0x0007
First Buffer Size=7 RDEC 00 0xffff

[MP05]
** PAGE CODE=00 HEX 00 0x003F
** PAGE CAN BE SAVED=00 BOOL 07
Transfer Rate (Kbit/s)=01 RDEC 00 0xffff
Number of Heads=02 DEC 00 0xff
Sectors per Track=02 DEC 08 0xff
Data Bytes per Sector=03 RDEC 00 0xffff
Number of Cylinders=04 RDEC 00 0xffff
;* reserved_05=05 ARRAY 8

[MP07]
** PAGE CODE=00 HEX 00 0x003F
** PAGE CAN BE SAVED=00 BOOL 07
Enable Eearly Recovery=01 BOOL 03
Post All Errors=01 BOOL 02
Disable Transfer On Error=01 BOOL 01
Disable Correction=01 BOOL 00
Verify Retry Count=01 DEC 08 0x00ff
Verify Correction Span=02 DEC 00 0x00ff
Verify Recovery Time Limit=05 RDEC 00 0xffff

[MP08]
** PAGE CODE=00 HEX 00 0x003F
** PAGE CAN BE SAVED=00 BOOL 07
Read Cache Disable=01 BOOL 00
Multiplication Factor=01 BOOL 01
Write Cache Enable=01 BOOL 02
Size Enable=01 BOOL 03
Discontinuity=01 BOOL 04
Caching Analysis Permitted=01 BOOL 05
Abort Prefetch=01 BOOL 06
Initiator Control=01 BOOL 07
Write Retention Priority=01 DEC 08 0x000f
Demand Read Retenrion Priority=01 DEC 08 0x00f0
Disable Prefetch Transfer Length=02 RDEC 00 0xffff
Minimum Prefetch=03 RDEC 00 0xffff
Maximum Prefetch=04 RDEC 00 0xffff
Maximum Prefetch Ceiling=05 RDEC 00 0xffff
Disable Read-Ahead=06 BOOL 05
Logical Block Cache Segment Size=06 BOOL 06
Force Sequential Write=06 BOOL 07
Number Of Cache Segments=06 DEC 08 0x00ff
Cache Segment Size=07 RDEC 00 0xffff

[MP0A]
** PAGE CODE=00 HEX 00 0x003F
** PAGE CAN BE SAVED=00 BOOL 07
RLEC=01 BOOL 0
GLTSD=01 BOOL 1
Descriptor SENSE Data (D_SENSE)=01 BOOL 2
Disable Protection Info Check (DPICZ)=01 BOOL 3
TMFonly=01 BOOL 4
TST=01 HEX 5 0x0F
Disable Queuing (DQuue)=01 BOOL 8
Queue Error Management (QErr)=01 HEX 9 0x03
Queue Algorithm Modifier=1 DEC 12 0x000F
EAENP=02 BOOL 00
UAAENP=02 BOOL 01
RAENP=02 BOOL 02
SWP=02 BOOL 3
UA_INTCLK_CTRL=02 HEX 4 0x03
RAC=02 BOOL 6
EECA (RSVD)=02 BOOL 07
Reject Write Without Protection (RWWP)=02 BOOL 13
Application Tag Mode Page Enabled (ATMPE)=02 BOOL 14
TAS=02 BOOL 15
Application Tag Owner (ATO)=02 BOOL 16
Ready AEN Holdoff period=03 RDEC 00 0xFFFF
Busy Timeout period=4 RDEC 00 0xFFFF
Extended Self-Test Completion Time=5 RDEC 00 0xFFFF

[MP1B]
** PAGE CODE=00 HEX 00 0x003F
** PAGE CAN BE SAVED=00 BOOL 07
System Floppy Type device=01 BOOL 07
Reporting Format Progress via the REQ_SENSE=01 BOOL 06
Total number of LUNs supported=01 DEC 08 0x07
Single/Multiple LUN supported=01 BOOL 14
Non-CD optical device=01 BOOL 15

[MP1C]
** PAGE CODE=00 HEX 00 0x003F
** PAGE CAN BE SAVED=00 BOOL 07
Performance=01 BOOL 07
Enable Warning=01 BOOL 04
Disable Exception Control=01 BOOL 03
TEST=01 BOOL 02
Log Errors=01 BOOL 00
MRIE=01 DEC 08 0x000f
Interval Timer=02 RLONG
Report Count=04 RLONG

; ==========	SCSI VPD Pages	==================================================================================================================================

[VPD89]
SAT Vendor ID=4 RSTRING 8
SAT Product ID=8 RSTRING 16
SAT Product Revision=16 RSTRING 4
;
Transport Identifier - PATA=18 EQUAL 0x00FF 00
Transport Identifier - SATA=18 EQUAL 0x00FF 34
I-bit of Register Device-to-Host FIS=18 BOOL 14
PM Port=18 DEC 8 0x0F
;
Identify Command=28 HEX 0 0xFF

[VPD8A]
Power Condition Standby=02 DEC 00 0x00ff
Power Condition Idle=02 DEC 08 0x00ff
Stopped Recovery Time=03 RDEC 00 0xffff
Standby2 Recovery Time=04 RDEC 00 0xffff
Standby3 Recovery Time=05 RDEC 00 0xffff
Idle Recovery Time=06 RDEC 00 0xffff
Idle2 Recovery Time=07 RDEC 00 0xffff
Idle3 Recovery Time=08 RDEC 00 0xffff

[VPDB2]
Threshold Exponent=02 DEC 00 0x00ff
Logical Block Provisioning: UNMAP Supported=02 BOOL 15
Logical Block Provisioning: UNMAP in WriteSame16 Supported=02 BOOL 14
Logical Block Provisioning: UNMAP in WriteSame10 Supported=02 BOOL 13
Logical Block Provisioning: Read Zeroes for unmapped LBAs Supported=02 HEX 0x000A 0x0003
Anchored LBAs Supported=02 BOOL 09
Provisioning Group Descriptor is present=02 BOOL 08
Provisioning Type=03 DEC 00 0x0007
Minimum Percentage (%)=03 DEC 03 0x001F
Threshold Percentage (0.1%)=03 DEC 08 0xFF
