Texas Instruments TMS320C6A816 Series Technical Reference Manual page 1576

C6-integra dsp+arm processors
Table of Contents

Advertisement

Use Cases
/////////////////////////////////////////////////////////////////////////////////////////////
// Maximum of 32 commands slots per port exist where each command occupies 8 DWs (64 Bytes).
// The structure 'CmdListHeader' defines a single command header definition.
// The start of the first Command List &CmdListHeader[0] needs to be programmed onto P0CLB.
//
// Command List Base Address should be 1K Byte Aligned.
typedef struct {
Uint32 CmdLen:5;
Uint32 Atapi:1;
Uint32 Write:1;
Uint32 Prefetch:1; //bit[7]
Uint32 Reset:1;
Uint32 Bist:1;
Uint32 Rok:1;
Uint32 Rsv:1;
Uint32 Pmp:4;
Uint32 Prdtl:16;
}CmdListHeaderW0;
typedef struct {
Uint32 PrdByteCnt; //bits[31:0]
}CmdListHeaderW1;
typedef struct {
//
Uint32 CmdTableAddLowRsv:7; //bit[6:0]
//
Uint32 CmdTableAddLow:25;
Uint32 CmdTableAddLow;
}CmdListHeaderW2;
typedef struct {
Uint32 CmdTableAddHigh;
}CmdListHeaderW3;
typedef struct {
CmdListHeaderW0 DW0;
CmdListHeaderW1 DW1;
CmdListHeaderW2 DW2;
CmdListHeaderW3 DW3;
Uint32
Uint32
Uint32
Uint32
} CmdListHeader;
typedef struct {
Uint32 B0FisType:8;//bits[7:0]
Uint32 BYTE1:8;
Uint32 B2Cmd:8;
Uint32 B3Feature:8;//bits[31:24]
}CmdFisWord0;
typedef struct {
Uint32 B0LbaLow:8; //bits[7:0]
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;
1576
Serial ATA (SATA) Controller
Preliminary
//bits[4:0]
//bit[5]
//bit[6]
//bit[8]
//bit[9]
//bit[10]
//bit[11]
//bits[15:12]
//bits[31:16]
//bits[31:7]
//bits[31:7]
//bits[31:0]
DW4;
DW5;
DW6;
DW7;
//bits[15:8]
//bits[23:16]
//bits[7:0]
© 2011, Texas Instruments Incorporated
www.ti.com
SPRUGX9 – 15 April 2011
Submit Documentation Feedback

Advertisement

Table of Contents
loading

Table of Contents