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 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 *
19 * The full GNU General Public License is included in this distribution in the
20 * file called LICENSE.
21 *
22 * Contact Information:
23 * wlanfae <wlanfae@realtek.com>
24******************************************************************************/
25#ifndef _RTL8192E_H
26#define _RTL8192E_H
27
28#include "r8190P_def.h"
29
30u8 rtl8192_QueryIsShort(u8 TxHT, u8 TxRate, struct cb_desc *tcb_desc);
31bool rtl8192_GetHalfNmodeSupportByAPs(struct net_device *dev);
32bool rtl8192_GetNmodeSupportBySecCfg(struct net_device *dev);
33bool rtl8192_HalTxCheckStuck(struct net_device *dev);
34bool rtl8192_HalRxCheckStuck(struct net_device *dev);
35void rtl8192_interrupt_recognized(struct net_device *dev, u32 *p_inta,
36				  u32 *p_intb);
37void rtl8192_enable_rx(struct net_device *dev);
38void rtl8192_enable_tx(struct net_device *dev);
39void rtl8192_EnableInterrupt(struct net_device *dev);
40void rtl8192_DisableInterrupt(struct net_device *dev);
41void rtl8192_ClearInterrupt(struct net_device *dev);
42void rtl8192_InitializeVariables(struct net_device  *dev);
43void rtl8192e_start_beacon(struct net_device *dev);
44void rtl8192e_SetHwReg(struct net_device *dev, u8 variable, u8 *val);
45void rtl8192_get_eeprom_size(struct net_device *dev);
46bool rtl8192_adapter_start(struct net_device *dev);
47void rtl8192_link_change(struct net_device *dev);
48void rtl8192_AllowAllDestAddr(struct net_device *dev, bool bAllowAllDA,
49			      bool WriteIntoReg);
50void  rtl8192_tx_fill_desc(struct net_device *dev, struct tx_desc *pdesc,
51			   struct cb_desc *cb_desc,
52			   struct sk_buff *skb);
53void  rtl8192_tx_fill_cmd_desc(struct net_device *dev,
54			       struct tx_desc_cmd *entry,
55			       struct cb_desc *cb_desc, struct sk_buff *skb);
56bool rtl8192_rx_query_status_desc(struct net_device *dev,
57				  struct rtllib_rx_stats *stats,
58				  struct rx_desc *pdesc,
59				  struct sk_buff *skb);
60void rtl8192_halt_adapter(struct net_device *dev, bool reset);
61void rtl8192_update_ratr_table(struct net_device *dev);
62#endif
63