Linux Kernel
3.7.1
|
#include <4965.h>
Data Fields | |
__le16 | tfd_offset [TFD_QUEUE_BC_SIZE] |
u8 | pad [1024-(TFD_QUEUE_BC_SIZE)*sizeof(__le16)] |
struct il4965_schedq_bc_tbl
Byte Count table
Each Tx queue uses a byte-count table containing 320 entries: one 16-bit entry for each of 256 TFDs, plus an additional 64 entries that duplicate the first 64 entries (to avoid wrap-around within a Tx win; max Tx win is 64 TFDs).
When driver sets up a new TFD, it must also enter the total byte count of the frame to be transmitted into the corresponding entry in the byte count table for the chosen Tx queue. If the TFD idx is 0-63, the driver must duplicate the byte count entry in corresponding idx 256-319.
padding puts each byte count table on a 1024-byte boundary; 4965 assumes tables are separated by 1024 bytes.
__le16 tfd_offset[TFD_QUEUE_BC_SIZE] |