Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mac80211_if.c File Reference
#include <linux/etherdevice.h>
#include <linux/sched.h>
#include <linux/firmware.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/bcma/bcma.h>
#include <net/mac80211.h>
#include <defs.h>
#include "phy/phy_int.h"
#include "d11.h"
#include "channel.h"
#include "scb.h"
#include "pub.h"
#include "ucode_loader.h"
#include "mac80211_if.h"
#include "main.h"

Go to the source code of this file.

Data Structures

struct  firmware_hdr
 

Macros

#define __UNDEF_NO_VERSION__
 
#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define N_TX_QUEUES   4 /* #tx queues on mac80211<->driver interface */
 
#define MAC_FILTERS
 
#define CHAN2GHZ(channel, freqency, chflags)
 
#define CHAN5GHZ(channel, chflags)
 
#define RATE(rate100m, _flags)
 

Functions

 MODULE_AUTHOR ("Broadcom Corporation")
 
 MODULE_DESCRIPTION ("Broadcom 802.11n wireless LAN driver.")
 
 MODULE_SUPPORTED_DEVICE ("Broadcom 802.11n WLAN cards")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_FIRMWARE ("brcm/bcm43xx-0.fw")
 
 MODULE_FIRMWARE ("brcm/bcm43xx_hdr-0.fw")
 
 MODULE_DEVICE_TABLE (bcma, brcms_coreid_table)
 
void brcms_dpc (unsigned long data)
 
 module_init (brcms_module_init)
 
 module_exit (brcms_module_exit)
 
void brcms_txflowcontrol (struct brcms_info *wl, struct brcms_if *wlif, bool state, int prio)
 
void brcms_init (struct brcms_info *wl)
 
uint brcms_reset (struct brcms_info *wl)
 
void brcms_fatal_error (struct brcms_info *wl)
 
void brcms_intrson (struct brcms_info *wl)
 
u32 brcms_intrsoff (struct brcms_info *wl)
 
void brcms_intrsrestore (struct brcms_info *wl, u32 macintmask)
 
int brcms_up (struct brcms_info *wl)
 
void brcms_down (struct brcms_info *wl)
 
struct brcms_timerbrcms_init_timer (struct brcms_info *wl, void(*fn)(void *arg), void *arg, const char *name)
 
void brcms_add_timer (struct brcms_timer *t, uint ms, int periodic)
 
bool brcms_del_timer (struct brcms_timer *t)
 
void brcms_free_timer (struct brcms_timer *t)
 
int brcms_ucode_init_buf (struct brcms_info *wl, void **pbuf, u32 idx)
 
int brcms_ucode_init_uint (struct brcms_info *wl, size_t *n_bytes, u32 idx)
 
void brcms_ucode_free_buf (void *p)
 
int brcms_check_firmwares (struct brcms_info *wl)
 
bool brcms_rfkill_set_hw_state (struct brcms_info *wl)
 
void brcms_msleep (struct brcms_info *wl, uint ms)
 

Macro Definition Documentation

#define __UNDEF_NO_VERSION__

Definition at line 17 of file mac80211_if.c.

#define CHAN2GHZ (   channel,
  freqency,
  chflags 
)
Value:
{ \
.center_freq = (freqency), \
.hw_value = (channel), \
.flags = chflags, \
.max_antenna_gain = 0, \
.max_power = 19, \
}

Definition at line 48 of file mac80211_if.c.

#define CHAN5GHZ (   channel,
  chflags 
)
Value:
{ \
.center_freq = 5000 + 5*(channel), \
.hw_value = (channel), \
.flags = chflags, \
.max_antenna_gain = 0, \
.max_power = 21, \
}

Definition at line 57 of file mac80211_if.c.

#define MAC_FILTERS
Value:
FIF_ALLMULTI | \
FIF_FCSFAIL | \
FIF_CONTROL | \
FIF_OTHER_BSS | \
FIF_BCN_PRBRESP_PROMISC | \
FIF_PSPOLL)

Definition at line 40 of file mac80211_if.c.

#define N_TX_QUEUES   4 /* #tx queues on mac80211<->driver interface */

Definition at line 37 of file mac80211_if.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file mac80211_if.c.

#define RATE (   rate100m,
  _flags 
)
Value:
{ \
.bitrate = (rate100m), \
.flags = (_flags), \
.hw_value = (rate100m / 5), \
}

Definition at line 66 of file mac80211_if.c.

Function Documentation

void brcms_add_timer ( struct brcms_timer t,
uint  ms,
int  periodic 
)

Definition at line 1393 of file mac80211_if.c.

int brcms_check_firmwares ( struct brcms_info wl)

Definition at line 1540 of file mac80211_if.c.

bool brcms_del_timer ( struct brcms_timer t)

Definition at line 1416 of file mac80211_if.c.

void brcms_down ( struct brcms_info wl)

Definition at line 1308 of file mac80211_if.c.

void brcms_dpc ( unsigned long  data)

Definition at line 733 of file mac80211_if.c.

void brcms_fatal_error ( struct brcms_info wl)

Definition at line 1249 of file mac80211_if.c.

void brcms_free_timer ( struct brcms_timer t)

Definition at line 1432 of file mac80211_if.c.

void brcms_init ( struct brcms_info wl)

Definition at line 1225 of file mac80211_if.c.

struct brcms_timer* brcms_init_timer ( struct brcms_info wl,
void(*)(void *arg fn,
void arg,
const char name 
)
read

Definition at line 1361 of file mac80211_if.c.

u32 brcms_intrsoff ( struct brcms_info wl)

Definition at line 1270 of file mac80211_if.c.

void brcms_intrson ( struct brcms_info wl)

Definition at line 1261 of file mac80211_if.c.

void brcms_intrsrestore ( struct brcms_info wl,
u32  macintmask 
)

Definition at line 1281 of file mac80211_if.c.

void brcms_msleep ( struct brcms_info wl,
uint  ms 
)

Definition at line 1608 of file mac80211_if.c.

uint brcms_reset ( struct brcms_info wl)

Definition at line 1235 of file mac80211_if.c.

bool brcms_rfkill_set_hw_state ( struct brcms_info wl)

Definition at line 1593 of file mac80211_if.c.

void brcms_txflowcontrol ( struct brcms_info wl,
struct brcms_if wlif,
bool  state,
int  prio 
)

Definition at line 1216 of file mac80211_if.c.

void brcms_ucode_free_buf ( void p)

Definition at line 1529 of file mac80211_if.c.

int brcms_ucode_init_buf ( struct brcms_info wl,
void **  pbuf,
u32  idx 
)

Definition at line 1468 of file mac80211_if.c.

int brcms_ucode_init_uint ( struct brcms_info wl,
size_t n_bytes,
u32  idx 
)

Definition at line 1500 of file mac80211_if.c.

int brcms_up ( struct brcms_info wl)

Definition at line 1293 of file mac80211_if.c.

MODULE_AUTHOR ( "Broadcom Corporation"  )
MODULE_DESCRIPTION ( "Broadcom 802.11n wireless LAN driver."  )
MODULE_DEVICE_TABLE ( bcma  ,
brcms_coreid_table   
)
module_exit ( brcms_module_exit  )
MODULE_FIRMWARE ( "brcm/bcm43xx-0.fw )
MODULE_FIRMWARE ( "brcm/bcm43xx_hdr-0.fw )
module_init ( brcms_module_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
MODULE_SUPPORTED_DEVICE ( "Broadcom 802.11n WLAN cards"  )