aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/phy_common.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-09-03 06:12:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-08 14:00:16 -0400
commitcb24f57fe6f94a445fad8fab6ebdde7c51857895 (patch)
tree33e61e709af26c641632ebc4da74c3a5ad457562 /drivers/net/wireless/b43/phy_common.h
parent2b80848e3818fb1c8ccddc105b065a86c68afa9d (diff)
b43: Move Analog switching into phy code
This moves the Analog switching code into the PHY files. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy_common.h')
-rw-r--r--drivers/net/wireless/b43/phy_common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_common.h b/drivers/net/wireless/b43/phy_common.h
index 4a1795f5fc21..c9f5430d1d7d 100644
--- a/drivers/net/wireless/b43/phy_common.h
+++ b/drivers/net/wireless/b43/phy_common.h
@@ -108,6 +108,8 @@ enum b43_txpwr_result {
108 * RFKILL_STATE_SOFT_BLOCKED or 108 * RFKILL_STATE_SOFT_BLOCKED or
109 * RFKILL_STATE_UNBLOCKED 109 * RFKILL_STATE_UNBLOCKED
110 * Must not be NULL. 110 * Must not be NULL.
111 * @switch_analog: Turn the Analog on/off.
112 * Must not be NULL.
111 * @switch_channel: Switch the radio to another channel. 113 * @switch_channel: Switch the radio to another channel.
112 * Must not be NULL. 114 * Must not be NULL.
113 * @get_default_chan: Just returns the default channel number. 115 * @get_default_chan: Just returns the default channel number.
@@ -158,6 +160,7 @@ struct b43_phy_operations {
158 /* Radio */ 160 /* Radio */
159 bool (*supports_hwpctl)(struct b43_wldev *dev); 161 bool (*supports_hwpctl)(struct b43_wldev *dev);
160 void (*software_rfkill)(struct b43_wldev *dev, enum rfkill_state state); 162 void (*software_rfkill)(struct b43_wldev *dev, enum rfkill_state state);
163 void (*switch_analog)(struct b43_wldev *dev, bool on);
161 int (*switch_channel)(struct b43_wldev *dev, unsigned int new_channel); 164 int (*switch_channel)(struct b43_wldev *dev, unsigned int new_channel);
162 unsigned int (*get_default_chan)(struct b43_wldev *dev); 165 unsigned int (*get_default_chan)(struct b43_wldev *dev);
163 void (*set_rx_antenna)(struct b43_wldev *dev, int antenna); 166 void (*set_rx_antenna)(struct b43_wldev *dev, int antenna);
@@ -397,5 +400,14 @@ void b43_phy_txpower_adjust_work(struct work_struct *work);
397 */ 400 */
398int b43_phy_shm_tssi_read(struct b43_wldev *dev, u16 shm_offset); 401int b43_phy_shm_tssi_read(struct b43_wldev *dev, u16 shm_offset);
399 402
403/**
404 * b43_phy_switch_analog_generic - Generic PHY operation for switching the Analog.
405 *
406 * It does the switching based on the PHY0 core register.
407 * Do _not_ call this directly. Only use it as a switch_analog callback
408 * for struct b43_phy_operations.
409 */
410void b43_phyop_switch_analog_generic(struct b43_wldev *dev, bool on);
411
400 412
401#endif /* LINUX_B43_PHY_COMMON_H_ */ 413#endif /* LINUX_B43_PHY_COMMON_H_ */