brintos

brintos / linux-shallow public Read only

0
0
Text · 1.2 KiB · b9475e6 Raw
42 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * Radio tuning definitions for RTL8225 on RTL81874 *5 * Copyright 2007 Michael Wu <flamingice@sourmilk.net>6 * Copyright 2007 Andrea Merello <andrea.merello@gmail.com>7 *8 * Based on the r8187 driver, which is:9 * Copyright 2005 Andrea Merello <andrea.merello@gmail.com>, et al.10 */11 12#ifndef RTL8187_RTL8225_H13#define RTL8187_RTL8225_H14 15#define RTL8187_RTL8225_ANAPARAM_ON	0xa0000a5916#define RTL8187_RTL8225_ANAPARAM2_ON	0x860c731217#define RTL8187_RTL8225_ANAPARAM_OFF	0xa00beb5918#define RTL8187_RTL8225_ANAPARAM2_OFF	0x840dec1119 20#define RTL8187B_RTL8225_ANAPARAM_ON	0x4509065821#define RTL8187B_RTL8225_ANAPARAM2_ON	0x727f3f5222#define RTL8187B_RTL8225_ANAPARAM3_ON	0x0023#define RTL8187B_RTL8225_ANAPARAM_OFF	0x5548065824#define RTL8187B_RTL8225_ANAPARAM2_OFF	0x72003f5025#define RTL8187B_RTL8225_ANAPARAM3_OFF	0x0026 27const struct rtl818x_rf_ops * rtl8187_detect_rf(struct ieee80211_hw *);28 29static inline void rtl8225_write_phy_ofdm(struct ieee80211_hw *dev,30					  u8 addr, u32 data)31{32	rtl8187_write_phy(dev, addr, data);33}34 35static inline void rtl8225_write_phy_cck(struct ieee80211_hw *dev,36					 u8 addr, u32 data)37{38	rtl8187_write_phy(dev, addr, data | 0x10000);39}40 41#endif /* RTL8187_RTL8225_H */42