• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/rtl8192su/
1/******************************************************************************
2 *
3 *     (c) Copyright  2008, RealTEK Technologies Inc. All Rights Reserved.
4 *
5 * Module:	HalRf.h	( Header File)
6 *
7 * Note:	Collect every HAL RF type exter API or constant.
8 *
9 * Function:
10 *
11 * Export:
12 *
13 * Abbrev:
14 *
15 * History:
16 * Data			Who		Remark
17 *
18 * 09/25/2008	MHC		Create initial version.
19 *
20 *
21******************************************************************************/
22/* Check to see if the file has been included already.  */
23
24
25/*--------------------------Define Parameters-------------------------------*/
26
27//
28// For RF 6052 Series
29//
30#define	RF6052_MAX_TX_PWR	0x3F
31#define	RF6052_MAX_REG		0x3F
32#define	RF6052_MAX_PATH		4
33/*--------------------------Define Parameters-------------------------------*/
34
35
36/*------------------------------Define structure----------------------------*/
37
38/*------------------------------Define structure----------------------------*/
39
40
41/*------------------------Export global variable----------------------------*/
42/*------------------------Export global variable----------------------------*/
43
44/*------------------------Export Marco Definition---------------------------*/
45
46/*------------------------Export Marco Definition---------------------------*/
47
48
49/*--------------------------Exported Function prototype---------------------*/
50//======================================================
51// Function prototypes for HalPhy8225.c
52//1======================================================
53extern void PHY_SetRF0222DBandwidth(struct net_device* dev , HT_CHANNEL_WIDTH Bandwidth);	//20M or 40M;
54extern void PHY_SetRF8225Bandwidth(	struct net_device* dev ,	HT_CHANNEL_WIDTH Bandwidth);
55extern bool PHY_RF8225_Config(struct net_device* dev );
56extern void phy_RF8225_Config_HardCode(struct net_device*	dev);
57extern bool phy_RF8225_Config_ParaFile(struct net_device* dev);
58extern void PHY_SetRF8225CckTxPower(struct net_device* dev ,u8 powerlevel);
59extern void PHY_SetRF8225OfdmTxPower(struct net_device* dev ,u8        powerlevel);
60extern void PHY_SetRF0222DOfdmTxPower(struct net_device* dev ,u8 powerlevel);
61extern void PHY_SetRF0222DCckTxPower(struct net_device* dev ,u8        powerlevel);
62
63//1======================================================
64// Function prototypes for HalPhy8256.c
65//1======================================================
66extern void PHY_SetRF8256Bandwidth(struct net_device* dev , HT_CHANNEL_WIDTH Bandwidth);
67extern void PHY_RF8256_Config(struct net_device* dev);
68extern void phy_RF8256_Config_ParaFile(struct net_device* dev);
69extern void PHY_SetRF8256CCKTxPower(struct net_device*	dev, u8	powerlevel);
70extern void PHY_SetRF8256OFDMTxPower(struct net_device* dev, u8 powerlevel);
71
72//
73// RF RL6052 Series API
74//
75extern	void		RF_ChangeTxPath(struct net_device  * dev, u16 DataRate);
76extern	void		PHY_RF6052SetBandwidth(struct net_device  * dev,HT_CHANNEL_WIDTH	Bandwidth);
77extern	void		PHY_RF6052SetCckTxPower(struct net_device  * dev, u8	powerlevel);
78extern	void		PHY_RF6052SetOFDMTxPower(struct net_device  * dev, u8 powerlevel);
79extern	RT_STATUS	PHY_RF6052_Config(struct net_device  * dev);
80extern void PHY_RFShadowRefresh( struct net_device  		* dev);
81extern void PHY_RFShadowWrite( struct net_device* dev, u32 eRFPath, u32 Offset, u32 Data);
82/*--------------------------Exported Function prototype---------------------*/
83
84
85/* End of HalRf.h */
86