Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
phy.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright(c) 2009-2012 Realtek Corporation.
4  *
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.
8  *
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.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  * The full GNU General Public License is included in this distribution in the
19  * file called LICENSE.
20  *
21  * Contact Information:
22  * wlanfae <[email protected]>
23  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
24  * Hsinchu 300, Taiwan.
25  *
26  * Larry Finger <[email protected]>
27  *
28  *****************************************************************************/
29 #ifndef __RTL92S_PHY_H__
30 #define __RTL92S_PHY_H__
31 
32 #define MAX_TXPWR_IDX_NMODE_92S 63
33 #define MAX_DOZE_WAITING_TIMES_9x 64
34 
35 /* Channel switch:The size of
36  * command tables for switch channel */
37 #define MAX_PRECMD_CNT 16
38 #define MAX_RFDEPENDCMD_CNT 16
39 #define MAX_POSTCMD_CNT 16
40 
41 #define RF90_PATH_MAX 4
42 
47 };
48 
57 };
58 
59 struct swchnlcmd {
60  enum swchnlcmd_id cmdid;
61  u32 para1;
62  u32 para2;
63  u32 msdelay;
64 };
65 
67  /* Radio Path A */
69  /* Radio Path B */
71 };
72 
73 #define hal_get_firmwareversion(rtlpriv) \
74  (((struct rt_firmware *)(rtlpriv->rtlhal.pfirmware))->firmwareversion)
75 
77 void rtl92s_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask,
78  u32 data);
81  u32 regaddr, u32 bitmask);
82 void rtl92s_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath,
83  u32 regaddr, u32 bitmask, u32 data);
85  enum nl80211_channel_type ch_type);
88  enum rf_pwrstate rfpower_state);
95 bool rtl92s_phy_set_fw_cmd(struct ieee80211_hw *hw, enum fwcmd_iotype fwcmd_io);
97 void rtl92s_phy_set_beacon_hwreg(struct ieee80211_hw *hw, u16 beaconinterval);
98 u8 rtl92s_phy_config_rf(struct ieee80211_hw *hw, enum radio_path rfpath) ;
99 
100 #endif
101