/* SPDX-License-Identifier: GPL-2.0 */ #ifndef B43_LO_H_ #define B43_LO_H_ /* G-PHY Local Oscillator */ #include "phy_g.h" struct b43_wldev; /* Local Oscillator control value-pair. */ struct b43_loctl { … }; /* Debugging: Poison value for i and q values. */ #define B43_LOCTL_POISON … /* This struct holds calibrated LO settings for a set of * Baseband and RF attenuation settings. */ struct b43_lo_calib { … }; /* Size of the DC Lookup Table in 16bit words. */ #define B43_DC_LT_SIZE … /* Local Oscillator calibration information */ struct b43_txpower_lo_control { … }; /* Calibration expire timeouts. * Timeouts must be multiple of 15 seconds. To make sure * the item really expired when the 15 second timer hits, we * subtract two additional seconds from the timeout. */ #define B43_LO_CALIB_EXPIRE … #define B43_LO_PWRVEC_EXPIRE … #define B43_LO_TXCTL_EXPIRE … /* Adjust the Local Oscillator to the saved attenuation * and txctl values. */ void b43_lo_g_adjust(struct b43_wldev *dev); /* Adjust to specific values. */ void b43_lo_g_adjust_to(struct b43_wldev *dev, u16 rfatt, u16 bbatt, u16 tx_control); void b43_gphy_dc_lt_init(struct b43_wldev *dev, bool update_all); void b43_lo_g_maintenance_work(struct b43_wldev *dev); void b43_lo_g_cleanup(struct b43_wldev *dev); void b43_lo_g_init(struct b43_wldev *dev); #endif /* B43_LO_H_ */