;-----------------------------------------------------
; Common ATA and SCSI stuff
;
; (C) 2005-2016, Mikhail Mavritsin (shakemind@mail.ru)
;
;-----------------------------------------------------

[ATA]
;
; field name=WORD_OFFSET TYPE ...
;
; ======= OLD / OBSOLETE FIELDS
General configuration (bitmask)=00 HEX 00 0xFFFF
--  ATAPI device=0 EQUAL 0x8000 0x8000
--  ATA device=0 EQUAL 0x8000 0x0000
--  Format speed tolerance gap required=0 EQUAL 0x4000 0x4000
--  Track offset option available=0 EQUAL 0x2000 0x2000
--  Data strobe offset option available=0 EQUAL 0x1000 0x1000
--  Rotational speed tolerance > 0.5%=0 EQUAL 0x0800 0x0800
--  Disk transfer rate >10 Mbps=0 EQUAL 0x0400 0x0400
--  Disk transfer rate 5-10 Mbps=0 EQUAL 0x0200 0x0200
--  Disk transfer rate <6 Mbps=0 EQUAL 0x0100 0x0100
--  Removable device=0 EQUAL 0x0080 0x0080
--  Fixed device=0 EQUAL 0x0040 0x0040
--  Spindle motor control option implemented=0 EQUAL 0x0020 0x0020
--  Head switch time > 15 us=0 EQUAL 0x0010 0x0010
--  Not MFM encoded=0 EQUAL 0x0008 0x0008
--  Soft sectored=0 EQUAL 0x0004 0x0004
--  Hard sectored=0 EQUAL 0x0002 0x0002
--  reserved (bit 0)=0 EQUAL 0x0001 0x0001
;
Number of cylinders (default)=1 DEC 0 0xFFFF
Number of removable cylinders=2 DEC 0 0xFFFF
Number of heads (default)=3 DEC 0 0xFFFF
Number of sectors per track (default)=6 DEC 0 0xFFFF
;Number of bytes of Sector Gap=7 DEC 0 0xFFFF
;Number of bytes in Sync Field=8 DEC 0 0xFFFF
Number of Sectors per Card (CFA ONLY)=7 LONG
;
; =======
;
Serial number=10 STRING 20
Controller Type=20 DEC 0 0xFFFF
Buffer size (x512 bytes)=21 DEC 0 0xFFFF
R/W Long ECC Bytes=22 DEC 0 0xFFFF 
Firmware Revision=23 STRING 8
Model Number=27 STRING 40
Multiple sectors per DRQ interrupt=47 DEC 0 0xFF
Trusted Computing (TCG) supported=48 BOOL 0
IORDY is supported=49 BOOL 11
IORDY can be disabled=49 BOOL 10
LBA supported=49 BOOL 9
DMA supported=49 BOOL 8
BLOCK ERASE EXT command supported=59 BOOL 15
OVERWRITE EXT command supported=59 BOOL 14
CRYPTO SCRAMBLE EXT command supported=59 BOOL 13
SANITIZE feature set supported=59 BOOL 12
Multiple sector setting valid=59 BOOL 8
Current Multiple sector setting=59 DEC 0 0x00FF
Total User LBA=60 LONG
Multiword DMA mode 2 is=63 SWITCH 10 1 selected
Multiword DMA mode 2 is=63 SWITCH 10 0 not selected
Multiword DMA mode 1 is=63 SWITCH 9 1 selected
Multiword DMA mode 1 is=63 SWITCH 9 0 not selected
Multiword DMA mode 0 is=63 SWITCH 8 1 selected
Multiword DMA mode 0 is=63 SWITCH 8 0 not selected
Multiword DMA mode 2 and below are supported=63 BOOL 2
Multiword DMA mode 1 and below are supported=63 BOOL 1
Multiword DMA mode 0 and below are supported=63 BOOL 0
PIO modes supported=64 DEC 0 0xFF
Minimum multiword DMA transfer cycle time (ns) per word=65 DEC 0 0xffff
Manufacturer_s recommended multiword DMA cycle time (ns)=66 DEC 0 0xffff
Manufacturer_s PIO cycle time (ns) without flow control=67 DEC 0 0xffff
Manufacturer_s PIO cycle time (ns) with flow control=68 DEC 0 0xffff
;
; ref. 100666808b_Pulsar2_SATA.pdf (c) mike
CFast Specification Supported=69 BOOL 15
Deterministic Read after TRIM is Supported=69 BOOL 14
Long Physical Sector Alignment Error Reporting Control is Supported=69 BOOL 13
DEVICE CONFIGURATION IDENTIFY/SET DMA Supported=69 BOOL 12
Read Buffer DMA Supported=69 BOOL 11
Write Buffer DMA Supported=69 BOOL 10
SetMax DMA Password/Unlock Supported=69 BOOL 9
Download Microcode DMA Supported=69 BOOL 8
IEEE-1667 xxxx Supported=69 BOOL 7
Optional ATA 28-bit commands Supported=69 BOOL 6
Read Zero after TRIM Supported=69 BOOL 5
** Device Encrypts All User Data=69 BOOL 4
Extended Number of User Addressable Sectors Supported=69 BOOL 3
All Write Cache Non-Volatile=69 BOOL 2
;
Max Queue Deptn (n-1)=75 DEC 0 0x0F
;
Read Log DMA Ext as Read Log Ext Support=76 BOOL 15
Device Automatic Partial to Slumber Transitions Support=76 BOOL 14
Host Automatic Partial to Slumber Transitions Support=76 BOOL 13
SATA Supports NCQ priority information=76 BOOL 12
SATA Supports Unload while NCQ commands are outstanding=76 BOOL 11
SATA Supports PHY Event Counters=76 BOOL 10
SATA Supports IPM Requests=76 BOOL 9
SATA Supports NCQ=76 BOOL 8
SATA Supports GEN4 12.0Gbps=76 BOOL 4
SATA Supports GEN3 6.0Gbps=76 BOOL 3
SATA Supports GEN2 3.0Gbps=76 BOOL 2
SATA Supports GEN1 1.5Gbps=76 BOOL 1
;
DEVSLP to Reduced Power State=77 BOOL 7
Receive FDPDMA Queued and Send FDPDMA Queued Commands Supported=77 BOOL 6
SATA Supports NCQ Queue Management Supported=77 BOOL 5
SATA Supports NCQ Streaming=77 BOOL 4
SATA Link at GEN3 6.0Gbps=77 BOOL 3
SATA Link at GEN2 3.0Gbps=77 BOOL 2
SATA Link at GEN1 1.5Gbps=77 BOOL 1
;
Power Disable Supported=78 BOOL 12
Rebuild Assist Supported=78 BOOL 11
Device Initiated IPM Software Settings Supported=78 BOOL 10
Hybrid Information Feature Supported=78 BOOL 9
Link Power State Device Sleep Supported=78 BOOL 8
NCQ Autosense Supported=78 BOOL 7
SATA Supports Software Settings Preservation=78 BOOL 6
SATA Hardware Feature Control (MICRON SSDs)=78 BOOL 5
SATA Supports in-order data delivery=78 BOOL 4
SATA Supports Initiating Power Management=78 BOOL 3
SATA Supports DMA Setup auto-activation=78 BOOL 2
SATA Supports non-zero buffer offsets in DMA Setup FIS =78 BOOL 1
;
Rebuild Assist Enabled=79 BOOL 11
Power Disable Enabled=79 BOOL 10
Hybrid Information Feature Enabled=79 BOOL 9
Device Sleep Enabled=79 BOOL 8
Device Automatic Partial to Slumber transitions Enabled=79 BOOL 7
SATA Software Settings Preservation Enabled=79 BOOL 6
SATA Asynchronous notification Enabled=79 BOOL 5
SATA In-order data delivery Enabled=79 BOOL 4
SATA Initiating Power Management Enabled=79 BOOL 3
SATA DMA Setup auto-activation Enabled=79 BOOL 2
SATA non-zero buffer offsets in DMA Setup FIS Enabled=79 BOOL 1
;
ATA9/ACS-4=80 BOOL 11
ATA9/ACS-3=80 BOOL 10
ATA9/ACS-2=80 BOOL 9
ATA8-ACS=80 BOOL 8
ATA/ATAPI-7=80 BOOL 7
ATA/ATAPI-6=80 BOOL 6
ATA/ATAPI-5=80 BOOL 5
ATA/ATAPI-4=80 BOOL 4
ATA/ATAPI-3=80 BOOL 3
ATA/ATAPI-2=80 BOOL 2
ATA/ATAPI-1=80 BOOL 1
;
Minor Revision Number=81 HEX 0 0xFFFF
;
NOP supported=82 BOOL 14
READ BUFFER supported=82 BOOL 13
WRITE BUFFER supported=82 BOOL 12
HPA supported=82 BOOL 10
DEVICE RESET supported=82 BOOL 9
SERVICE interrupt supported=82 BOOL 8
RELEASE interrupt supported=82 BOOL 7
READ-LOOK AHEAD supported=82 BOOL 6
Volatile WRITE CACHE supported=82 BOOL 5
PACKET Command supported=82 BOOL 4
Power management supported=82 BOOL 3
Removable supported=82 BOOL 2
Security supported=82 BOOL 1
SMART supported=82 BOOL 0
;
FLUSH CACHE EXT Supported=83 BOOL 13
FLUSH CACHE Supported=83 BOOL 12
DCO Supported=83 BOOL 11
48-bit Address Supported=83 BOOL 10
AAM Supported=83 BOOL 9
SET MAX security extension Supported=83 BOOL 8
SET FEATURES subcommand required to spinup after power-up=83 BOOL 6
PUIS Supported=83 BOOL 5
Removable Media Status Notification feature Supported=83 BOOL 4
APM Supported=83 BOOL 3
CFA Supported=83 BOOL 2
READ/WRITE DMA QUEUED (TCQ) Supported=83 BOOL 1
DOWNLOAD MICROCODE Supported=83 BOOL 0
;
IDLE IMMEDIATE with UNLOAD FEATURE Supported=84 BOOL 13
AV Lite Read/Write Cache Supported=84 BOOL 12
AV Lite Feature Supported=84 BOOL 11
URG bit Supported for WRITE STREAM (DMA) EXT=87 BOOL 10
URG bit Supported for READ STREAM (DMA) EXT=87 BOOL 9
64-bit WWN Supported=84 BOOL 8
WRITE DMA QUEUED FUA EXT Supported=84 BOOL 7
WRITE DMA/MULTIPLE FUA EXT Supported=84 BOOL 6
GPL Supported=84 BOOL 5
Streaming Supported=84 BOOL 4
Media Card Pass Through Command Supported=84 BOOL 3
Media Serial Number Supported=84 BOOL 2
SMART Self-test Supported=84 BOOL 1
SMART Error Logging Supported=84 BOOL 0
;
NOP Enabled=85 BOOL 14
READ BUFFER Enabled=85 BOOL 13
WRITE BUFFER Enabled=85 BOOL 12
HPA Enabled=85 BOOL 10
DEVICE RESET Enabled=85 BOOL 9
SERVICE interrupt Enabled=85 BOOL 8
RELEASE interrupt Enabled=85 BOOL 7
READ-LOOK AHEAD Enabled=85 BOOL 6
Volatile WRITE CACHE Enabled=85 BOOL 5
PACKET Command Enabled=85 BOOL 4
Power Management Enabled=85 BOOL 3
Removable Enabled=85 BOOL 2
Security Enabled=85 BOOL 1
SMART Enabled=85 BOOL 0
;
FLUSH CACHE EXT supported=86 BOOL 13
FLUSH CACHE supported=86 BOOL 12
DCO supported=86 BOOL 11
48-bit Address supported=86 BOOL 10
AAM enabled=86 BOOL 9
SET MAX security extension enabled by SET MAX SET PASSWORD=86 BOOL 8
(Reserved - project 1407DT Address Offset Reserved Area Boot)=86 BOOL 7
SET FEATURES subcommand required to spin-up after power-up=86 BOOL 6
PUIS enabled=86 BOOL 5
Removable Media Status Notification enabled=86 BOOL 4
APM enabled=86 BOOL 3
CFA enabled=86 BOOL 2
READ/WRITE DMA QUEUED supported=86 BOOL 1
DOWNLOAD MICROCODE supported=86 BOOL 0
;
IDLE IMMEDIATE with UNLOAD FEATURE Enabled=87 BOOL 13
AV Lite Read/Write Cache Enabled=87 BOOL 12
AV Lite Feature Enabled=87 BOOL 11
URG bit Enabled for WRITE STREAM (DMA) EXT=87 BOOL 10
URG bit Enabled for READ STREAM (DMA) EXT=87 BOOL 9
64-bit WWN Enabled=87 BOOL 8
WRITE DMA QUEUED FUA EXT Enabled=87 BOOL 7
WRITE DMA/MULTIPLE FUA EXT Enabled=87 BOOL 6
GPL Enabled=87 BOOL 5
Streaming Enabled=87 BOOL 4
Media Card Pass Through Command Enabled=87 BOOL 3
Media Serial Number valid=87 BOOL 2
SMART Self-test Enabled=87 BOOL 1
SMART Error Logging Enabled=87 BOOL 0
;
UDMA-7 is Selected (?)=88 BOOL 15
UDMA-6 is Selected=88 BOOL 14
UDMA-5 is Selected=88 BOOL 13
UDMA-4 is Selected=88 BOOL 12
UDMA-3 is Selected=88 BOOL 11
UDMA-2 is Selected=88 BOOL 10
UDMA-1 is Selected=88 BOOL 9
UDMA-0 is Selected=88 BOOL 8
UDMA-7 and below are Supported (?)=88 BOOL 7
UDMA-6 and below are Supported=88 BOOL 6
UDMA-5 and below are Supported=88 BOOL 5
UDMA-4 and below are Supported=88 BOOL 4
UDMA-3 and below are Supported=88 BOOL 3
UDMA-2 and below are Supported=88 BOOL 2
UDMA-1 and below are Supported=88 BOOL 1
UDMA-0 is Supported=88 BOOL 0
;
Time required for Security Erase completion=89 DEC 0 0xFFFF
Time required for Enhanced Security Erase completion=90 DEC 0 0xFFFF
Current APM value=91 HEX 0 0xFFFF
Master Password Identifier=92 HEX 0 0xFFFF
;
Hardware Reset Result=93 HEX 0 0xFFFF
Vendor's recommended AAM value=94 HEX 8 0x00FF
Current AAM value=94 HEX 0 0x00FF
;
Stream Minimum Request Size=95 DEC 0 0xFFFF
Streaming Transfer Time - DMA=96 DEC 0 0xFFFF
Streaming Access Latency - DMA and PIO=97 DEC 0 0xFFFF
;Streaming Performance Granularity 98-99
;
Total User LBA Size (48-bit)=100 QLONG
;
Streaming Transfer Time - PIO=104 DEC 0 0xFFFF
;
; from MICRON SSD M500 spec
Max number of 512b blocks of LBA Range Entries per DATA SET MANAGEMENT command=105 DEC 0 0xFFFF
;
Advanced Format Feature supported=106 BOOL 14
* Device has multiple Logical Sectors per Physical Sector=106 BOOL 13
* Device Logical Sector Longer than 256 Words=106 BOOL 12
* 2^X Logical Sectors per Physical Sector=106 DEC 0 0x0F
;
Inter-seek delay for ISO-7779 acoustic testing in microseconds=107 DEC 0 0xFFFF
;
WWN=108 ATA_WWN
;
* Words per Logical Sector=117 LONG
;
Device Statistics Notification (DSN) Feature Supported=119 BOOL 9
Accessible Max Address Configuration Feature Supported=119 BOOL 8
Extended Power Conditions feature set Supported=119 BOOL 7
Extended Status Reporting feature set Supported=119 BOOL 6
Free-Fall Control Supported=119 BOOL 5
The Segmented feature for DOWNLOAD MICROCODE Supported=119 BOOL 4
READ/WRITE LOG DMA EXT optional commands Supported=119 BOOL 3
WRITE UNCORRECTABLE EXT Supported=119 BOOL 2
Write-Read-Verify Feature Set Supported=119 BOOL 1
;
Device Statistics Notification (DSN) Feature Enabled=120 BOOL 9
Accessible Max Address Configuration Feature Enabled=120 BOOL 8
Extended Power Conditions feature set Enabled=120 BOOL 7
Extended Status Reporting feature set Enabled=120 BOOL 6
Free-Fall Control Enabled=120 BOOL 5
The Segmented feature for DOWNLOAD MICROCODE Enabled=120 BOOL 4
READ and WRITE DMA EXT GPL optional commands Enabled=120 BOOL 3
WRITE UNCORRECTABLE EXT Enabled=120 BOOL 2
Write-Read-Verify Feature Set Enabled=120 BOOL 1
;
Security Level - MAXIMUM=128 EQUAL 0x0100 0x0100
Security Level - HIGH=128 EQUAL 0x0100 0x0000
Security Enhanced Erase supported=128 BOOL 5
Security Count Expired=128 BOOL 4
Security Frozen=128 BOOL 3
Security Locked=128 BOOL 2
Security Enabled=128 BOOL 1
Security Supported=128 BOOL 0
;
VENDOR SPECIFIC (129-159)=129 ARRAY 62
;
; =========== MICRON SSD ===========
;
MICRON SSD: FW_Version-like=129 STRING 16
MICRON SSD: unknown ASCII #1=137 STRING 8
MICRON SSD: unknown ASCII #2=141 STRING 8
;
; =================================
;
DEBUG (Samsung) 2^X Logical Sectors per Physical Sector=151 DEC 8 0x0F
DEBUG (Samsung) 2^X Logical Sectors per Physical Sector=168 DEC 0 0x0F
;
** Minimum Standby timer value=158 DEC 0 0xFFFF
** Automatic Standby timer value=159 DEC 0 0xFFFF
;
CFA Power Mode Supported=160 BOOL 15
CFA Power Mode 1 required for one+ commands=160 BOOL 13
CFA Power Mode 1 Disabled=160 BOOL 12
CFA Power Mode max current (mA)=160 DEC 0 0x0FFF
;
CFA Key Management Schemes Supported=162 HEX 0 0xFFFF
--  Device supports CPRM Scheme=162 BOOL 0
CFA TrueIDE Timing Mode Capabilities and Settings=163 HEX 0 0xFFFF
CFA PCMCIA I/O and Memory Timing Modes Capabilities and Settings=164 HEX 0 0xFFFF
;
Device nominal form factor=168 DEC 0 0x000F
** Device is 3.5"=168 EQUAL 0x000F 0x0002
** Device is 2.5"=168 EQUAL 0x000F 0x0003
** Device is 1.8"=168 EQUAL 0x000F 0x0004
** Device is less than 1.8"=168 EQUAL 0x000F 0x0005
;
DATA SET MANAGEMENT - TRIM is supported=169 BOOL 0
;
Current Media Serial Number=176 STRING 60
;
SCT Data Tables supported=206 BOOL 5
SCT Features Control supported=206 BOOL 4
SCT Error Recovery Control supported=206 BOOL 3
SCT Write Same supported=206 BOOL 2
SCT Long Sector Access supported=206 BOOL 1
SCT Supported=206 BOOL 0
;
Alignment of logical blocks within a larger physical block=209 BOOL 14
Logical sector offset within the first physical sector where the first logical sector is placed=209 DEC 0 0x3FFF
;
Write-Read-Verify Sector Count Mode 3 Only=210 LONG
Write-Read-Verify Sector Count Mode 2 Only=212 LONG
;
NV Cache feature set version=214 HEX 12 0x000F
NV Cache Power Mode feature set version=214 HEX 8 0x000F
NV Cache feature set enabled=214 BOOL 4
NV Cache Power Mode feature set enabled=214 BOOL 1
NV Cache Power Mode feature set supported=214 BOOL 0
NV Cache Size in Logical Blocks=215 LONG
;
Nominal RPM=217 DEC 0 0xFFFF
* SSD device=217 EQUAL 0xFFFF 0x0001
;
NV Cache Device Estimated Time to Spin Up in Seconds=219 DEC 0 0x00FF
Write-Read-Verify feature set current mode=220 DEC 0 0x00FF
;
Transport Type - PATA=222 EQUAL 0xF000 0x0000
Transport Type - SATA=222 EQUAL 0xF000 0x1000
Transport Type - PCIe=222 EQUAL 0xF000 0xE000
Transport Major revision - SATA Rev 3.3=222 BOOL 8
Transport Major revision - SATA Rev 3.2=222 BOOL 7
Transport Major revision - SATA Rev 3.1=222 BOOL 6
Transport Major revision - SATA Rev 3.0=222 BOOL 5
Transport Major revision - SATA Rev 2.6=222 BOOL 4
Transport Major revision - SATA Rev 2.5=222 BOOL 3
Transport Major revision - SATA II: Extensions=222 BOOL 2
Transport Major revision - SATA 1.0a=222 BOOL 1
Transport Major revision - ATA8-APT/AST=222 BOOL 0
Transport Minor revision=223 HEX 0 0xFFFF
;
Extended number of User Addressable Sectors=230 QLONG
;
Minimum 512B units per DOWNLOAD MICROCODE mode 03h=234 DEC 0 0xffff
Maximum 512B units per DOWNLOAD MICROCODE mode 03h=235 DEC 0 0xffff

;------------------------------------------------------------------------------------

[INQUIRY]
Device Type=0 HEX 0 0x1F
* Direct-Access Block Device=0 EQUAL 0x001F 00
* Sequential-Access Device=0 EQUAL 0x001F 01
* Processor Device=0 EQUAL 0x001F 03
* CD/DVD Device=0 EQUAL 0x001F 05
* Optical Memory Device=0 EQUAL 0x001F 07
* Media Changer Device=0 EQUAL 0x001F 08
* Storage Array Controller device=0 EQUAL 0x001F 0x0C
* Enclosure Services Device=0 EQUAL 0x001F 0x0D
* Simplified Direct-Access Device=0 EQUAL 0x001F 0x0E
* Optical Card R/W Device=0 EQUAL 0x001F 0x0F
* Object-based Storage Device=0 EQUAL 0x001F 0x11
* Automation/Drive Interface=0 EQUAL 0x001F 0x12
* Host Managed Zoned Block Device=0 EQUAL 0x001F 0x14
Device Type Qualifier=0 HEX 5 0x07
Device Type Modifier=0 HEX 8 0x007F
Removable Media=00 BOOL 15
Version=01 DEC 0 0xff
* undefined=01 EQUAL 0x00FF 00
* SCSI-1=01 EQUAL 0x00FF 01
* SCSI-2=01 EQUAL 0x00FF 02
* SPC=01 EQUAL 0x00FF 03
* SPC-2=01 EQUAL 0x00FF 04
* SPC-3=01 EQUAL 0x00FF 05
* SPC-4=01 EQUAL 0x00FF 06
Response Data Format=1 HEX 8 0x0F
Hierarchical support=01 BOOL 12
Normal ACA supported=01 BOOL 13
TerminateIO=01 BOOL 14
AERC=01 BOOL 15
Additional Length=02 DEC 0 0xFF
Protection Info (PI)=02 BOOL 8
Reserved Bit50=02 HEX 8 0x06
3rd-party copy commands supported (3PC)=02 BOOL 11
Asymmetric Access (ALUA)=02 HEX 12 0x03
Access Controls Coordinator=02 BOOL 14
Embed Ctrl Component (SCC)=02 BOOL 15
16bit SCSI Addressing=03 BOOL 0
32bit SCSI Addressing=03 BOOL 1
ACKbREQb=03 BOOL 2
Medium Changer=03 BOOL 3
Dual Port=03 BOOL 4
Current Port=03 DEC 5 0x01
Enclosure Service=03 BOOL 6
Basic Command Queuing=03 BOOL 7
Soft Reset=03 BOOL 8
Command Queue=03 BOOL 9
Transfer Disable=03 BOOL 10
Linked Commands=03 BOOL 11
Synchronous data transfer=03 BOOL 12
16-bit wide data transfer=03 BOOL 13
32-bit wide data transfer=03 BOOL 14
Relative Addressing=03 BOOL 15
Vendor Id=04 RSTRING 8
ProductId=08 RSTRING 16
Product Revision Level=16 RSTRING 4
Product Serial=18 RSTRING 8
Vendor Specific=22 ARRAY 12
Information Unit Supported (IUS)=28 BOOL 0
Quick Arbitrate Supported (QAS)=28 BOOL 1
Clocking=28 HEX 2 0x03
;ReservedBit56 : 4
;Reserved57;
Version Descriptor=29 ARRAY 16
* #1=29 RHEX 0 0xFFFF
* #2=30 RHEX 0 0xFFFF
* #3=31 RHEX 0 0xFFFF
* #4=32 RHEX 0 0xFFFF
* #5=33 RHEX 0 0xFFFF
* #6=34 RHEX 0 0xFFFF
* #7=35 RHEX 0 0xFFFF
* #8=36 RHEX 0 0xFFFF
Reserved58=37 ARRAY 22
Hard Assigned ALPA=48 HEX 0 0xFF
Acquired ALPA=48 HEX 0x08 0xFF
Copyright Notice=49 RSTRING 50

; ======================== SMART  section	====================================================================================

[MODELS]
INTEL SSDSA2BW160G3H=INTEL_SSD_S320
INTEL SSDSA1NW080G3H=INTEL_SSD_S320
INTEL SSDSA2BW080G3H=INTEL_SSD_S320
INTEL SSDSA2BW120G3H=INTEL_SSD_S320
INTEL SSDSA2BW300G3H=INTEL_SSD_S320
INTEL SSDSA1NW160G3H=INTEL_SSD_S320
INTEL SSDSA2BW160G3H=INTEL_SSD_S320
;
MTFDDAC128MAM-1K1=MICRON_SSD_C400
MTFDDAC128MAM-1K2=MICRON_SSD_C400
MTFDDAC256MAM-1K1=MICRON_SSD_C400
MTFDDAC256MAM-1K2=MICRON_SSD_C400
MTFDDAC512MAM-1K1=MICRON_SSD_C400
MTFDDAC512MAM-1K2=MICRON_SSD_C400
MTFDDAK128MAM-1K1=MICRON_SSD_C400
MTFDDAK128MAM-1K2=MICRON_SSD_C400
MTFDDAK256MAM-1K1=MICRON_SSD_C400
MTFDDAK256MAM-1K2=MICRON_SSD_C400
MTFDDAK512MAM-1K1=MICRON_SSD_C400
MTFDDAK512MAM-1K2=MICRON_SSD_C400
;
KINGSTON SSDNOW 30GB=KINGSTON.SSD
;
InnoDisk Corp. - mSATA D150Q=INNODISK.SSD

; ======================== IDE	SMART DEFAULT section	====================================

[DEFAULT.IDE]
0=Not used
1=Raw Read Error Rate
2=Throughput Performance
3=Spinup Time
4=Start/Stop Count
5=Reallocated Sector Count
6=[VU] Read Channel Margin Test
7=Seek Error Rate
8=Seek Time Performance
9=Power-On Hours Count
10=Spin Retries
11=Recalibration Retries
12=Power Cycle Count
13=Soft Read Error Rate
180=[?] Unused Reserved Block Count Total
181=Non-4KB Aligned Accesses
183=SATA Link Speed Change / Runtime Bad Block
184=Buffer CRC Error / End-2-End Error Corrections
185=Head Stability
186=Induced Op-Vibration Detection
187=Reported Uncorrectable
188=Command Timeout Count
189=High Fly Writes
190=Airflow Temperature
191=G-Sense Error Rate
192=Emergency Retract Count (BEMF)
193=Load/Unload Cycle Count
194=HDA Temperature
195=Hardware/ECC On-The-Fly Recovered Count
196=Reallocation Event Count
197=Current Pending Sector Count
198=Uncorrectable Sector Count
199=UltraDMA CRC Error Count
200=Write Error Rate / Multi-Zone Error Rate (WDC)
201=TA Counter Detected / Soft Read Error Rate
202=TA Counter Increased / SATA Down Speed / DAM Errors
203=ECC Errors / Run-Out Cancel
204=Software ECC Corrections Count
205=Thermal Asperity Rate
206=Calibration Time / Flying Height
207=Spin High Current
208=Spin Buzzes
209=Offline Seek Performance
210=Vibration During WRITE
211=Vibration During READ
212=Shock During WRITE
220=Disk Shift
221=G-Sense Error Rate
222=Loaded Hours
223=Load/Unload Retry Count
224=Load/Unload Friction
225=Load/Unload Cycle Count
226=Load-in Time
227=Torque Amplification Count
228=Power-Off Retract Count
230=GMR Head Amplitude
231=Temperature
232=Available Reserved Space
240=Head Flight Hours / Write Head
241=Total LBAs Written
242=Total LBAs Read
250=Raw Read Error Retry Rate
251=NVC Available Capacity Ratio
252=NVC Erase/Program Cycle
254=FreeFall Sensor (FFS) Count
255=Soft Read Error Rate

[MAXTOR.IDE]
;1=OTF Errors
96=Average MRR
97=Minimum MRR
98=Maximum MRR
99=Average FHC
100=Max Neg FHC
101=Max Pos FHC
200=Write PreAMP Errors
201=Off-Track Errors
202=DAM Errors
203=ECC Errors
204=Soft ECC Correction Count
205=Thermal Asperity Rate
207=Spin High Current
208=Spin Buzz
209=Offline Seek Performance
210=Vibration during WRITE
211=Vibration during READ
212=Shock during WRITE

[HGST.IDE]
22=[He] Internal Environment Status
;
160=Free-Fall Sensor Self Test Result
161=Free-Fall Sensor Work Count
184=End-To-End Error Detect
211=Spin Run Current      
212=SSM Error Count
213=Gross Seek Error Count/RRO-C ERP Count
214=Gross Load Error Count
215=Gross SpinUp Error Count
216=Unxepected Error Count
217=Unlock/MisRead Count
218=F-ROM ECC Correction Count
241=Total LBA Write
242=Total LBA Read
251=Non-Guaranted Temp Hours
252=Reported Error Count
254=Free-Fall Sensor Work Count

[WDC.IDE]
16=Total LBAs Processed (R/W)

; ======================== IDE	SMART DEFAULT SSD section	====================================

[DEFAULT.SSD]
168=SATA PHY Error Count
170=Reserve Block Count
171=Program Fail Count
172=Erase Fail Count
173=Wear Leveling Count (vendor-specific)
175=Program Fail Count
176=Erase Fail Count
177=Wear Leveling Count
178=Used Rsvd Block Count
179=Used Rsvd Block Count Total
180=Unused Rsvd Block Count Total
182=Erase Fail Count Total
183=Runtime Bad Count
192=(?) Power-Off Retract Count
199=CRC Error Count
218=CRC Error Count
230=Write Erase Count (%) [VS] / Life Curve Status
232=Available Reserved Space
233=Media Wearout Indicator

[INTEL.SSD]
170=Available Reserved Space
174=Unexpected Power Loss
175=Power Loss Protection Failure
183=SATA Link Speed Downshift Count
184=End-to-End Error Detection Count
187=Reported Uncorrectable Errors
192=Unsafe Shutdown Count
225=Host Writes
226=Timed Workload Media Wear Indicator
227=Timed Workload Host Read/Write Ratio
228=Workload Minutes
230=Life Curve Status
231=SSD Life Left
233=Media Wearout Indicator
234=Thermal Throttle Status
235=SSD Power Loss Mgmt. Life Left
241=Total LBAs Written
242=Total LBAs Read
;245=<UNDEFINED>	DC S3700:	see dump=SSDSC2BA400G3T, FW:5DV1DL03, SN:BTTV2521000T400HGN
249=Total NAND Writes

[MICRON.SSD]
170=New Failing-Block Count
173=Average Block-Erase Count
174=Unexpected Power-Loss Count
180=Unused Reserved NAND Blocks
181=Non-Physical Page-Aligned Access Count
183=SATA Interface Downshift
184=End-to-End Error Corrections
187=Uncorrectable Errors Count
188=Command Timeout Count
189=Factory Bad-Block Count
194=Enclosure Temperature
195=Cumulative ECC Bit-Correction Count
196=Reallocation Event Count
197=Current Pending-Sector Count
198=SMART Off-line Scan Uncorrectable-Error Count
202=Percent Lifetime Used
206=Write Error Rate
210=Success RAIN Recovery Count
242=Write Protect Progress
246=Total Host Sector Write
247=Host Program Page Count
248=Background Program Page Count

[SAMSUNG.SSD]
174=Unexpected Power Loss(?)
181=Program Fail Count (total)
195=ECC On-the-Fly Error Count
202=Exception Mode Status (Read only Mode)
233=Number of the Write Count
235=POR Recovery Count

[KINGSTON.SSD]
; SF-2000 based
1=Raw Read Error Rate
5=Retired Block Count
9=Power-On Hours
12=Device Power Cycle Count
13=Soft Read Error Rate
100=Gigabytes Erased
168=SATA PHY Error Count
170=Reserve Block Count
173=Erase Count (Max/Avg)
174=Unexpected Power Loss
;	175	Bad Cluster Table  Count
175=Program Fail Count Worst Die
176=Erase Fail Count Worst Die
177=Wear Range Delta
178=Used Reserved Block Count worst Die
179=Reserved Block Count 2
180=Unused Reserved Block Count (SSD Total)
181=Program Fail Count
182=Erase Fail Count
184=Reported I/O Error Detection Code (IOEDC) Errors
187=Reported Uncorrectable Errors (URAISE)
192=Unsafe Shutdown Count
194=Temperature
195=ECC On-the-Fly Error Count
196=Reallocation Event Count
197=Pending Sector Count
198=Uncorrectable Sector Count
199=SATA RX/TX R-Errors Error Count
201=Uncorrectable Soft Read Error Rate (UECC)
204=Soft ECC Correction Rate (UECC)
218=CRC Error Count
230=Drive Life Protection Status
231=SSD Life Left
232=Available Reserved Space
233=Lifetime Writes to Flash (GB)
234=Total Programs
235=Power Fail Backup Health (SuperCap Test)
241=Lifetime Writes from Host System (GB)
242=Lifetime Reads to Host System (GB)
244=Average Erase Count
245=Maximum Erase Count
246=Total Erase Count
250=Total Number of NAND Read Retires

[SILPOWER.SSD]
229=NAND Flash ID
232=Firmware Version
233=ECC Fail Record
234=Erase Count (Avg/Max)
235=Blocks Count (Good/System)

[APACER.SSD]
9=Power-on Hours
12=Power Cycle Count
163=Max. Erase Count
164=Avg. Erase Count
166=Total later bad block count
167=SSD Protect Mode [VS]
168=SATA PHY Error Count
175=Bad Cluster Table Count
192=Unexpected Power Loss Count
194=Temperature
241=Total sectors of write

[INNODISK.SSD]
173=Erase Count (Avg/Max)
175=Bad Cluster Table Count
192=Unexpected Power Loss Count
229=NAND Flash ID
235=Later Bad Block (?)
236=Unstable Power Count

[SANDISK.SSD]
173=Average Write Erase Count
174=Unexpected Power-Loss Count
177=Wear Range Delta
;230=Write Erase Count (%)
232=Reserve Space Available (%)
234=Write Erase Count BC (%)
244=Thermal Throttle

[SEAGATE.SSD]
230=Life Curve Status
231=SSD Life Left
235=SSD Power Loss Management Life Left

[STEC.SSD]
1=Read Error Rate
2=Throughput Performance
5=Reallocated Block Count
9=Power On Hours
12=Power Cycle Count
13=Soft Read Error Rate
100=Erase Count
103=Recovery Event Count
177=Wear Leveling Count
178=Unexpected Power Loss
180=Reserved Block Count
181=Program Fail Count
182=Erase Fail Count
183=Runtime Bad Block
184=End-to-end Error Detection
187=Reported Uncorrectable Errors
188=Command Timeout
194=Current Temperature
195=Correctable Error Count
198=Offline Surface Scan
199=UDMA CRC error count
200=Read Retry Rate
201=Volatile Memory Backup Source Failure
233=Write Count
234=? Firmware Logic Trap Count
235=? Uncorrectable Errors
236=? SSD Life Remaining
240=Link Error Events
241=Number of Host Logical Blocks Written
242=Number of Host Logical Blocks Read

[OCZ.SSD]
; ---------	SandForce	----------------
171=Program Fail Count
172=Erase Fail Count
174=Unexpected Power Loss
177=Wear Range Delta
181=Program Fail Count
182=Erase Fail Count
187=Reported Uncorrectable
194=Temperature
195=ECC On-the-Fly Error Count
196=Reallocation Event Count
231=SSD Life Left
233=? [VU:SandForce]
234=? [VU:SandForce] Total Program Count
241=Lifetime Writes from Host
242=Lifetime Reads to Host

[TOSHIBA.SSD]
173=Erase Count (NOTE: not confirmed for JMF661)
192=Unexpected Power Loss Count
240=(?) < undefined >

; ======================== IDE	SMART LOG section	====================================

[OFFLINE]
0=Off-Line Data Collection in Off-Line Mode
1=SHORT Self-Test in Off-Line Mode
2=EXTENDED Self-Test in Off-Line Mode
127=Abort Off-Line Self-Test
129=SHORT Self-Test in Captive Mode
130=EXTENDED Self-Test in Captive Mode

[LOGS]
0x00=LOG Directory
0x01=Summary Error Log
0x02=Comprehensive Error Log
0x03=Comprehensive EXT Error Log
0x04=Device Statistics
0x06=Self-Test Error Log
0x07=Self-Test EXT Error Log
0x09=Selective Self-Test Log
0x0A=Device Statistics Notifications (ACS-3)
0x0D=LPS Misalignment (ACS-2, A.10)
0x10=NCQ Command Error
0x11=SATA PHY Event Counters Log
0x12=NCQ Queue Management Log
0x13=SATA NCQ Send and Receive Log
0x15=Rebuild Assist Log
0x19=LBA Status Log
0x20=Streaming Performance Log
0x21=Write Stream Log
0x22=Read Stream Log
0x23=Delayed Sectors Log
0x24=Current Device Internal Status Data
0x25=Saved Device Internal Status Data
0x30=IDENTIFY DEVICE Data Log (ACS-3)
0x70=Activity Test Error Log
0x71=Time Buffer Log
;
0x80=Host Vendor Log 01
0x81=Host Vendor Log 02
0x82=Host Vendor Log 03
0x83=Host Vendor Log 04
0x84=Host Vendor Log 05
0x85=Host Vendor Log 06
0x86=Host Vendor Log 07
0x87=Host Vendor Log 08
0x88=Host Vendor Log 09
0x89=Host Vendor Log 10
0x8A=Host Vendor Log 11
0x8B=Host Vendor Log 12
0x8C=Host Vendor Log 13
0x8D=Host Vendor Log 14
0x8E=Host Vendor Log 15
0x8F=Host Vendor Log 16
0x90=Host Vendor Log 17
0x91=Host Vendor Log 18
0x92=Host Vendor Log 19
0x93=Host Vendor Log 20
0x94=Host Vendor Log 21
0x95=Host Vendor Log 22
0x96=Host Vendor Log 23
0x97=Host Vendor Log 24
0x98=Host Vendor Log 25
0x99=Host Vendor Log 26
0x9A=Host Vendor Log 27
0x9B=Host Vendor Log 28
0x9C=Host Vendor Log 29
0x9D=Host Vendor Log 30
0x9E=Host Vendor Log 31
0x9F=Host Vendor Log 32
;
0xA0=Device Vendor Log 01
0xA1=Device Vendor Log 02
0xA2=Device Vendor Log 03
0xA3=Device Vendor Log 04
0xA4=Device Vendor Log 05
0xA5=Device Vendor Log 06
0xA6=Device Vendor Log 07
0xA7=Device Vendor Log 08
0xA8=Device Vendor Log 09
0xA9=Device Vendor Log 10
0xAA=Device Vendor Log 11
0xAB=Device Vendor Log 12
0xAC=Device Vendor Log 13
0xAD=Device Vendor Log 14
0xAE=Device Vendor Log 15
0xAF=Device Vendor Log 16
0xB0=Device Vendor Log 17
0xB1=Device Vendor Log 18
0xB2=Device Vendor Log 19
0xB3=Device Vendor Log 20
0xB4=Device Vendor Log 21
0xB5=Device Vendor Log 22
0xB6=Device Vendor Log 23
0xB7=Device Vendor Log 24
0xB8=Device Vendor Log 25
0xB9=Device Vendor Log 26
0xBA=Device Vendor Log 27
0xBB=Device Vendor Log 28
0xBC=Device Vendor Log 29
0xBD=Device Vendor Log 30
0xBE=Device Vendor Log 31
0xBF=Device Vendor Log 32
;
0xE0=SCT Data
0xE1=SCT Command
;

[INFO]
Total time in seconds to complete off-line data collection activity=182 DEC 0 0xffff
Short self-test routine recommended polling time (in minutes)=186 DEC 0 0xff
Extended self-test routine recommended polling time (in minutes)=186 DEC 8 0xff
Off-line data collection activity was never started=181 EQUAL 0xff 0x00
Off-line data collection activity was never started=181 EQUAL 0xff 0x80
Off-line data collection activity was completed without error=181 EQUAL 0xff 0x02
Off-line data collection activity was completed without error=181 EQUAL 0xff 0x82
Off-line data collection activity was suspended by an interrupting command from host=181 EQUAL 0xff 0x04
Off-line data collection activity was suspended by an interrupting command from host=181 EQUAL 0xff 0x84
Off-line data collection activity was aborted by an interrupting command from host=181 EQUAL 0xff 0x05
Off-line data collection activity was aborted by an interrupting command from host=181 EQUAL 0xff 0x85
Off-line data collection activity was aborted by the device with a fatal error=181 EQUAL 0xff 0x06
Off-line data collection activity was aborted by the device with a fatal error=181 EQUAL 0xff 0x86
Percent Self-Test Remaining/10=181 DEC 8 0x0f
The previous self-test routine completed without error or no self-test has ever been run=181 EQUAL 0xf000 0x0000
The self-test routine was aborted by the host=181 EQUAL 0xf000 0x1000
The self-test routine was interrupted by the host with a hardware or software reset=181 EQUAL 0xf000 0x2000
A fatal error or unknown test error occurred while the device was executing its self-test=181 EQUAL 0xf000 0x3000
The previous self-test completed having a test element that failed=181 EQUAL 0xf000 0x4000
The previous self-test completed having the electrical element of the test failed=181 EQUAL 0xf000 0x5000
The previous self-test completed having the servo (and/or seek) test element of the test failed=181 EQUAL 0xf000 0x6000
The previous self-test completed having the read element of the test failed=181 EQUAL 0xf000 0x7000
EXECUTE OFF-LINE IMMEDIATE implemented=183 BOOL 8
abort/restart off-line by host bit=183 BOOL 10
off-line read scanning implemented bit=183 BOOL 11
self-test implemented bit=183 BOOL 12
power mode SMART data saving capability bit=184 BOOL 0
SMART data autosave after event capability bit=184 BOOL 1
Device error logging supported=185 BOOL 0


; ======================== SCSI SMART section	====================================

[SCSI_LOG]
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
LOG13=Temperature
LOG14=Start-Stop Cycle Info
LOG26=Power Condition
LOG47=SMART PFA Status
LOG55=Cache Statistics

[LOG02]
0000=Error Corrected Without Substantial Delay
0001=Error Corrected With Possible Delays
0002=Total Error Corrected With Retries
0003=Total Error Corrected
0004=Total Times Correction Algorithm Processed
0005=Total Bytes Processed
0006=Total Uncorrected Errors
8000=Total Physical Pages Processed (SSD Only)

[LOG03]
0000=Error Corrected Without Substantial Delay
0001=Error Corrected With Possible Delays
0002=Total Error Corrected With Retries
0003=Total Error Corrected
0004=Total Times Correction Algorithm Processed
0005=Total Bytes Processed
0006=Total Uncorrected Errors
8000=Total Physical Pages Processed (SSD Only)

[LOG04]
0000=Error Corrected Without Substantial Delay
0001=Error Corrected With Possible Delays
0002=Total Error Corrected With Retries
0003=Total Error Corrected
0004=Total Times Correction Algorithm Processed
0005=Total Bytes Processed
0006=Total Uncorrected Errors
8000=Total Physical Pages Processed (SSD Only)

[LOG05]
0000=Error Corrected Without Substantial Delay
0001=Error Corrected With Possible Delays
0002=Total Error Corrected With Retries
0003=Total Error Corrected
0004=Total Times Correction Algorithm Processed
0005=Total Bytes Processed
0006=Total Uncorrected Errors
8000=Total Physical Pages Processed (SSD Only)

[LOG06]
0000=Recoverable Non-Medium Error Events

[LOG13]
0000=Current Temperature (C)
0001=Reference Temperature (C)

[LOG14]
0001=Date Of Manufacture
0002=Accounting Date
0003=Specified Cycle Count Over Device Lifetime
0004=Accumulated Start/Stop Cycles

[LOG26]
0001=Accumulated Transitions to Active State
0002=Accumulated Transitions to Idle_A
0003=Accumulated Transitions to Idle_B
0004=Accumulated Transitions to Idle_C
0008=Accumulated Transitions to Standby_Z
0009=Accumulated Transitions to Standby_Y

[LOG47]
0000=SMART PFA Information
0001=SMART Elements
0002=SMART LPM Information

[LOG55]
0000=Number Of Blocks Sent To SCSI Initiator
0001=Number Of Blocks Received From SCSI Initiator
0002=Number Of Blocks Read From Cache
0003=Number Of R/W Commands With Data Lenghts Mach Current Cache Segment Size
0004=Number Of R/W Commands With Data Lenghts Greater Than Current Cache Segment Size
