diff options
Diffstat (limited to 'drivers/net/wireless/b43/phy_common.h')
| -rw-r--r-- | drivers/net/wireless/b43/phy_common.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/phy_common.h b/drivers/net/wireless/b43/phy_common.h index bd480b481bfc..2401bee8b081 100644 --- a/drivers/net/wireless/b43/phy_common.h +++ b/drivers/net/wireless/b43/phy_common.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #define LINUX_B43_PHY_COMMON_H_ | 2 | #define LINUX_B43_PHY_COMMON_H_ |
| 3 | 3 | ||
| 4 | #include <linux/types.h> | 4 | #include <linux/types.h> |
| 5 | #include <linux/nl80211.h> | ||
| 5 | 6 | ||
| 6 | struct b43_wldev; | 7 | struct b43_wldev; |
| 7 | 8 | ||
| @@ -38,6 +39,9 @@ struct b43_c32 { s32 i, q; }; | |||
| 38 | #define B43_PHYVER_TYPE_SHIFT 8 | 39 | #define B43_PHYVER_TYPE_SHIFT 8 |
| 39 | #define B43_PHYVER_VERSION 0x00FF | 40 | #define B43_PHYVER_VERSION 0x00FF |
| 40 | 41 | ||
| 42 | /* PHY writes need to be flushed if we reach limit */ | ||
| 43 | #define B43_MAX_WRITES_IN_ROW 24 | ||
| 44 | |||
| 41 | /** | 45 | /** |
| 42 | * enum b43_interference_mitigation - Interference Mitigation mode | 46 | * enum b43_interference_mitigation - Interference Mitigation mode |
| 43 | * | 47 | * |
| @@ -231,6 +235,9 @@ struct b43_phy { | |||
| 231 | /* PHY revision number. */ | 235 | /* PHY revision number. */ |
| 232 | u8 rev; | 236 | u8 rev; |
| 233 | 237 | ||
| 238 | /* Count writes since last read */ | ||
| 239 | u8 writes_counter; | ||
| 240 | |||
| 234 | /* Radio versioning */ | 241 | /* Radio versioning */ |
| 235 | u16 radio_manuf; /* Radio manufacturer */ | 242 | u16 radio_manuf; /* Radio manufacturer */ |
| 236 | u16 radio_ver; /* Radio version */ | 243 | u16 radio_ver; /* Radio version */ |
| @@ -250,8 +257,10 @@ struct b43_phy { | |||
| 250 | * check is needed. */ | 257 | * check is needed. */ |
| 251 | unsigned long next_txpwr_check_time; | 258 | unsigned long next_txpwr_check_time; |
| 252 | 259 | ||
| 253 | /* current channel */ | 260 | /* Current channel */ |
| 254 | unsigned int channel; | 261 | unsigned int channel; |
| 262 | u16 channel_freq; | ||
| 263 | enum nl80211_channel_type channel_type; | ||
| 255 | 264 | ||
| 256 | /* PHY TX errors counter. */ | 265 | /* PHY TX errors counter. */ |
| 257 | atomic_t txerr_cnt; | 266 | atomic_t txerr_cnt; |
| @@ -427,6 +436,8 @@ int b43_phy_shm_tssi_read(struct b43_wldev *dev, u16 shm_offset); | |||
| 427 | */ | 436 | */ |
| 428 | void b43_phyop_switch_analog_generic(struct b43_wldev *dev, bool on); | 437 | void b43_phyop_switch_analog_generic(struct b43_wldev *dev, bool on); |
| 429 | 438 | ||
| 439 | bool b43_channel_type_is_40mhz(enum nl80211_channel_type channel_type); | ||
| 440 | |||
| 430 | struct b43_c32 b43_cordic(int theta); | 441 | struct b43_c32 b43_cordic(int theta); |
| 431 | 442 | ||
| 432 | #endif /* LINUX_B43_PHY_COMMON_H_ */ | 443 | #endif /* LINUX_B43_PHY_COMMON_H_ */ |
