Go to the documentation of this file.
40 #define TX_QUEUE_REG_OFFSET 0x10
41 #define TX_BASE_PTR(__x) (TX_BASE_PTR0 + ((__x) * TX_QUEUE_REG_OFFSET))
42 #define TX_MAX_CNT(__x) (TX_MAX_CNT0 + ((__x) * TX_QUEUE_REG_OFFSET))
43 #define TX_CTX_IDX(__x) (TX_CTX_IDX0 + ((__x) * TX_QUEUE_REG_OFFSET))
44 #define TX_DTX_IDX(__x) (TX_DTX_IDX0 + ((__x) * TX_QUEUE_REG_OFFSET))
49 #define FIRMWARE_RT2860 "rt2860.bin"
50 #define FIRMWARE_RT3290 "rt3290.bin"
51 #define FIRMWARE_IMAGE_BASE 0x2000
56 #define TXD_DESC_SIZE (4 * sizeof(__le32))
57 #define RXD_DESC_SIZE (4 * sizeof(__le32))
66 #define TXD_W0_SD_PTR0 FIELD32(0xffffffff)
71 #define TXD_W1_SD_LEN1 FIELD32(0x00003fff)
72 #define TXD_W1_LAST_SEC1 FIELD32(0x00004000)
73 #define TXD_W1_BURST FIELD32(0x00008000)
74 #define TXD_W1_SD_LEN0 FIELD32(0x3fff0000)
75 #define TXD_W1_LAST_SEC0 FIELD32(0x40000000)
76 #define TXD_W1_DMA_DONE FIELD32(0x80000000)
81 #define TXD_W2_SD_PTR1 FIELD32(0xffffffff)
89 #define TXD_W3_WIV FIELD32(0x01000000)
90 #define TXD_W3_QSEL FIELD32(0x06000000)
91 #define TXD_W3_TCO FIELD32(0x20000000)
92 #define TXD_W3_UCO FIELD32(0x40000000)
93 #define TXD_W3_ICO FIELD32(0x80000000)
102 #define RXD_W0_SDP0 FIELD32(0xffffffff)
107 #define RXD_W1_SDL1 FIELD32(0x00003fff)
108 #define RXD_W1_SDL0 FIELD32(0x3fff0000)
109 #define RXD_W1_LS0 FIELD32(0x40000000)
110 #define RXD_W1_DMA_DONE FIELD32(0x80000000)
115 #define RXD_W2_SDP1 FIELD32(0xffffffff)
122 #define RXD_W3_BA FIELD32(0x00000001)
123 #define RXD_W3_DATA FIELD32(0x00000002)
124 #define RXD_W3_NULLDATA FIELD32(0x00000004)
125 #define RXD_W3_FRAG FIELD32(0x00000008)
126 #define RXD_W3_UNICAST_TO_ME FIELD32(0x00000010)
127 #define RXD_W3_MULTICAST FIELD32(0x00000020)
128 #define RXD_W3_BROADCAST FIELD32(0x00000040)
129 #define RXD_W3_MY_BSS FIELD32(0x00000080)
130 #define RXD_W3_CRC_ERROR FIELD32(0x00000100)
131 #define RXD_W3_CIPHER_ERROR FIELD32(0x00000600)
132 #define RXD_W3_AMSDU FIELD32(0x00000800)
133 #define RXD_W3_HTC FIELD32(0x00001000)
134 #define RXD_W3_RSSI FIELD32(0x00002000)
135 #define RXD_W3_L2PAD FIELD32(0x00004000)
136 #define RXD_W3_AMPDU FIELD32(0x00008000)
137 #define RXD_W3_DECRYPTED FIELD32(0x00010000)
138 #define RXD_W3_PLCP_SIGNAL FIELD32(0x00020000)
139 #define RXD_W3_PLCP_RSSI FIELD32(0x00040000)