1 /******************************************************************************
2 *
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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 ******************************************************************************/
15
16 /* */
17 /* include files */
18 /* */
19
20 #include "odm_precomp.h"
21 /* */
22 /* ODM IO Relative API. */
23 /* */
24 #include <usb_ops_linux.h>
25
ODM_SetRFReg(struct dm_odm_t * pDM_Odm,enum RF_RADIO_PATH eRFPath,u32 RegAddr,u32 BitMask,u32 Data)26 void ODM_SetRFReg(
27 struct dm_odm_t *pDM_Odm,
28 enum RF_RADIO_PATH eRFPath,
29 u32 RegAddr,
30 u32 BitMask,
31 u32 Data
32 )
33 {
34 struct rtw_adapter *Adapter = pDM_Odm->Adapter;
35
36 PHY_SetRFReg(Adapter, eRFPath, RegAddr, BitMask, Data);
37 }
38
ODM_GetRFReg(struct dm_odm_t * pDM_Odm,enum RF_RADIO_PATH eRFPath,u32 RegAddr,u32 BitMask)39 u32 ODM_GetRFReg(
40 struct dm_odm_t *pDM_Odm,
41 enum RF_RADIO_PATH eRFPath,
42 u32 RegAddr,
43 u32 BitMask
44 )
45 {
46 struct rtw_adapter *Adapter = pDM_Odm->Adapter;
47
48 return PHY_QueryRFReg(Adapter, eRFPath, RegAddr, BitMask);
49 }
50