Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
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/sched.h>
#include <linux/skbuff.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <net/dst.h>
#include <asm/unaligned.h>
#include "b43legacy.h"
#include "main.h"
#include "debugfs.h"
#include "phy.h"
#include "dma.h"
#include "pio.h"
#include "sysfs.h"
#include "xmit.h"
#include "radio.h"

Go to the source code of this file.

Macros

#define RATETAB_ENT(_rateid, _flags)
 
#define b43legacy_b_ratetable   (__b43legacy_ratetable + 0)
 
#define b43legacy_b_ratetable_size   4
 
#define b43legacy_g_ratetable   (__b43legacy_ratetable + 0)
 
#define b43legacy_g_ratetable_size   12
 
#define CHANTAB_ENT(_chanid, _freq)
 
#define b43legacy_suspend   NULL
 
#define b43legacy_resume   NULL
 

Functions

 MODULE_DESCRIPTION ("Broadcom B43legacy wireless driver")
 
 MODULE_AUTHOR ("Martin Langer")
 
 MODULE_AUTHOR ("Stefano Brivio")
 
 MODULE_AUTHOR ("Michael Buesch")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("b43legacy/ucode2.fw")
 
 MODULE_FIRMWARE ("b43legacy/ucode4.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 firmware files to load.")
 
 MODULE_DEVICE_TABLE (ssb, b43legacy_ssb_tbl)
 
void b43legacyinfo (struct b43legacy_wl *wl, const char *fmt,...)
 
void b43legacyerr (struct b43legacy_wl *wl, const char *fmt,...)
 
void b43legacywarn (struct b43legacy_wl *wl, const char *fmt,...)
 
u32 b43legacy_shm_read32 (struct b43legacy_wldev *dev, u16 routing, u16 offset)
 
u16 b43legacy_shm_read16 (struct b43legacy_wldev *dev, u16 routing, u16 offset)
 
void b43legacy_shm_write32 (struct b43legacy_wldev *dev, u16 routing, u16 offset, u32 value)
 
void b43legacy_shm_write16 (struct b43legacy_wldev *dev, u16 routing, u16 offset, u16 value)
 
u32 b43legacy_hf_read (struct b43legacy_wldev *dev)
 
void b43legacy_hf_write (struct b43legacy_wldev *dev, u32 value)
 
void b43legacy_tsf_read (struct b43legacy_wldev *dev, u64 *tsf)
 
void b43legacy_tsf_write (struct b43legacy_wldev *dev, u64 tsf)
 
void b43legacy_dummy_transmission (struct b43legacy_wldev *dev)
 
void b43legacy_wireless_core_reset (struct b43legacy_wldev *dev, u32 flags)
 
void b43legacy_mac_enable (struct b43legacy_wldev *dev)
 
void b43legacy_mac_suspend (struct b43legacy_wldev *dev)
 
void b43legacy_controller_restart (struct b43legacy_wldev *dev, const char *reason)
 

Macro Definition Documentation

#define b43legacy_b_ratetable   (__b43legacy_ratetable + 0)

Definition at line 122 of file main.c.

#define b43legacy_b_ratetable_size   4

Definition at line 123 of file main.c.

#define b43legacy_g_ratetable   (__b43legacy_ratetable + 0)

Definition at line 124 of file main.c.

#define b43legacy_g_ratetable_size   12

Definition at line 125 of file main.c.

#define b43legacy_resume   NULL

Definition at line 3978 of file main.c.

#define b43legacy_suspend   NULL

Definition at line 3977 of file main.c.

#define CHANTAB_ENT (   _chanid,
  _freq 
)
Value:
{ \
.center_freq = (_freq), \
.hw_value = (_chanid), \
}

Definition at line 127 of file main.c.

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

Definition at line 98 of file main.c.

Function Documentation

void b43legacy_controller_restart ( struct b43legacy_wldev dev,
const char reason 
)

Definition at line 3913 of file main.c.

void b43legacy_dummy_transmission ( struct b43legacy_wldev dev)

Definition at line 624 of file main.c.

u32 b43legacy_hf_read ( struct b43legacy_wldev dev)

Definition at line 385 of file main.c.

void b43legacy_hf_write ( struct b43legacy_wldev dev,
u32  value 
)

Definition at line 399 of file main.c.

void b43legacy_mac_enable ( struct b43legacy_wldev dev)

Definition at line 1944 of file main.c.

void b43legacy_mac_suspend ( struct b43legacy_wldev dev)

Definition at line 1970 of file main.c.

u16 b43legacy_shm_read16 ( struct b43legacy_wldev dev,
u16  routing,
u16  offset 
)

Definition at line 312 of file main.c.

u32 b43legacy_shm_read32 ( struct b43legacy_wldev dev,
u16  routing,
u16  offset 
)

Definition at line 285 of file main.c.

void b43legacy_shm_write16 ( struct b43legacy_wldev dev,
u16  routing,
u16  offset,
u16  value 
)

Definition at line 363 of file main.c.

void b43legacy_shm_write32 ( struct b43legacy_wldev dev,
u16  routing,
u16  offset,
u32  value 
)

Definition at line 335 of file main.c.

void b43legacy_tsf_read ( struct b43legacy_wldev dev,
u64 tsf 
)

Definition at line 409 of file main.c.

void b43legacy_tsf_write ( struct b43legacy_wldev dev,
u64  tsf 
)

Definition at line 521 of file main.c.

void b43legacy_wireless_core_reset ( struct b43legacy_wldev dev,
u32  flags 
)

Definition at line 696 of file main.c.

void b43legacyerr ( struct b43legacy_wl wl,
const char fmt,
  ... 
)

Definition at line 199 of file main.c.

void b43legacyinfo ( struct b43legacy_wl wl,
const char fmt,
  ... 
)

Definition at line 180 of file main.c.

void b43legacywarn ( struct b43legacy_wl wl,
const char fmt,
  ... 
)

Definition at line 218 of file main.c.

MODULE_AUTHOR ( "Martin Langer"  )
MODULE_AUTHOR ( "Stefano Brivio"  )
MODULE_AUTHOR ( "Michael Buesch"  )
MODULE_DESCRIPTION ( "Broadcom B43legacy wireless driver )
MODULE_DEVICE_TABLE ( ssb  ,
b43legacy_ssb_tbl   
)
MODULE_FIRMWARE ( "b43legacy/ucode2.fw )
MODULE_FIRMWARE ( "b43legacy/ucode4.fw )
MODULE_LICENSE ( "GPL"  )
module_param_named ( bad_frames_preempt  ,
modparam_bad_frames_preempt  ,
int  ,
0444   
)
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 firmware files to load."   
)