powerpc/eeh: Fix PE#0 check in eeh_add_to_parent_pe()
[linux/fpc-iii.git] / drivers / net / wireless / rtlwifi / core.h
blob7b64e34f421e0d4ec41c072f07ed096c7d53ce83
1 /******************************************************************************
3 * Copyright(c) 2009-2012 Realtek Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
14 * The full GNU General Public License is included in this distribution in the
15 * file called LICENSE.
17 * Contact Information:
18 * wlanfae <wlanfae@realtek.com>
19 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20 * Hsinchu 300, Taiwan.
22 * Larry Finger <Larry.Finger@lwfinger.net>
24 *****************************************************************************/
26 #ifndef __RTL_CORE_H__
27 #define __RTL_CORE_H__
29 #define RTL_SUPPORTED_FILTERS \
30 (FIF_PROMISC_IN_BSS | \
31 FIF_ALLMULTI | FIF_CONTROL | \
32 FIF_OTHER_BSS | \
33 FIF_FCSFAIL | \
34 FIF_BCN_PRBRESP_PROMISC)
36 #define RTL_SUPPORTED_CTRL_FILTER 0xFF
38 #define DM_DIG_THRESH_HIGH 40
39 #define DM_DIG_THRESH_LOW 35
40 #define DM_FALSEALARM_THRESH_LOW 400
41 #define DM_FALSEALARM_THRESH_HIGH 1000
43 #define DM_DIG_MAX 0x3e
44 #define DM_DIG_MIN 0x1e
45 #define DM_DIG_MAX_AP 0x32
46 #define DM_DIG_BACKOFF_MAX 12
47 #define DM_DIG_BACKOFF_MIN -4
48 #define DM_DIG_BACKOFF_DEFAULT 10
50 enum cck_packet_detection_threshold {
51 CCK_PD_STAGE_LOWRSSI = 0,
52 CCK_PD_STAGE_HIGHRSSI = 1,
53 CCK_FA_STAGE_LOW = 2,
54 CCK_FA_STAGE_HIGH = 3,
55 CCK_PD_STAGE_MAX = 4,
58 enum dm_dig_ext_port_alg_e {
59 DIG_EXT_PORT_STAGE_0 = 0,
60 DIG_EXT_PORT_STAGE_1 = 1,
61 DIG_EXT_PORT_STAGE_2 = 2,
62 DIG_EXT_PORT_STAGE_3 = 3,
63 DIG_EXT_PORT_STAGE_MAX = 4,
66 enum dm_dig_connect_e {
67 DIG_STA_DISCONNECT,
68 DIG_STA_CONNECT,
69 DIG_STA_BEFORE_CONNECT,
70 DIG_MULTISTA_DISCONNECT,
71 DIG_MULTISTA_CONNECT,
72 DIG_AP_DISCONNECT,
73 DIG_AP_CONNECT,
74 DIG_AP_ADD_STATION,
75 DIG_CONNECT_MAX
78 extern const struct ieee80211_ops rtl_ops;
79 void rtl_fw_cb(const struct firmware *firmware, void *context);
80 void rtl_wowlan_fw_cb(const struct firmware *firmware, void *context);
81 void rtl_addr_delay(u32 addr);
82 void rtl_rfreg_delay(struct ieee80211_hw *hw, enum radio_path rfpath, u32 addr,
83 u32 mask, u32 data);
84 void rtl_bb_delay(struct ieee80211_hw *hw, u32 addr, u32 data);
85 bool rtl_cmd_send_packet(struct ieee80211_hw *hw, struct sk_buff *skb);
86 bool rtl_btc_status_false(void);
87 void rtl_dm_diginit(struct ieee80211_hw *hw, u32 cur_igval);
89 #endif