SPRUGR9H November 2010 – April 2015 66AK2E05 , 66AK2H06 , 66AK2H12 , 66AK2H14 , 66AK2L06 , AM5K2E02 , AM5K2E04 , SM320C6678-HIREL , TMS320C6652 , TMS320C6654 , TMS320C6655 , TMS320C6657 , TMS320C6670 , TMS320C6671 , TMS320C6672 , TMS320C6674 , TMS320C6678
The single queue channels are high priority channels that monitor a single queue. The format of the command is shown in Table 4-47:
Command Buffer Offset | Field | |||
---|---|---|---|---|
Byte 3 | Byte 2 | Byte 1 | Byte 0 | |
0x00 | Return code | 0 | Command | Channel (0-47) |
0x04 | Queue enable mask | |||
0x08 | List buffer physical address | |||
0x0C | Max page entries | Queue number | ||
0x10 | 0 | Configuration | Timer load count |
Table 4-48 shows the breakdown of each field:
Field | Byte Width | Notes |
---|---|---|
Channel Number | 1 | Accumulator channel affected (0-47) |
Command | 1 | Channel command
|
Return Code | 1 | Command return code from the firmware:
|
Queue Enable Mask | 4 | This field specifies which queues are to be included in the queue group. Bit 0 corresponds to the base queue index, and bit 31 corresponds to the base queue index plus 31. For any bit set in this mask, the corresponding queue index is included in the monitoring function.
This field is ignored in single-queue mode. |
List Address | 4 | Physical pointer to list ping/pong buffer
NULL when channel disabled |
QueueNumber | 2 | Queue number to monitor. In multi-queue mode this serves as the first of 32 consecutive queues, and must be a multiple of 32. Queue numbers programmed into the firmware must always be physical queue numbers, not a PKTDMA’s logical queue mapping. |
Max Page Entries | 2 | Max entries per list buffer page, including the count or NULL entry. For example, if you wish your list to contain 20 descriptor entries, set this field to 21. The memory required for the list would then be 21 times 2 (ping/pong) times the List Entry Size (4, 8, or 16 bytes). |
Timer Load Count | 2 | Count of global timer ticks to delay interrupt. This count acts as a countdown, except when the list is full or this count = 0, which causes an immediate interrupt. The total delay is the time programmed into the global timer (see Table 4-50) times this count. This field is not used when the Interrupt Pacing Mode = None. |
Configuration | 1 | Configuration byte (see Table 4-49) |
The configuration byte contains several sub-fields as detailed in Table 4-49:
Bits | Field Name | Notes |
---|---|---|
7-6 | Reserved | Reads return 0 and writes have no effect. |
5 | Multi-Queue Mode |
|
4 | List Count Mode |
|
3-2 | List Entry Size |
|
1-0 | Interrupt Pacing Mode |
|