1 /******************************************************************************
2 * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
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
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
13 * The full GNU General Public License is included in this distribution in the
14 * file called LICENSE.
16 * Contact Information:
17 * wlanfae <wlanfae@realtek.com>
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(cmpk_tx_status_t)
25 #define CMPK_RX_DBG_MSG_SIZE sizeof(cmpk_rx_dbginfo_t)
26 #define CMPK_TX_RAHIS_SIZE sizeof(cmpk_tx_rahis_t)
28 #define ISR_TxBcnOk BIT27
29 #define ISR_TxBcnErr BIT26
30 #define ISR_BcnTimerIntr BIT13
37 u8 fail_reason
:3; /* */
60 struct cmpk_intr_sta
{
84 #define cmpk_query_cfg_t struct cmpk_set_cfg
86 typedef struct tag_tx_stats_feedback
114 }__attribute__((packed
)) cmpk_tx_status_t
;
116 typedef struct tag_rx_debug_message_feedback
125 typedef struct tag_tx_rate_history
141 }__attribute__((packed
)) cmpk_tx_rahis_t
;
143 typedef enum tag_command_packet_directories
146 RX_INTERRUPT_STATUS
= 1,
148 BOTH_QUERY_CONFIG
= 3,
150 RX_DBGINFO_FEEDBACK
= 5,
151 RX_TX_PER_PKT_FEEDBACK
= 6,
152 RX_TX_RATE_HISTORY
= 7,
156 extern u32
cmpk_message_handle_rx(struct net_device
*dev
, struct rtllib_rx_stats
* pstats
);
157 extern bool cmpk_message_handle_tx(struct net_device
*dev
, u8
* codevirtualaddress
, u32 packettype
, u32 buffer_len
);