SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
The procedure in Table 24-449 prepares a command list entry and issues its corresponding command.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Build command header and command table into host system memory. | For details, see Section 24.8.4.6.1, Command List Structure Basics. | - |
Create the command corresponding PRD table. | ||
Queue the command to the command list. | See Section 24.8.4.7.1, Software Processing of the Port Command List. | - |
Set the SATA_PxCMD[0] ST bit to direct the DMA to start processing the CL. | SATA_PxCMD[0] ST | 0x1(1) |
IF a nonNCQ command is issued: | ||
Set the corresponding SATA_PxCI.CI bit to activate a command already prepared in the i-th slot of the CL . | SATA_PxCI[i] CI | 0x- |
ELSE | ||
Indicate the NCQ slot positions through the SATA_PxSACT register. For details on TAG tracking, see Section 24.8.4.7.1. | SATA_PxSACT[TAG] DS | 0x- |
Set the corresponding SATA_PxCI.CI bit to activate the NCQ command already prepared in the i-th slot of the CL. | SATA_PxCI[TAG] CI | 0x- |