blob: d8f67902708e70955957f9a26da38c9c11de31dc [file] [log] [blame]
Larry Fingerf7c92d22014-03-28 21:37:39 -05001/******************************************************************************
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/* */
Jes Sorensen050abc42014-05-16 10:05:08 +020024#include <usb_ops_linux.h>
Larry Fingerf7c92d22014-03-28 21:37:39 -050025
Larry Fingerf7c92d22014-03-28 21:37:39 -050026void 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
39u32 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}