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.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/net/wireless/b43/b43.h b/drivers/net/wireless/b43/b43.h
index c818b0bc88ec..8ff706289b5d 100644
--- a/drivers/net/wireless/b43/b43.h
+++ b/drivers/net/wireless/b43/b43.h
@@ -17,11 +17,6 @@
17#include "phy_common.h" 17#include "phy_common.h"
18 18
19 19
20/* The unique identifier of the firmware that's officially supported by
21 * this driver version. */
22#define B43_SUPPORTED_FIRMWARE_ID "FW13"
23
24
25#ifdef CONFIG_B43_DEBUG 20#ifdef CONFIG_B43_DEBUG
26# define B43_DEBUG 1 21# define B43_DEBUG 1
27#else 22#else
@@ -594,6 +589,7 @@ struct b43_dma {
594 struct b43_dmaring *rx_ring; 589 struct b43_dmaring *rx_ring;
595 590
596 u32 translation; /* Routing bits */ 591 u32 translation; /* Routing bits */
592 bool translation_in_low; /* Should translation bit go into low addr? */
597 bool parity; /* Check for parity */ 593 bool parity; /* Check for parity */
598}; 594};
599 595
@@ -694,6 +690,12 @@ struct b43_firmware_file {
694 enum b43_firmware_file_type type; 690 enum b43_firmware_file_type type;
695}; 691};
696 692
693enum b43_firmware_hdr_format {
694 B43_FW_HDR_598,
695 B43_FW_HDR_410,
696 B43_FW_HDR_351,
697};
698
697/* Pointers to the firmware data and meta information about it. */ 699/* Pointers to the firmware data and meta information about it. */
698struct b43_firmware { 700struct b43_firmware {
699 /* Microcode */ 701 /* Microcode */
@@ -710,6 +712,9 @@ struct b43_firmware {
710 /* Firmware patchlevel */ 712 /* Firmware patchlevel */
711 u16 patch; 713 u16 patch;
712 714
715 /* Format of header used by firmware */
716 enum b43_firmware_hdr_format hdr_format;
717
713 /* Set to true, if we are using an opensource firmware. 718 /* Set to true, if we are using an opensource firmware.
714 * Use this to check for proprietary vs opensource. */ 719 * Use this to check for proprietary vs opensource. */
715 bool opensource; 720 bool opensource;
@@ -875,7 +880,7 @@ struct b43_wl {
875 struct b43_leds leds; 880 struct b43_leds leds;
876 881
877 /* Kmalloc'ed scratch space for PIO TX/RX. Protected by wl->mutex. */ 882 /* Kmalloc'ed scratch space for PIO TX/RX. Protected by wl->mutex. */
878 u8 pio_scratchspace[110] __attribute__((__aligned__(8))); 883 u8 pio_scratchspace[118] __attribute__((__aligned__(8)));
879 u8 pio_tailspace[4] __attribute__((__aligned__(8))); 884 u8 pio_tailspace[4] __attribute__((__aligned__(8)));
880}; 885};
881 886
@@ -965,12 +970,6 @@ static inline bool b43_using_pio_transfers(struct b43_wldev *dev)
965 return dev->__using_pio_transfers; 970 return dev->__using_pio_transfers;
966} 971}
967 972
968#ifdef CONFIG_B43_FORCE_PIO
969# define B43_PIO_DEFAULT 1
970#else
971# define B43_PIO_DEFAULT 0
972#endif
973
974/* Message printing */ 973/* Message printing */
975void b43info(struct b43_wl *wl, const char *fmt, ...) 974void b43info(struct b43_wl *wl, const char *fmt, ...)
976 __attribute__ ((format(printf, 2, 3))); 975 __attribute__ ((format(printf, 2, 3)));