rtl8225.h 635 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef RTL8180_RTL8225_H
  3. #define RTL8180_RTL8225_H
  4. #define RTL8225_ANAPARAM_ON 0xa0000b59
  5. #define RTL8225_ANAPARAM2_ON 0x860dec11
  6. #define RTL8225_ANAPARAM_OFF 0xa00beb59
  7. #define RTL8225_ANAPARAM2_OFF 0x840dec11
  8. const struct rtl818x_rf_ops * rtl8180_detect_rf(struct ieee80211_hw *);
  9. static inline void rtl8225_write_phy_ofdm(struct ieee80211_hw *dev,
  10. u8 addr, u8 data)
  11. {
  12. rtl8180_write_phy(dev, addr, data);
  13. }
  14. static inline void rtl8225_write_phy_cck(struct ieee80211_hw *dev,
  15. u8 addr, u8 data)
  16. {
  17. rtl8180_write_phy(dev, addr, data | 0x10000);
  18. }
  19. #endif /* RTL8180_RTL8225_H */