Use Cases
1356
SPRUH82C – April 2013 – Revised September 2016
Copyright © 2013–2016, Texas Instruments Incorporated
Serial ATA (SATA) Controller
Uint32 B1LbaMid:8; //bits[15:8]
Uint32 B2LbaHigh:8;//bits[23:16]
Uint32 B3Device:8; //bits[31:24]
}CmdFisWord1;
typedef struct {
Uint32 B0LbaLowExp:8; //bits[7:0]
Uint32 B1LbaMidExp:8; //bits[15:8]
Uint32 B2LbaHighExp:8;//bits[23:16]
Uint32 B3FeatureExp:8; //bits[31:24]
}CmdFisWord2;
typedef struct {
Uint32 B0SecCnt:8;
//bits[7:0]
Uint32 B1SecCntExp:8; //bits[15:8]
Uint32 B2Rsv:8;
//bits[23:16]
Uint32 B3Control:8;
//bits[31:24]
}CmdFisWord3;
typedef struct {
Uint32 DWResv; //bits[31:0]
}CmdFisWord4;
typedef struct {
CmdFisWord0 DW0;
CmdFisWord1 DW1;
CmdFisWord2 DW2;
CmdFisWord3 DW3;
CmdFisWord4 DW4;
Uint32
DW5;
Uint32
DW6;
Uint32
DW7;
Uint32
DW8;
Uint32
DW9;
Uint32
DW10;
Uint32
DW11;
Uint32
DW12;
Uint32
DW13;
Uint32
DW14;
Uint32
DW15;
}CommandFIS;
//-----------Command FIS end ATAPI Command ------
// ATAPI Command Data Structure
typedef struct {
Uint32 ATAPI[4];
}Atapi;
//-----------ATAPI Command end PRDT -------------
// Physical Region Descriptor Table Data Structure
typedef struct {
Uint32 DbaLow;
//bits[31:0]
}DbaAddressLow;
typedef struct {
Uint32 DbaHigh; //bits[31:0]
}DbaAddressHigh;
typedef struct {
Uint32 DW2Reserved; //bits[31:0]
}PrdtRsv;
typedef struct {
Uint32 DataBC:22;
//bits[21:0]