Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
main.c File Reference
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/if_arp.h>
#include <linux/etherdevice.h>
#include <linux/firmware.h>
#include <linux/workqueue.h>
#include <linux/skbuff.h>
#include <linux/io.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <asm/unaligned.h>
#include "b43.h"
#include "main.h"
#include "debugfs.h"
#include "phy_common.h"
#include "phy_g.h"
#include "phy_n.h"
#include "dma.h"
#include "pio.h"
#include "sysfs.h"
#include "xmit.h"
#include "lo.h"
#include "pcmcia.h"
#include "sdio.h"
#include <linux/mmc/sdio_func.h>

Go to the source code of this file.

Macros

#define RATETAB_ENT(_rateid, _flags)
 
#define b43_a_ratetable   (__b43_ratetable + 4)
 
#define b43_a_ratetable_size   8
 
#define b43_b_ratetable   (__b43_ratetable + 0)
 
#define b43_b_ratetable_size   4
 
#define b43_g_ratetable   (__b43_ratetable + 0)
 
#define b43_g_ratetable_size   12
 
#define CHAN4G(_channel, _freq, _flags)
 
#define CHAN5G(_channel, _flags)
 
#define IS_PDEV(pdev, _vendor, _device, _subvendor, _subdevice)
 

Functions

 MODULE_DESCRIPTION ("Broadcom B43 wireless driver")
 
 MODULE_AUTHOR ("Martin Langer")
 
 MODULE_AUTHOR ("Stefano Brivio")
 
 MODULE_AUTHOR ("Michael Buesch")
 
 MODULE_AUTHOR ("Gábor Stefanik")
 
 MODULE_AUTHOR ("Rafał Miłecki")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("b43/ucode11.fw")
 
 MODULE_FIRMWARE ("b43/ucode13.fw")
 
 MODULE_FIRMWARE ("b43/ucode14.fw")
 
 MODULE_FIRMWARE ("b43/ucode15.fw")
 
 MODULE_FIRMWARE ("b43/ucode16_mimo.fw")
 
 MODULE_FIRMWARE ("b43/ucode5.fw")
 
 MODULE_FIRMWARE ("b43/ucode9.fw")
 
 module_param_named (bad_frames_preempt, modparam_bad_frames_preempt, int, 0444)
 
 MODULE_PARM_DESC (bad_frames_preempt,"enable(1) / disable(0) Bad Frames Preemption")
 
 module_param_string (fwpostfix, modparam_fwpostfix, 16, 0444)
 
 MODULE_PARM_DESC (fwpostfix,"Postfix for the .fw files to load.")
 
 module_param_named (hwpctl, modparam_hwpctl, int, 0444)
 
 MODULE_PARM_DESC (hwpctl,"Enable hardware-side power control (default off)")
 
 module_param_named (nohwcrypt, modparam_nohwcrypt, int, 0444)
 
 MODULE_PARM_DESC (nohwcrypt,"Disable hardware encryption.")
 
 module_param_named (hwtkip, modparam_hwtkip, int, 0444)
 
 MODULE_PARM_DESC (hwtkip,"Enable hardware tkip.")
 
 module_param_named (qos, modparam_qos, int, 0444)
 
 MODULE_PARM_DESC (qos,"Enable QOS support (default on)")
 
 module_param_named (btcoex, modparam_btcoex, int, 0444)
 
 MODULE_PARM_DESC (btcoex,"Enable Bluetooth coexistence (default on)")
 
 module_param_named (verbose, b43_modparam_verbose, int, 0644)
 
 MODULE_PARM_DESC (verbose,"Log message verbosity: 0=error, 1=warn, 2=info(default), 3=debug")
 
 module_param_named (pio, b43_modparam_pio, int, 0644)
 
 MODULE_PARM_DESC (pio,"Use PIO accesses by default: 0=DMA, 1=PIO")
 
void b43info (struct b43_wl *wl, const char *fmt,...)
 
void b43err (struct b43_wl *wl, const char *fmt,...)
 
void b43warn (struct b43_wl *wl, const char *fmt,...)
 
void b43dbg (struct b43_wl *wl, const char *fmt,...)
 
u32 b43_shm_read32 (struct b43_wldev *dev, u16 routing, u16 offset)
 
u16 b43_shm_read16 (struct b43_wldev *dev, u16 routing, u16 offset)
 
void b43_shm_write32 (struct b43_wldev *dev, u16 routing, u16 offset, u32 value)
 
void b43_shm_write16 (struct b43_wldev *dev, u16 routing, u16 offset, u16 value)
 
u64 b43_hf_read (struct b43_wldev *dev)
 
void b43_hf_write (struct b43_wldev *dev, u64 value)
 
void b43_tsf_read (struct b43_wldev *dev, u64 *tsf)
 
void b43_tsf_write (struct b43_wldev *dev, u64 tsf)
 
void b43_dummy_transmission (struct b43_wldev *dev, bool ofdm, bool pa_on)
 
void b43_power_saving_ctl_bits (struct b43_wldev *dev, unsigned int ps_flags)
 
void b43_wireless_core_reset (struct b43_wldev *dev, bool gmode)
 
u8 b43_ieee80211_antenna_sanitize (struct b43_wldev *dev, u8 antenna_nr)
 
void b43_do_release_fw (struct b43_firmware_file *fw)
 
int b43_do_request_fw (struct b43_request_fw_context *ctx, const char *name, struct b43_firmware_file *fw)
 
void b43_mac_enable (struct b43_wldev *dev)
 
void b43_mac_suspend (struct b43_wldev *dev)
 
void b43_mac_phy_clock_set (struct b43_wldev *dev, bool on)
 
void b43_controller_restart (struct b43_wldev *dev, const char *reason)
 

Variables

int b43_modparam_verbose = B43_VERBOSITY_DEFAULT
 

Macro Definition Documentation

#define b43_a_ratetable   (__b43_ratetable + 4)

Definition at line 176 of file main.c.

#define b43_a_ratetable_size   8

Definition at line 177 of file main.c.

#define b43_b_ratetable   (__b43_ratetable + 0)

Definition at line 178 of file main.c.

#define b43_b_ratetable_size   4

Definition at line 179 of file main.c.

#define b43_g_ratetable   (__b43_ratetable + 0)

Definition at line 180 of file main.c.

#define b43_g_ratetable_size   12

Definition at line 181 of file main.c.

#define CHAN4G (   _channel,
  _freq,
  _flags 
)
Value:
{ \
.center_freq = (_freq), \
.hw_value = (_channel), \
.flags = (_flags), \
.max_antenna_gain = 0, \
.max_power = 30, \
}

Definition at line 183 of file main.c.

#define CHAN5G (   _channel,
  _flags 
)
Value:
{ \
.center_freq = 5000 + (5 * (_channel)), \
.hw_value = (_channel), \
.flags = (_flags), \
.max_antenna_gain = 0, \
.max_power = 30, \
}

Definition at line 209 of file main.c.

#define IS_PDEV (   pdev,
  _vendor,
  _device,
  _subvendor,
  _subdevice 
)
Value:
( \
(pdev->vendor == PCI_VENDOR_ID_##_vendor) && \
(pdev->device == _device) && \
(pdev->subsystem_vendor == PCI_VENDOR_ID_##_subvendor) && \
(pdev->subsystem_device == _subdevice) )

Definition at line 5268 of file main.c.

#define RATETAB_ENT (   _rateid,
  _flags 
)
Value:
{ \
.bitrate = B43_RATE_TO_BASE100KBPS(_rateid), \
.hw_value = (_rateid), \
.flags = (_flags), \
}

Definition at line 150 of file main.c.

Function Documentation

void b43_controller_restart ( struct b43_wldev dev,
const char reason 
)

Definition at line 5510 of file main.c.

void b43_do_release_fw ( struct b43_firmware_file fw)

Definition at line 2062 of file main.c.

int b43_do_request_fw ( struct b43_request_fw_context ctx,
const char name,
struct b43_firmware_file fw 
)

Definition at line 2091 of file main.c.

void b43_dummy_transmission ( struct b43_wldev dev,
bool  ofdm,
bool  pa_on 
)

Definition at line 702 of file main.c.

u64 b43_hf_read ( struct b43_wldev dev)

Definition at line 532 of file main.c.

void b43_hf_write ( struct b43_wldev dev,
u64  value 
)

Definition at line 546 of file main.c.

u8 b43_ieee80211_antenna_sanitize ( struct b43_wldev dev,
u8  antenna_nr 
)

Definition at line 1485 of file main.c.

void b43_mac_enable ( struct b43_wldev dev)

Definition at line 2792 of file main.c.

void b43_mac_phy_clock_set ( struct b43_wldev dev,
bool  on 
)

Definition at line 2854 of file main.c.

void b43_mac_suspend ( struct b43_wldev dev)

Definition at line 2821 of file main.c.

void b43_power_saving_ctl_bits ( struct b43_wldev dev,
unsigned int  ps_flags 
)

Definition at line 1106 of file main.c.

u16 b43_shm_read16 ( struct b43_wldev dev,
u16  routing,
u16  offset 
)

Definition at line 474 of file main.c.

u32 b43_shm_read32 ( struct b43_wldev dev,
u16  routing,
u16  offset 
)

Definition at line 451 of file main.c.

void b43_shm_write16 ( struct b43_wldev dev,
u16  routing,
u16  offset,
u16  value 
)

Definition at line 515 of file main.c.

void b43_shm_write32 ( struct b43_wldev dev,
u16  routing,
u16  offset,
u32  value 
)

Definition at line 495 of file main.c.

void b43_tsf_read ( struct b43_wldev dev,
u64 tsf 
)

Definition at line 565 of file main.c.

void b43_tsf_write ( struct b43_wldev dev,
u64  tsf 
)

Definition at line 611 of file main.c.

void b43_wireless_core_reset ( struct b43_wldev dev,
bool  gmode 
)

Definition at line 1227 of file main.c.

void b43dbg ( struct b43_wl wl,
const char fmt,
  ... 
)

Definition at line 405 of file main.c.

void b43err ( struct b43_wl wl,
const char fmt,
  ... 
)

Definition at line 363 of file main.c.

void b43info ( struct b43_wl wl,
const char fmt,
  ... 
)

Definition at line 342 of file main.c.

void b43warn ( struct b43_wl wl,
const char fmt,
  ... 
)

Definition at line 384 of file main.c.

MODULE_AUTHOR ( "Martin Langer"  )
MODULE_AUTHOR ( "Stefano Brivio"  )
MODULE_AUTHOR ( "Michael Buesch"  )
MODULE_AUTHOR ( "Gábor Stefanik"  )
MODULE_AUTHOR ( "Rafał Miłecki"  )
MODULE_DESCRIPTION ( "Broadcom B43 wireless driver )
MODULE_FIRMWARE ( "b43/ucode11.fw )
MODULE_FIRMWARE ( "b43/ucode13.fw )
MODULE_FIRMWARE ( "b43/ucode14.fw )
MODULE_FIRMWARE ( "b43/ucode15.fw )
MODULE_FIRMWARE ( "b43/ucode16_mimo.fw )
MODULE_FIRMWARE ( "b43/ucode5.fw )
MODULE_FIRMWARE ( "b43/ucode9.fw )
MODULE_LICENSE ( "GPL"  )
module_param_named ( bad_frames_preempt  ,
modparam_bad_frames_preempt  ,
int  ,
0444   
)
module_param_named ( hwpctl  ,
modparam_hwpctl  ,
int  ,
0444   
)
module_param_named ( nohwcrypt  ,
modparam_nohwcrypt  ,
int  ,
0444   
)
module_param_named ( hwtkip  ,
modparam_hwtkip  ,
int  ,
0444   
)
module_param_named ( qos  ,
modparam_qos  ,
int  ,
0444   
)
module_param_named ( btcoex  ,
modparam_btcoex  ,
int  ,
0444   
)
module_param_named ( verbose  ,
b43_modparam_verbose  ,
int  ,
0644   
)
module_param_named ( pio  ,
b43_modparam_pio  ,
int  ,
0644   
)
module_param_string ( fwpostfix  ,
modparam_fwpostfix  ,
16  ,
0444   
)
MODULE_PARM_DESC ( bad_frames_preempt  ,
"enable(1) / disable(0) Bad Frames Preemption"   
)
MODULE_PARM_DESC ( fwpostfix  ,
"Postfix for the .fw files to load."   
)
MODULE_PARM_DESC ( hwpctl  ,
"Enable hardware-side power control (default off)"   
)
MODULE_PARM_DESC ( nohwcrypt  ,
"Disable hardware encryption."   
)
MODULE_PARM_DESC ( hwtkip  ,
"Enable hardware tkip."   
)
MODULE_PARM_DESC ( qos  ,
"Enable QOS support (default on)"   
)
MODULE_PARM_DESC ( btcoex  ,
"Enable Bluetooth coexistence (default on)"   
)
MODULE_PARM_DESC ( verbose  ,
"Log message verbosity:  0 = error,
= warn,
= info(default) 
)
MODULE_PARM_DESC ( pio  ,
"Use PIO accesses by default:  0 = DMA 
)

Variable Documentation

int b43_modparam_verbose = B43_VERBOSITY_DEFAULT

Definition at line 108 of file main.c.