These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / rtl8192e / rtl8192e / r8192E_dev.h
1 /******************************************************************************
2  * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
3  *
4  * Based on the r8180 driver, which is:
5  * Copyright 2004-2005 Andrea Merello <andrea.merello@gmail.com>, et al.
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  *
15  * The full GNU General Public License is included in this distribution in the
16  * file called LICENSE.
17  *
18  * Contact Information:
19  * wlanfae <wlanfae@realtek.com>
20 ******************************************************************************/
21 #ifndef _RTL8192E_H
22 #define _RTL8192E_H
23
24 #include "r8190P_def.h"
25
26 bool rtl92e_is_halfn_supported_by_ap(struct net_device *dev);
27 bool rtl92e_get_nmode_support_by_sec(struct net_device *dev);
28 bool rtl92e_is_tx_stuck(struct net_device *dev);
29 bool rtl92e_is_rx_stuck(struct net_device *dev);
30 void rtl92e_ack_irq(struct net_device *dev, u32 *p_inta, u32 *p_intb);
31 void rtl92e_enable_rx(struct net_device *dev);
32 void rtl92e_enable_tx(struct net_device *dev);
33 void rtl92e_enable_irq(struct net_device *dev);
34 void rtl92e_disable_irq(struct net_device *dev);
35 void rtl92e_clear_irq(struct net_device *dev);
36 void rtl92e_init_variables(struct net_device  *dev);
37 void rtl92e_start_beacon(struct net_device *dev);
38 void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val);
39 void rtl92e_get_eeprom_size(struct net_device *dev);
40 bool rtl92e_start_adapter(struct net_device *dev);
41 void rtl92e_link_change(struct net_device *dev);
42 void rtl92e_set_monitor_mode(struct net_device *dev, bool bAllowAllDA,
43                              bool WriteIntoReg);
44 void  rtl92e_fill_tx_desc(struct net_device *dev, struct tx_desc *pdesc,
45                           struct cb_desc *cb_desc, struct sk_buff *skb);
46 void  rtl92e_fill_tx_cmd_desc(struct net_device *dev, struct tx_desc_cmd *entry,
47                               struct cb_desc *cb_desc, struct sk_buff *skb);
48 bool rtl92e_get_rx_stats(struct net_device *dev, struct rtllib_rx_stats *stats,
49                          struct rx_desc *pdesc, struct sk_buff *skb);
50 void rtl92e_stop_adapter(struct net_device *dev, bool reset);
51 void rtl92e_update_ratr_table(struct net_device *dev);
52 #endif