desc.h (d4bbf7e7759afc172e2bfbc5c416324590049cdd) | desc.h (c47faa364cfb249d5d7670fb7293a6f9acd8aa9e) |
---|---|
1/* 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 6 unchanged lines hidden (view full) --- 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * 17 */ 18 19/* 20 * RX/TX descriptor structures 21 */ 22 | 1/* 2 * Copyright (c) 2004-2008 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2008 Nick Kossifidis <mickflemm@gmail.com> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 6 unchanged lines hidden (view full) --- 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * 17 */ 18 19/* 20 * RX/TX descriptor structures 21 */ 22 |
23/* 24 * Common hardware RX control descriptor | 23/** 24 * struct ath5k_hw_rx_ctl - Common hardware RX control descriptor 25 * @rx_control_0: RX control word 0 26 * @rx_control_1: RX control word 1 |
25 */ 26struct ath5k_hw_rx_ctl { | 27 */ 28struct ath5k_hw_rx_ctl { |
27 u32 rx_control_0; /* RX control word 0 */ 28 u32 rx_control_1; /* RX control word 1 */ | 29 u32 rx_control_0; 30 u32 rx_control_1; |
29} __packed __aligned(4); 30 31/* RX control word 1 fields/flags */ 32#define AR5K_DESC_RX_CTL1_BUF_LEN 0x00000fff /* data buffer length */ 33#define AR5K_DESC_RX_CTL1_INTREQ 0x00002000 /* RX interrupt request */ 34 | 31} __packed __aligned(4); 32 33/* RX control word 1 fields/flags */ 34#define AR5K_DESC_RX_CTL1_BUF_LEN 0x00000fff /* data buffer length */ 35#define AR5K_DESC_RX_CTL1_INTREQ 0x00002000 /* RX interrupt request */ 36 |
35/* 36 * Common hardware RX status descriptor | 37/** 38 * struct ath5k_hw_rx_status - Common hardware RX status descriptor 39 * @rx_status_0: RX status word 0 40 * @rx_status_1: RX status word 1 41 * |
37 * 5210, 5211 and 5212 differ only in the fields and flags defined below 38 */ 39struct ath5k_hw_rx_status { | 42 * 5210, 5211 and 5212 differ only in the fields and flags defined below 43 */ 44struct ath5k_hw_rx_status { |
40 u32 rx_status_0; /* RX status word 0 */ 41 u32 rx_status_1; /* RX status word 1 */ | 45 u32 rx_status_0; 46 u32 rx_status_1; |
42} __packed __aligned(4); 43 44/* 5210/5211 */ 45/* RX status word 0 fields/flags */ 46#define AR5K_5210_RX_DESC_STATUS0_DATA_LEN 0x00000fff /* RX data length */ 47#define AR5K_5210_RX_DESC_STATUS0_MORE 0x00001000 /* more desc for this frame */ 48#define AR5K_5210_RX_DESC_STATUS0_RECEIVE_ANT_5210 0x00004000 /* [5210] receive on ant 1 */ 49#define AR5K_5210_RX_DESC_STATUS0_RECEIVE_RATE 0x00078000 /* reception rate */ --- 43 unchanged lines hidden (view full) --- 93#define AR5K_5212_RX_DESC_STATUS1_RECEIVE_TIMESTAMP 0x7fff0000 /* first 15bit of the TSF */ 94#define AR5K_5212_RX_DESC_STATUS1_RECEIVE_TIMESTAMP_S 16 95#define AR5K_5212_RX_DESC_STATUS1_KEY_CACHE_MISS 0x80000000 /* key cache miss */ 96#define AR5K_5212_RX_DESC_STATUS1_PHY_ERROR_CODE 0x0000ff00 /* phy error code overlays key index and valid fields */ 97#define AR5K_5212_RX_DESC_STATUS1_PHY_ERROR_CODE_S 8 98 99/** 100 * enum ath5k_phy_error_code - PHY Error codes | 47} __packed __aligned(4); 48 49/* 5210/5211 */ 50/* RX status word 0 fields/flags */ 51#define AR5K_5210_RX_DESC_STATUS0_DATA_LEN 0x00000fff /* RX data length */ 52#define AR5K_5210_RX_DESC_STATUS0_MORE 0x00001000 /* more desc for this frame */ 53#define AR5K_5210_RX_DESC_STATUS0_RECEIVE_ANT_5210 0x00004000 /* [5210] receive on ant 1 */ 54#define AR5K_5210_RX_DESC_STATUS0_RECEIVE_RATE 0x00078000 /* reception rate */ --- 43 unchanged lines hidden (view full) --- 98#define AR5K_5212_RX_DESC_STATUS1_RECEIVE_TIMESTAMP 0x7fff0000 /* first 15bit of the TSF */ 99#define AR5K_5212_RX_DESC_STATUS1_RECEIVE_TIMESTAMP_S 16 100#define AR5K_5212_RX_DESC_STATUS1_KEY_CACHE_MISS 0x80000000 /* key cache miss */ 101#define AR5K_5212_RX_DESC_STATUS1_PHY_ERROR_CODE 0x0000ff00 /* phy error code overlays key index and valid fields */ 102#define AR5K_5212_RX_DESC_STATUS1_PHY_ERROR_CODE_S 8 103 104/** 105 * enum ath5k_phy_error_code - PHY Error codes |
106 * @AR5K_RX_PHY_ERROR_UNDERRUN: Transmit underrun, [5210] No error 107 * @AR5K_RX_PHY_ERROR_TIMING: Timing error 108 * @AR5K_RX_PHY_ERROR_PARITY: Illegal parity 109 * @AR5K_RX_PHY_ERROR_RATE: Illegal rate 110 * @AR5K_RX_PHY_ERROR_LENGTH: Illegal length 111 * @AR5K_RX_PHY_ERROR_RADAR: Radar detect, [5210] 64 QAM rate 112 * @AR5K_RX_PHY_ERROR_SERVICE: Illegal service 113 * @AR5K_RX_PHY_ERROR_TOR: Transmit override receive 114 * @AR5K_RX_PHY_ERROR_OFDM_TIMING: OFDM Timing error [5212+] 115 * @AR5K_RX_PHY_ERROR_OFDM_SIGNAL_PARITY: OFDM Signal parity error [5212+] 116 * @AR5K_RX_PHY_ERROR_OFDM_RATE_ILLEGAL: OFDM Illegal rate [5212+] 117 * @AR5K_RX_PHY_ERROR_OFDM_LENGTH_ILLEGAL: OFDM Illegal length [5212+] 118 * @AR5K_RX_PHY_ERROR_OFDM_POWER_DROP: OFDM Power drop [5212+] 119 * @AR5K_RX_PHY_ERROR_OFDM_SERVICE: OFDM Service (?) [5212+] 120 * @AR5K_RX_PHY_ERROR_OFDM_RESTART: OFDM Restart (?) [5212+] 121 * @AR5K_RX_PHY_ERROR_CCK_TIMING: CCK Timing error [5212+] 122 * @AR5K_RX_PHY_ERROR_CCK_HEADER_CRC: Header CRC error [5212+] 123 * @AR5K_RX_PHY_ERROR_CCK_RATE_ILLEGAL: Illegal rate [5212+] 124 * @AR5K_RX_PHY_ERROR_CCK_SERVICE: CCK Service (?) [5212+] 125 * @AR5K_RX_PHY_ERROR_CCK_RESTART: CCK Restart (?) [5212+] |
|
101 */ 102enum ath5k_phy_error_code { | 126 */ 127enum ath5k_phy_error_code { |
103 AR5K_RX_PHY_ERROR_UNDERRUN = 0, /* Transmit underrun, [5210] No error */ 104 AR5K_RX_PHY_ERROR_TIMING = 1, /* Timing error */ 105 AR5K_RX_PHY_ERROR_PARITY = 2, /* Illegal parity */ 106 AR5K_RX_PHY_ERROR_RATE = 3, /* Illegal rate */ 107 AR5K_RX_PHY_ERROR_LENGTH = 4, /* Illegal length */ 108 AR5K_RX_PHY_ERROR_RADAR = 5, /* Radar detect, [5210] 64 QAM rate */ 109 AR5K_RX_PHY_ERROR_SERVICE = 6, /* Illegal service */ 110 AR5K_RX_PHY_ERROR_TOR = 7, /* Transmit override receive */ 111 /* these are specific to the 5212 */ | 128 AR5K_RX_PHY_ERROR_UNDERRUN = 0, 129 AR5K_RX_PHY_ERROR_TIMING = 1, 130 AR5K_RX_PHY_ERROR_PARITY = 2, 131 AR5K_RX_PHY_ERROR_RATE = 3, 132 AR5K_RX_PHY_ERROR_LENGTH = 4, 133 AR5K_RX_PHY_ERROR_RADAR = 5, 134 AR5K_RX_PHY_ERROR_SERVICE = 6, 135 AR5K_RX_PHY_ERROR_TOR = 7, |
112 AR5K_RX_PHY_ERROR_OFDM_TIMING = 17, 113 AR5K_RX_PHY_ERROR_OFDM_SIGNAL_PARITY = 18, 114 AR5K_RX_PHY_ERROR_OFDM_RATE_ILLEGAL = 19, 115 AR5K_RX_PHY_ERROR_OFDM_LENGTH_ILLEGAL = 20, 116 AR5K_RX_PHY_ERROR_OFDM_POWER_DROP = 21, 117 AR5K_RX_PHY_ERROR_OFDM_SERVICE = 22, 118 AR5K_RX_PHY_ERROR_OFDM_RESTART = 23, 119 AR5K_RX_PHY_ERROR_CCK_TIMING = 25, 120 AR5K_RX_PHY_ERROR_CCK_HEADER_CRC = 26, 121 AR5K_RX_PHY_ERROR_CCK_RATE_ILLEGAL = 27, 122 AR5K_RX_PHY_ERROR_CCK_SERVICE = 30, 123 AR5K_RX_PHY_ERROR_CCK_RESTART = 31, 124}; 125 | 136 AR5K_RX_PHY_ERROR_OFDM_TIMING = 17, 137 AR5K_RX_PHY_ERROR_OFDM_SIGNAL_PARITY = 18, 138 AR5K_RX_PHY_ERROR_OFDM_RATE_ILLEGAL = 19, 139 AR5K_RX_PHY_ERROR_OFDM_LENGTH_ILLEGAL = 20, 140 AR5K_RX_PHY_ERROR_OFDM_POWER_DROP = 21, 141 AR5K_RX_PHY_ERROR_OFDM_SERVICE = 22, 142 AR5K_RX_PHY_ERROR_OFDM_RESTART = 23, 143 AR5K_RX_PHY_ERROR_CCK_TIMING = 25, 144 AR5K_RX_PHY_ERROR_CCK_HEADER_CRC = 26, 145 AR5K_RX_PHY_ERROR_CCK_RATE_ILLEGAL = 27, 146 AR5K_RX_PHY_ERROR_CCK_SERVICE = 30, 147 AR5K_RX_PHY_ERROR_CCK_RESTART = 31, 148}; 149 |
126/* 127 * 5210/5211 hardware 2-word TX control descriptor | 150/** 151 * struct ath5k_hw_2w_tx_ctl - 5210/5211 hardware 2-word TX control descriptor 152 * @tx_control_0: TX control word 0 153 * @tx_control_1: TX control word 1 |
128 */ 129struct ath5k_hw_2w_tx_ctl { | 154 */ 155struct ath5k_hw_2w_tx_ctl { |
130 u32 tx_control_0; /* TX control word 0 */ 131 u32 tx_control_1; /* TX control word 1 */ | 156 u32 tx_control_0; 157 u32 tx_control_1; |
132} __packed __aligned(4); 133 134/* TX control word 0 fields/flags */ 135#define AR5K_2W_TX_DESC_CTL0_FRAME_LEN 0x00000fff /* frame length */ 136#define AR5K_2W_TX_DESC_CTL0_HEADER_LEN_5210 0x0003f000 /* [5210] header length */ 137#define AR5K_2W_TX_DESC_CTL0_HEADER_LEN_5210_S 12 138#define AR5K_2W_TX_DESC_CTL0_XMIT_RATE 0x003c0000 /* tx rate */ 139#define AR5K_2W_TX_DESC_CTL0_XMIT_RATE_S 18 --- 32 unchanged lines hidden (view full) --- 172#define AR5K_AR5210_TX_DESC_FRAME_TYPE_NORMAL 0 173#define AR5K_AR5210_TX_DESC_FRAME_TYPE_ATIM 1 174#define AR5K_AR5210_TX_DESC_FRAME_TYPE_PSPOLL 2 175#define AR5K_AR5210_TX_DESC_FRAME_TYPE_NO_DELAY 3 176#define AR5K_AR5211_TX_DESC_FRAME_TYPE_BEACON 3 177#define AR5K_AR5210_TX_DESC_FRAME_TYPE_PIFS 4 178#define AR5K_AR5211_TX_DESC_FRAME_TYPE_PRESP 4 179 | 158} __packed __aligned(4); 159 160/* TX control word 0 fields/flags */ 161#define AR5K_2W_TX_DESC_CTL0_FRAME_LEN 0x00000fff /* frame length */ 162#define AR5K_2W_TX_DESC_CTL0_HEADER_LEN_5210 0x0003f000 /* [5210] header length */ 163#define AR5K_2W_TX_DESC_CTL0_HEADER_LEN_5210_S 12 164#define AR5K_2W_TX_DESC_CTL0_XMIT_RATE 0x003c0000 /* tx rate */ 165#define AR5K_2W_TX_DESC_CTL0_XMIT_RATE_S 18 --- 32 unchanged lines hidden (view full) --- 198#define AR5K_AR5210_TX_DESC_FRAME_TYPE_NORMAL 0 199#define AR5K_AR5210_TX_DESC_FRAME_TYPE_ATIM 1 200#define AR5K_AR5210_TX_DESC_FRAME_TYPE_PSPOLL 2 201#define AR5K_AR5210_TX_DESC_FRAME_TYPE_NO_DELAY 3 202#define AR5K_AR5211_TX_DESC_FRAME_TYPE_BEACON 3 203#define AR5K_AR5210_TX_DESC_FRAME_TYPE_PIFS 4 204#define AR5K_AR5211_TX_DESC_FRAME_TYPE_PRESP 4 205 |
180/* 181 * 5212 hardware 4-word TX control descriptor | 206/** 207 * struct ath5k_hw_4w_tx_ctl - 5212 hardware 4-word TX control descriptor 208 * @tx_control_0: TX control word 0 209 * @tx_control_1: TX control word 1 210 * @tx_control_2: TX control word 2 211 * @tx_control_3: TX control word 3 |
182 */ 183struct ath5k_hw_4w_tx_ctl { | 212 */ 213struct ath5k_hw_4w_tx_ctl { |
184 u32 tx_control_0; /* TX control word 0 */ 185 u32 tx_control_1; /* TX control word 1 */ 186 u32 tx_control_2; /* TX control word 2 */ 187 u32 tx_control_3; /* TX control word 3 */ | 214 u32 tx_control_0; 215 u32 tx_control_1; 216 u32 tx_control_2; 217 u32 tx_control_3; |
188} __packed __aligned(4); 189 190/* TX control word 0 fields/flags */ 191#define AR5K_4W_TX_DESC_CTL0_FRAME_LEN 0x00000fff /* frame length */ 192#define AR5K_4W_TX_DESC_CTL0_XMIT_POWER 0x003f0000 /* transmit power */ 193#define AR5K_4W_TX_DESC_CTL0_XMIT_POWER_S 16 194#define AR5K_4W_TX_DESC_CTL0_RTSENA 0x00400000 /* RTS/CTS enable */ 195#define AR5K_4W_TX_DESC_CTL0_VEOL 0x00800000 /* virtual end-of-list */ --- 37 unchanged lines hidden (view full) --- 233#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE1_S 5 234#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE2 0x00007c00 /* series 2 tx rate */ 235#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE2_S 10 236#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE3 0x000f8000 /* series 3 tx rate */ 237#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE3_S 15 238#define AR5K_4W_TX_DESC_CTL3_RTS_CTS_RATE 0x01f00000 /* RTS or CTS rate */ 239#define AR5K_4W_TX_DESC_CTL3_RTS_CTS_RATE_S 20 240 | 218} __packed __aligned(4); 219 220/* TX control word 0 fields/flags */ 221#define AR5K_4W_TX_DESC_CTL0_FRAME_LEN 0x00000fff /* frame length */ 222#define AR5K_4W_TX_DESC_CTL0_XMIT_POWER 0x003f0000 /* transmit power */ 223#define AR5K_4W_TX_DESC_CTL0_XMIT_POWER_S 16 224#define AR5K_4W_TX_DESC_CTL0_RTSENA 0x00400000 /* RTS/CTS enable */ 225#define AR5K_4W_TX_DESC_CTL0_VEOL 0x00800000 /* virtual end-of-list */ --- 37 unchanged lines hidden (view full) --- 263#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE1_S 5 264#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE2 0x00007c00 /* series 2 tx rate */ 265#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE2_S 10 266#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE3 0x000f8000 /* series 3 tx rate */ 267#define AR5K_4W_TX_DESC_CTL3_XMIT_RATE3_S 15 268#define AR5K_4W_TX_DESC_CTL3_RTS_CTS_RATE 0x01f00000 /* RTS or CTS rate */ 269#define AR5K_4W_TX_DESC_CTL3_RTS_CTS_RATE_S 20 270 |
241/* 242 * Common TX status descriptor | 271/** 272 * struct ath5k_hw_tx_status - Common TX status descriptor 273 * @tx_status_0: TX status word 0 274 * @tx_status_1: TX status word 1 |
243 */ 244struct ath5k_hw_tx_status { | 275 */ 276struct ath5k_hw_tx_status { |
245 u32 tx_status_0; /* TX status word 0 */ 246 u32 tx_status_1; /* TX status word 1 */ | 277 u32 tx_status_0; 278 u32 tx_status_1; |
247} __packed __aligned(4); 248 249/* TX status word 0 fields/flags */ 250#define AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK 0x00000001 /* TX success */ 251#define AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES 0x00000002 /* excessive retries */ 252#define AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN 0x00000004 /* FIFO underrun */ 253#define AR5K_DESC_TX_STATUS0_FILTERED 0x00000008 /* TX filter indication */ 254/* according to the HAL sources the spec has short/long retry counts reversed. --- 16 unchanged lines hidden (view full) --- 271#define AR5K_DESC_TX_STATUS1_SEQ_NUM_S 1 272#define AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH 0x001fe000 /* signal strength of ACK */ 273#define AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH_S 13 274#define AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212 0x00600000 /* [5212] final TX attempt series ix */ 275#define AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212_S 21 276#define AR5K_DESC_TX_STATUS1_COMP_SUCCESS_5212 0x00800000 /* [5212] compression status */ 277#define AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212 0x01000000 /* [5212] transmit antenna */ 278 | 279} __packed __aligned(4); 280 281/* TX status word 0 fields/flags */ 282#define AR5K_DESC_TX_STATUS0_FRAME_XMIT_OK 0x00000001 /* TX success */ 283#define AR5K_DESC_TX_STATUS0_EXCESSIVE_RETRIES 0x00000002 /* excessive retries */ 284#define AR5K_DESC_TX_STATUS0_FIFO_UNDERRUN 0x00000004 /* FIFO underrun */ 285#define AR5K_DESC_TX_STATUS0_FILTERED 0x00000008 /* TX filter indication */ 286/* according to the HAL sources the spec has short/long retry counts reversed. --- 16 unchanged lines hidden (view full) --- 303#define AR5K_DESC_TX_STATUS1_SEQ_NUM_S 1 304#define AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH 0x001fe000 /* signal strength of ACK */ 305#define AR5K_DESC_TX_STATUS1_ACK_SIG_STRENGTH_S 13 306#define AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212 0x00600000 /* [5212] final TX attempt series ix */ 307#define AR5K_DESC_TX_STATUS1_FINAL_TS_IX_5212_S 21 308#define AR5K_DESC_TX_STATUS1_COMP_SUCCESS_5212 0x00800000 /* [5212] compression status */ 309#define AR5K_DESC_TX_STATUS1_XMIT_ANTENNA_5212 0x01000000 /* [5212] transmit antenna */ 310 |
279/* 280 * 5210/5211 hardware TX descriptor | 311/** 312 * struct ath5k_hw_5210_tx_desc - 5210/5211 hardware TX descriptor 313 * @tx_ctl: The &struct ath5k_hw_2w_tx_ctl 314 * @tx_stat: The &struct ath5k_hw_tx_status |
281 */ 282struct ath5k_hw_5210_tx_desc { 283 struct ath5k_hw_2w_tx_ctl tx_ctl; 284 struct ath5k_hw_tx_status tx_stat; 285} __packed __aligned(4); 286 | 315 */ 316struct ath5k_hw_5210_tx_desc { 317 struct ath5k_hw_2w_tx_ctl tx_ctl; 318 struct ath5k_hw_tx_status tx_stat; 319} __packed __aligned(4); 320 |
287/* 288 * 5212 hardware TX descriptor | 321/** 322 * struct ath5k_hw_5212_tx_desc - 5212 hardware TX descriptor 323 * @tx_ctl: The &struct ath5k_hw_4w_tx_ctl 324 * @tx_stat: The &struct ath5k_hw_tx_status |
289 */ 290struct ath5k_hw_5212_tx_desc { 291 struct ath5k_hw_4w_tx_ctl tx_ctl; 292 struct ath5k_hw_tx_status tx_stat; 293} __packed __aligned(4); 294 | 325 */ 326struct ath5k_hw_5212_tx_desc { 327 struct ath5k_hw_4w_tx_ctl tx_ctl; 328 struct ath5k_hw_tx_status tx_stat; 329} __packed __aligned(4); 330 |
295/* 296 * Common hardware RX descriptor | 331/** 332 * struct ath5k_hw_all_rx_desc - Common hardware RX descriptor 333 * @rx_ctl: The &struct ath5k_hw_rx_ctl 334 * @rx_stat: The &struct ath5k_hw_rx_status |
297 */ 298struct ath5k_hw_all_rx_desc { 299 struct ath5k_hw_rx_ctl rx_ctl; 300 struct ath5k_hw_rx_status rx_stat; 301} __packed __aligned(4); 302 | 335 */ 336struct ath5k_hw_all_rx_desc { 337 struct ath5k_hw_rx_ctl rx_ctl; 338 struct ath5k_hw_rx_status rx_stat; 339} __packed __aligned(4); 340 |
303/* 304 * Atheros hardware DMA descriptor | 341/** 342 * struct ath5k_desc - Atheros hardware DMA descriptor 343 * @ds_link: Physical address of the next descriptor 344 * @ds_data: Physical address of data buffer (skb) 345 * @ud: Union containing hw_5xxx_tx_desc structs and hw_all_rx_desc 346 * |
305 * This is read and written to by the hardware 306 */ 307struct ath5k_desc { | 347 * This is read and written to by the hardware 348 */ 349struct ath5k_desc { |
308 u32 ds_link; /* physical address of the next descriptor */ 309 u32 ds_data; /* physical address of data buffer (skb) */ | 350 u32 ds_link; 351 u32 ds_data; |
310 311 union { 312 struct ath5k_hw_5210_tx_desc ds_tx5210; 313 struct ath5k_hw_5212_tx_desc ds_tx5212; 314 struct ath5k_hw_all_rx_desc ds_rx; 315 } ud; 316} __packed __aligned(4); 317 318#define AR5K_RXDESC_INTREQ 0x0020 319 320#define AR5K_TXDESC_CLRDMASK 0x0001 321#define AR5K_TXDESC_NOACK 0x0002 /*[5211+]*/ 322#define AR5K_TXDESC_RTSENA 0x0004 323#define AR5K_TXDESC_CTSENA 0x0008 324#define AR5K_TXDESC_INTREQ 0x0010 325#define AR5K_TXDESC_VEOL 0x0020 /*[5211+]*/ | 352 353 union { 354 struct ath5k_hw_5210_tx_desc ds_tx5210; 355 struct ath5k_hw_5212_tx_desc ds_tx5212; 356 struct ath5k_hw_all_rx_desc ds_rx; 357 } ud; 358} __packed __aligned(4); 359 360#define AR5K_RXDESC_INTREQ 0x0020 361 362#define AR5K_TXDESC_CLRDMASK 0x0001 363#define AR5K_TXDESC_NOACK 0x0002 /*[5211+]*/ 364#define AR5K_TXDESC_RTSENA 0x0004 365#define AR5K_TXDESC_CTSENA 0x0008 366#define AR5K_TXDESC_INTREQ 0x0010 367#define AR5K_TXDESC_VEOL 0x0020 /*[5211+]*/ |