Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef RTL8180_RTL8225_H
0003 #define RTL8180_RTL8225_H
0004 
0005 #define RTL8225_ANAPARAM_ON 0xa0000b59
0006 #define RTL8225_ANAPARAM2_ON    0x860dec11
0007 #define RTL8225_ANAPARAM_OFF    0xa00beb59
0008 #define RTL8225_ANAPARAM2_OFF   0x840dec11
0009 
0010 const struct rtl818x_rf_ops * rtl8180_detect_rf(struct ieee80211_hw *);
0011 
0012 static inline void rtl8225_write_phy_ofdm(struct ieee80211_hw *dev,
0013                       u8 addr, u8 data)
0014 {
0015     rtl8180_write_phy(dev, addr, data);
0016 }
0017 
0018 static inline void rtl8225_write_phy_cck(struct ieee80211_hw *dev,
0019                      u8 addr, u8 data)
0020 {
0021     rtl8180_write_phy(dev, addr, data | 0x10000);
0022 }
0023 
0024 #endif /* RTL8180_RTL8225_H */