wl1251: move module probe methods into spi.c
[linux-2.6/btrfs-unstable.git] / drivers / staging / rtl8192su / r8192S_rtl6052.h
blob916603ceaae0b439a7497d7d1de2510db24e9ea2
1 /******************************************************************************
3 * (c) Copyright 2008, RealTEK Technologies Inc. All Rights Reserved.
5 * Module: HalRf.h ( Header File)
7 * Note: Collect every HAL RF type exter API or constant.
9 * Function:
11 * Export:
13 * Abbrev:
15 * History:
16 * Data Who Remark
18 * 09/25/2008 MHC Create initial version.
21 ******************************************************************************/
22 /* Check to see if the file has been included already. */
25 /*--------------------------Define Parameters-------------------------------*/
28 // For RF 6052 Series
30 #define RF6052_MAX_TX_PWR 0x3F
31 #define RF6052_MAX_REG 0x3F
32 #define RF6052_MAX_PATH 4
33 /*--------------------------Define Parameters-------------------------------*/
36 /*------------------------------Define structure----------------------------*/
38 /*------------------------------Define structure----------------------------*/
41 /*------------------------Export global variable----------------------------*/
42 /*------------------------Export global variable----------------------------*/
44 /*------------------------Export Marco Definition---------------------------*/
46 /*------------------------Export Marco Definition---------------------------*/
49 /*--------------------------Exported Function prototype---------------------*/
50 //======================================================
51 #if 1
52 // Function prototypes for HalPhy8225.c
53 //1======================================================
54 extern void PHY_SetRF0222DBandwidth(struct net_device* dev , HT_CHANNEL_WIDTH Bandwidth); //20M or 40M;
55 extern void PHY_SetRF8225Bandwidth( struct net_device* dev , HT_CHANNEL_WIDTH Bandwidth);
56 extern bool PHY_RF8225_Config(struct net_device* dev );
57 extern void phy_RF8225_Config_HardCode(struct net_device* dev);
58 extern bool phy_RF8225_Config_ParaFile(struct net_device* dev);
59 extern void PHY_SetRF8225CckTxPower(struct net_device* dev ,u8 powerlevel);
60 extern void PHY_SetRF8225OfdmTxPower(struct net_device* dev ,u8 powerlevel);
61 extern void PHY_SetRF0222DOfdmTxPower(struct net_device* dev ,u8 powerlevel);
62 extern void PHY_SetRF0222DCckTxPower(struct net_device* dev ,u8 powerlevel);
64 //1======================================================
65 // Function prototypes for HalPhy8256.c
66 //1======================================================
67 extern void PHY_SetRF8256Bandwidth(struct net_device* dev , HT_CHANNEL_WIDTH Bandwidth);
68 extern void PHY_RF8256_Config(struct net_device* dev);
69 extern void phy_RF8256_Config_ParaFile(struct net_device* dev);
70 extern void PHY_SetRF8256CCKTxPower(struct net_device* dev, u8 powerlevel);
71 extern void PHY_SetRF8256OFDMTxPower(struct net_device* dev, u8 powerlevel);
72 #endif
75 // RF RL6052 Series API
77 extern void RF_ChangeTxPath(struct net_device * dev, u16 DataRate);
78 extern void PHY_RF6052SetBandwidth(struct net_device * dev,HT_CHANNEL_WIDTH Bandwidth);
79 extern void PHY_RF6052SetCckTxPower(struct net_device * dev, u8 powerlevel);
80 extern void PHY_RF6052SetOFDMTxPower(struct net_device * dev, u8 powerlevel);
81 extern RT_STATUS PHY_RF6052_Config(struct net_device * dev);
82 extern void PHY_RFShadowRefresh( struct net_device * dev);
83 extern void PHY_RFShadowWrite( struct net_device* dev, u32 eRFPath, u32 Offset, u32 Data);
84 #if 0
86 // RF Shadow operation relative API
88 extern u32
89 PHY_RFShadowRead(
90 struct net_device * dev,
91 RF90_RADIO_PATH_E eRFPath,
92 u32 Offset);
93 extern void
94 PHY_RFShadowCompare(
95 struct net_device * dev,
96 RF90_RADIO_PATH_E eRFPath,
97 u32 Offset);
98 extern void
99 PHY_RFShadowRecorver(
100 struct net_device * dev,
101 RF90_RADIO_PATH_E eRFPath,
102 u32 Offset);
103 extern void
104 PHY_RFShadowCompareAll(
105 struct net_device * dev);
106 extern void
107 PHY_RFShadowRecorverAll(
108 struct net_device * dev);
109 extern void
110 PHY_RFShadowCompareFlagSet(
111 struct net_device * dev,
112 RF90_RADIO_PATH_E eRFPath,
113 u32 Offset,
114 u8 Type);
115 extern void
116 PHY_RFShadowRecorverFlagSet(
117 struct net_device * dev,
118 RF90_RADIO_PATH_E eRFPath,
119 u32 Offset,
120 u8 Type);
121 extern void
122 PHY_RFShadowCompareFlagSetAll(
123 struct net_device * dev);
124 extern void
125 PHY_RFShadowRecorverFlagSetAll(
126 struct net_device * dev);
127 extern void
128 PHY_RFShadowRefresh(
129 struct net_device * dev);
130 #endif
131 /*--------------------------Exported Function prototype---------------------*/
134 /* End of HalRf.h */