Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
init.c File Reference
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <linux/ath9k_platform.h>
#include <linux/module.h>
#include "ath9k.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define CHAN2G(_freq, _idx)
 
#define CHAN5G(_freq, _idx)
 
#define SHPCHECK(__hw_rate, __flags)   ((__flags & IEEE80211_RATE_SHORT_PREAMBLE) ? (__hw_rate | 0x04 ) : 0)
 
#define RATE(_bitrate, _hw_rate, _flags)
 

Functions

 MODULE_AUTHOR ("Atheros Communications")
 
 MODULE_DESCRIPTION ("Support for Atheros 802.11n wireless LAN cards.")
 
 MODULE_SUPPORTED_DEVICE ("Atheros 802.11n WLAN cards")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 module_param_named (debug, ath9k_debug, uint, 0)
 
 MODULE_PARM_DESC (debug,"Debugging mask")
 
 module_param_named (nohwcrypt, ath9k_modparam_nohwcrypt, int, 0444)
 
 MODULE_PARM_DESC (nohwcrypt,"Disable hardware encryption")
 
 module_param_named (blink, led_blink, int, 0444)
 
 MODULE_PARM_DESC (blink,"Enable LED blink on activity")
 
 module_param_named (btcoex_enable, ath9k_btcoex_enable, int, 0444)
 
 MODULE_PARM_DESC (btcoex_enable,"Enable wifi-BT coexistence")
 
 module_param_named (enable_diversity, ath9k_enable_diversity, int, 0444)
 
 MODULE_PARM_DESC (enable_diversity,"Enable Antenna diversity for AR9565")
 
int ath_descdma_setup (struct ath_softc *sc, struct ath_descdma *dd, struct list_head *head, const char *name, int nbuf, int ndesc, bool is_tx)
 
void ath9k_reload_chainmask_settings (struct ath_softc *sc)
 
void ath9k_set_hw_capab (struct ath_softc *sc, struct ieee80211_hw *hw)
 
int ath9k_init_device (u16 devid, struct ath_softc *sc, const struct ath_bus_ops *bus_ops)
 
void ath9k_deinit_device (struct ath_softc *sc)
 
void ath_descdma_cleanup (struct ath_softc *sc, struct ath_descdma *dd, struct list_head *head)
 
 module_init (ath9k_init)
 
 module_exit (ath9k_exit)
 

Variables

int ath9k_modparam_nohwcrypt
 
int led_blink
 
bool is_ath9k_unloaded
 

Macro Definition Documentation

#define CHAN2G (   _freq,
  _idx 
)
Value:
{ \
.center_freq = (_freq), \
.hw_value = (_idx), \
.max_power = 20, \
}

Definition at line 56 of file init.c.

#define CHAN5G (   _freq,
  _idx 
)
Value:
{ \
.center_freq = (_freq), \
.hw_value = (_idx), \
.max_power = 20, \
}

Definition at line 63 of file init.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 17 of file init.c.

#define RATE (   _bitrate,
  _hw_rate,
  _flags 
)
Value:
{ \
.bitrate = (_bitrate), \
.flags = (_flags), \
.hw_value = (_hw_rate), \
.hw_value_short = (SHPCHECK(_hw_rate, _flags)) \
}

Definition at line 130 of file init.c.

#define SHPCHECK (   __hw_rate,
  __flags 
)    ((__flags & IEEE80211_RATE_SHORT_PREAMBLE) ? (__hw_rate | 0x04 ) : 0)

Definition at line 127 of file init.c.

Function Documentation

void ath9k_deinit_device ( struct ath_softc sc)

Definition at line 892 of file init.c.

int ath9k_init_device ( u16  devid,
struct ath_softc sc,
const struct ath_bus_ops bus_ops 
)

Definition at line 782 of file init.c.

void ath9k_reload_chainmask_settings ( struct ath_softc sc)

Definition at line 662 of file init.c.

void ath9k_set_hw_capab ( struct ath_softc sc,
struct ieee80211_hw hw 
)

Definition at line 692 of file init.c.

void ath_descdma_cleanup ( struct ath_softc sc,
struct ath_descdma dd,
struct list_head head 
)

Definition at line 909 of file init.c.

int ath_descdma_setup ( struct ath_softc sc,
struct ath_descdma dd,
struct list_head head,
const char name,
int  nbuf,
int  ndesc,
bool  is_tx 
)

Definition at line 328 of file init.c.

MODULE_AUTHOR ( "Atheros Communications"  )
MODULE_DESCRIPTION ( "Support for Atheros 802.11n wireless LAN cards."  )
module_exit ( ath9k_exit  )
module_init ( ath9k_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
module_param_named ( debug  ,
ath9k_debug  ,
uint  ,
 
)
module_param_named ( nohwcrypt  ,
ath9k_modparam_nohwcrypt  ,
int  ,
0444   
)
module_param_named ( blink  ,
led_blink  ,
int  ,
0444   
)
module_param_named ( btcoex_enable  ,
ath9k_btcoex_enable  ,
int  ,
0444   
)
module_param_named ( enable_diversity  ,
ath9k_enable_diversity  ,
int  ,
0444   
)
MODULE_PARM_DESC ( debug  ,
"Debugging mask  
)
MODULE_PARM_DESC ( nohwcrypt  ,
"Disable hardware encryption  
)
MODULE_PARM_DESC ( blink  ,
"Enable LED blink on activity"   
)
MODULE_PARM_DESC ( btcoex_enable  ,
"Enable wifi-BT coexistence"   
)
MODULE_PARM_DESC ( enable_diversity  ,
"Enable Antenna diversity for AR9565"   
)
MODULE_SUPPORTED_DEVICE ( "Atheros 802.11n WLAN cards"  )

Variable Documentation

int ath9k_modparam_nohwcrypt

Definition at line 37 of file init.c.

bool is_ath9k_unloaded

Definition at line 53 of file init.c.

int led_blink

Definition at line 41 of file init.c.