Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
r8192E_cmdpkt.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
3  *
4  * This program is distributed in the hope that it will be useful, but WITHOUT
5  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
7  * more details.
8  *
9  * You should have received a copy of the GNU General Public License along with
10  * this program; if not, write to the Free Software Foundation, Inc.,
11  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
12  *
13  * The full GNU General Public License is included in this distribution in the
14  * file called LICENSE.
15  *
16  * Contact Information:
17  * wlanfae <[email protected]>
18 ******************************************************************************/
19 #ifndef R819XUSB_CMDPKT_H
20 #define R819XUSB_CMDPKT_H
21 #define CMPK_RX_TX_FB_SIZE sizeof(struct cmpk_txfb)
22 #define CMPK_TX_SET_CONFIG_SIZE sizeof(struct cmpk_set_cfg)
23 #define CMPK_BOTH_QUERY_CONFIG_SIZE sizeof(struct cmpk_set_cfg)
24 #define CMPK_RX_TX_STS_SIZE sizeof(struct cmpk_tx_status)
25 #define CMPK_RX_DBG_MSG_SIZE sizeof(struct cmpk_rx_dbginfo)
26 #define CMPK_TX_RAHIS_SIZE sizeof(struct cmpk_tx_rahis)
27 
28 #define ISR_TxBcnOk BIT27
29 #define ISR_TxBcnErr BIT26
30 #define ISR_BcnTimerIntr BIT13
31 
32 
33 struct cmpk_txfb {
36  u8 TID:4; /* */
37  u8 fail_reason:3; /* */
38  u8 tok:1;
39  u8 reserve1:4; /* */
40  u8 pkt_type:2; /* */
41  u8 bandwidth:1; /* */
42  u8 qos_pkt:1; /* */
43 
44  u8 reserve2; /* */
45  u8 retry_cnt; /* */
46  u16 pkt_id; /* */
47 
48  u16 seq_num; /* */
51 
52  u8 s_rts_rate; /* */
53  u8 f_rts_rate; /* */
54  u16 pkt_length; /* */
55 
56  u16 reserve3; /* */
57  u16 duration; /* */
58 };
59 
60 struct cmpk_intr_sta {
65 };
66 
67 
68 struct cmpk_set_cfg {
82 };
83 
84 #define cmpk_query_cfg_t struct cmpk_set_cfg
85 
90 
93 
96 
99 
102 
105 
109 
113 } __packed;
114 
119 
120 
121 };
122 
127 
128  u16 cck[4];
129 
130  u16 ofdm[8];
131 
132 
133 
134 
135 
136  u16 ht_mcs[4][16];
137 
138 } __packed;
139 
150 };
151 
153  struct rtllib_rx_stats *pstats);
154 extern bool cmpk_message_handle_tx(struct net_device *dev,
155  u8 *codevirtualaddress, u32 packettype,
156  u32 buffer_len);
157 
158 
159 #endif