aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/b43.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
-rw-r--r--drivers/net/wireless/b43/b43.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h
index c484cc253892..b8807fb12c92 100644
--- a/drivers/net/wireless/b43/b43.h
+++ b/drivers/net/wireless/b43/b43.h
@@ -254,6 +254,14 @@ enum {
254#define B43_SHM_SH_MAXBFRAMES 0x0080 /* Maximum number of frames in a burst */ 254#define B43_SHM_SH_MAXBFRAMES 0x0080 /* Maximum number of frames in a burst */
255#define B43_SHM_SH_SPUWKUP 0x0094 /* pre-wakeup for synth PU in us */ 255#define B43_SHM_SH_SPUWKUP 0x0094 /* pre-wakeup for synth PU in us */
256#define B43_SHM_SH_PRETBTT 0x0096 /* pre-TBTT in us */ 256#define B43_SHM_SH_PRETBTT 0x0096 /* pre-TBTT in us */
257/* SHM_SHARED tx iq workarounds */
258#define B43_SHM_SH_NPHY_TXIQW0 0x0700
259#define B43_SHM_SH_NPHY_TXIQW1 0x0702
260#define B43_SHM_SH_NPHY_TXIQW2 0x0704
261#define B43_SHM_SH_NPHY_TXIQW3 0x0706
262/* SHM_SHARED tx pwr ctrl */
263#define B43_SHM_SH_NPHY_TXPWR_INDX0 0x0708
264#define B43_SHM_SH_NPHY_TXPWR_INDX1 0x070E
257 265
258/* SHM_SCRATCH offsets */ 266/* SHM_SCRATCH offsets */
259#define B43_SHM_SC_MINCONT 0x0003 /* Minimum contention window */ 267#define B43_SHM_SC_MINCONT 0x0003 /* Minimum contention window */
@@ -694,6 +702,7 @@ struct b43_wldev {
694 bool radio_hw_enable; /* saved state of radio hardware enabled state */ 702 bool radio_hw_enable; /* saved state of radio hardware enabled state */
695 bool qos_enabled; /* TRUE, if QoS is used. */ 703 bool qos_enabled; /* TRUE, if QoS is used. */
696 bool hwcrypto_enabled; /* TRUE, if HW crypto acceleration is enabled. */ 704 bool hwcrypto_enabled; /* TRUE, if HW crypto acceleration is enabled. */
705 bool use_pio; /* TRUE if next init should use PIO */
697 706
698 /* PHY/Radio device. */ 707 /* PHY/Radio device. */
699 struct b43_phy phy; 708 struct b43_phy phy;
@@ -822,11 +831,9 @@ struct b43_wl {
822 /* The device LEDs. */ 831 /* The device LEDs. */
823 struct b43_leds leds; 832 struct b43_leds leds;
824 833
825#ifdef CONFIG_B43_PIO
826 /* Kmalloc'ed scratch space for PIO TX/RX. Protected by wl->mutex. */ 834 /* Kmalloc'ed scratch space for PIO TX/RX. Protected by wl->mutex. */
827 u8 pio_scratchspace[110] __attribute__((__aligned__(8))); 835 u8 pio_scratchspace[110] __attribute__((__aligned__(8)));
828 u8 pio_tailspace[4] __attribute__((__aligned__(8))); 836 u8 pio_tailspace[4] __attribute__((__aligned__(8)));
829#endif /* CONFIG_B43_PIO */
830}; 837};
831 838
832static inline struct b43_wl *hw_to_b43_wl(struct ieee80211_hw *hw) 839static inline struct b43_wl *hw_to_b43_wl(struct ieee80211_hw *hw)
@@ -877,20 +884,15 @@ static inline void b43_write32(struct b43_wldev *dev, u16 offset, u32 value)
877 884
878static inline bool b43_using_pio_transfers(struct b43_wldev *dev) 885static inline bool b43_using_pio_transfers(struct b43_wldev *dev)
879{ 886{
880#ifdef CONFIG_B43_PIO
881 return dev->__using_pio_transfers; 887 return dev->__using_pio_transfers;
882#else
883 return 0;
884#endif
885} 888}
886 889
887#ifdef CONFIG_B43_FORCE_PIO 890#ifdef CONFIG_B43_FORCE_PIO
888# define B43_FORCE_PIO 1 891# define B43_PIO_DEFAULT 1
889#else 892#else
890# define B43_FORCE_PIO 0 893# define B43_PIO_DEFAULT 0
891#endif 894#endif
892 895
893
894/* Message printing */ 896/* Message printing */
895void b43info(struct b43_wl *wl, const char *fmt, ...) 897void b43info(struct b43_wl *wl, const char *fmt, ...)
896 __attribute__ ((format(printf, 2, 3))); 898 __attribute__ ((format(printf, 2, 3)));