wire / wire-format / sata-fis

SATA FIS (Frame Information Structure)

A SATA FIS is the unit of communication between host and device. Types: Register H2D (0x27), Register D2H (0x34), DMA Activate (0x39), DMA Setup (0x41), Data (0x46), BIST (0x58), PIO Setup (0x5F), Set Device Bits (0xA1). The most common is Register H2D (host to device): 20 bytes containing command, features, LBA, device, count, etc.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: SATA FIS (Frame Information Structure)

wire format

spec: SATA 3.5 specification

A SATA FIS is the unit of communication between host and device. Types: Register H2D (0x27), Register D2H (0x34), DMA Activate (0x39), DMA Setup (0x41), Data (0x46), BIST (0x58), PIO Setup (0x5F), Set Device Bits (0xA1). The most common is Register H2D (host to device): 20 bytes containing command, features, LBA, device, count, etc.

fieldsizemeaning
FIS type1 byte0x27 Register H2D, 0x34 Register D2H, 0x39 DMA Activate, 0x41 DMA Setup, 0x46 Data, 0x58 BIST, 0x5F PIO Setup, 0xA1 Set Device Bits.
Flags (C)1 bit (bit 7 of byte 1)Command bit: 1 = command, 0 = control (for H2D).
Features (7:0)1 byteFeatures low byte.
Command1 byteATA command (0x25 READ DMA EXT, 0x35 WRITE DMA EXT, 0xEC IDENTIFY DEVICE, 0xEF SET FEATURES, 0xF8 READ NATIVE MAX ADDRESS EXT, ...).
Device1 byteDevice/head register (LBA mode bit, etc.).
LBA (low/mid/high)3 bytesLBA bytes 0-2 (for 28-bit) or bytes 0-2 of 48-bit LBA.
Features (15:8)1 byteFeatures high byte (for 48-bit commands).
LBA (low/mid/high ext)3 bytesLBA bytes 3-5 (for 48-bit commands).
Count (low)1 byteSector count low byte.
Count (high)1 byteSector count high byte (for 48-bit commands).
Reserved1 byteReserved (must be 0).
Control1 byteControl register (IEN, SRST, HOB).

example:

27 80 00 25 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00

SATA Register H2D FIS: command 0x25 (READ DMA EXT), LBA 0, count 1


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/sata-fis or /wire-format/sata-fis.json