diff options
author | Peter Denison <openwrt@marshadder.org> | 2007-06-25 19:52:55 +0000 |
---|---|---|
committer | Peter Denison <openwrt@marshadder.org> | 2007-06-25 19:52:55 +0000 |
commit | a83ac994c3a6948ab83d8de78fc9d1ae55451fce (patch) | |
tree | f9d25353c69bb492a847e4a004ed5f88fc4ba03a /package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_phy.h | |
parent | 164e789c7ae5f9369d3a89cf2e76c0bde758dba5 (diff) | |
download | master-31e0f0ae-a83ac994c3a6948ab83d8de78fc9d1ae55451fce.tar.gz master-31e0f0ae-a83ac994c3a6948ab83d8de78fc9d1ae55451fce.tar.bz2 master-31e0f0ae-a83ac994c3a6948ab83d8de78fc9d1ae55451fce.zip |
Merge bcm43xx-mac80211 driver from tree at bu3sch.de, pulled 24/6
SVN-Revision: 7734
Diffstat (limited to 'package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_phy.h')
-rw-r--r-- | package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_phy.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_phy.h b/package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_phy.h index 0252f6535c..75cea5a4f6 100644 --- a/package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_phy.h +++ b/package/bcm43xx-mac80211/src/bcm43xx/bcm43xx_phy.h @@ -257,6 +257,11 @@ struct bcm43xx_bbatt_list { u8 max_val; }; +/* tx_control bits. */ +#define BCM43xx_TXCTL_PA3DB 0x40 /* PA Gain 3dB */ +#define BCM43xx_TXCTL_PA2DB 0x20 /* PA Gain 2dB */ +#define BCM43xx_TXCTL_TXMIX 0x10 /* TX Mixer Gain */ + /* Write BasebandAttenuation value to the device. */ void bcm43xx_phy_set_baseband_attenuation(struct bcm43xx_wldev *dev, u16 baseband_attenuation); @@ -279,17 +284,6 @@ void bcm43xx_radio_turn_off(struct bcm43xx_wldev *dev); int bcm43xx_radio_selectchannel(struct bcm43xx_wldev *dev, u8 channel, int synthetic_pu_workaround); -void bcm43xx_radio_set_txpower_a(struct bcm43xx_wldev *dev, u16 txpower); -/* Set the txpower on device. If the values are < 0, use the saved ones. */ -void bcm43xx_radio_set_txpower_bg(struct bcm43xx_wldev *dev, - s16 baseband_attenuation, - s16 radio_attenuation, - s16 txctl1); - -u16 bcm43xx_default_baseband_attenuation(struct bcm43xx_wldev *dev); -u16 bcm43xx_default_radio_attenuation(struct bcm43xx_wldev *dev); -u16 bcm43xx_default_txctl1(struct bcm43xx_wldev *dev); - u8 bcm43xx_radio_aci_detect(struct bcm43xx_wldev *dev, u8 channel); u8 bcm43xx_radio_aci_scan(struct bcm43xx_wldev *dev); @@ -305,5 +299,12 @@ void bcm43xx_nrssi_mem_update(struct bcm43xx_wldev *dev); void bcm43xx_radio_set_tx_iq(struct bcm43xx_wldev *dev); u16 bcm43xx_radio_calibrationvalue(struct bcm43xx_wldev *dev); +void bcm43xx_put_attenuation_into_ranges(struct bcm43xx_wldev *dev, + int *_bbatt, int *_rfatt); + +void bcm43xx_set_txpower_g(struct bcm43xx_wldev *dev, + const struct bcm43xx_bbatt *bbatt, + const struct bcm43xx_rfatt *rfatt, + u8 tx_control); #endif /* BCM43xx_PHY_H_ */ |