Defines | Functions | Variables
base.c File Reference
#include <drivers/osdep.h>
#include "ath5k.h"
#include "base.h"
#include "reg.h"
#include "debug.h"
#include "ath5k_interface.h"
#include "ath5k_linux_layer.h"
#include "mac80211.h"
Include dependency graph for MaRTE_OS/hwi/ath5k_raw/module/base.c:

Go to the source code of this file.

Defines

#define ATH5K_NR_RATES   12
#define ieee80211chan2mhz(x)

Functions

static int ath5k_attach (struct ath5k_softc *sc)
static void ath5k_calibrate (struct ath5k_softc *sc)
static const char * ath5k_chip_name (enum ath5k_srev_type type, unsigned int val)
int ath5k_config (struct ath5k_softc *sc, unsigned short freq, enum rates rate, unsigned char tx_power_dbm, enum ath5k_ant_mode antenna_mode)
void ath5k_config_debug_level (struct ath5k_softc *sc, unsigned int debug_mask)
int ath5k_config_disable_ack (struct ath5k_softc *sc, bool disable)
void ath5k_config_filter (struct ath5k_softc *sc, bool broadcast, bool control, bool promisc)
int ath5k_config_tx_control (struct ath5k_softc *sc, unsigned char count, bool wait_for_ack, bool use_short_preamble)
static unsigned int ath5k_copy_channels (struct ath5k_hw *ah, struct ieee80211_channel *channels, unsigned int mode, unsigned int max)
static int ath5k_desc_alloc (struct ath5k_softc *sc, struct pci_device *pdev)
struct ath5k_softcath5k_find (const struct ath5k_softc *prev_sc, unsigned short freq, enum rates rate, unsigned char tx_power_dbm, enum ath5k_ant_mode antenna_mode)
static struct ieee80211_channelath5k_get_channel (struct ath5k_softc *sc, unsigned int freq)
void ath5k_get_interface_mac (struct ath5k_softc *sc, unsigned char *mac)
static int ath5k_get_rate_idx (struct ath5k_softc *sc, enum ieee80211_band band, enum rates rate)
static int ath5k_hw_rix_to_bitrate (struct ath5k_softc *sc, int hw_rix)
static short ath5k_ieee2mhz (short chan)
static int ath5k_init (struct ath5k_softc *sc)
static int ath5k_intr (void *dev_id, intr_t irq)
static bool ath5k_is_standard_channel (short chan)
static void ath5k_mode_setup (struct ath5k_softc *sc)
int ath5k_recv (struct ath5k_softc *sc, frame_t *frame, const struct timespec *abs_timeout)
static int ath5k_reset (struct ath5k_softc *sc, struct ieee80211_channel *chan)
static void ath5k_rx_done (struct ath5k_softc *sc)
static struct sk_buffath5k_rx_skb_alloc (struct ath5k_softc *sc, struct sk_buff *skb)
static int ath5k_rx_start (struct ath5k_softc *sc)
static void ath5k_rx_stop (struct ath5k_softc *sc)
static int ath5k_rxbuf_setup (struct ath5k_softc *sc, struct ath5k_buf *bf)
int ath5k_send (struct ath5k_softc *sc, const unsigned char *buff, const int nbytes)
int ath5k_setTxPower (struct ath5k_softc *sc, int dbm)
static int ath5k_setup_bands (struct ath5k_softc *sc)
static void ath5k_skb_reset (struct sk_buff *skb)
static void ath5k_tx_done (struct ath5k_softc *sc, struct ath5k_txq *txq)
static int ath5k_txbuf_setup (struct ath5k_softc *sc, struct ath5k_buf *bf)
static void ath5k_txq_cleanup (struct ath5k_softc *sc)
static void ath5k_txq_drainq (struct ath5k_softc *sc, struct ath5k_txq *txq)
static struct ath5k_txqath5k_txq_setup (struct ath5k_softc *sc, int qtype, int subtype)
void ath5k_waitFrame ()

Variables

static int ath5k_calinterval = 10
static struct ath5k_device_ids ath5k_pci_id_table []
static struct ieee80211_rate ath5k_rates []
static int modparam_all_channels = true
static struct ath5k_srev_name srev_names []
static sem_t ws

Define Documentation

#define ATH5K_NR_RATES   12

Definition at line 216 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

#define ieee80211chan2mhz (   x)
Value:
(((x) <= 14) ? \
        (((x) == 14) ? 2484 : ((x) * 5) + 2407) : \
        ((x) + 1000) * 5)

Definition at line 640 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.


Function Documentation

static int ath5k_attach ( struct ath5k_softc sc) [static]

Definition at line 556 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static void ath5k_calibrate ( struct ath5k_softc sc) [static]

Definition at line 1531 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static const char* ath5k_chip_name ( enum ath5k_srev_type  type,
unsigned int  val 
) [static]

Definition at line 290 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_config ( struct ath5k_softc sc,
unsigned short  freq,
enum rates  rate,
unsigned char  tx_power_dbm,
enum ath5k_ant_mode  antenna_mode 
)

Definition at line 1781 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

void ath5k_config_debug_level ( struct ath5k_softc sc,
unsigned int  debug_mask 
) [inline]

Definition at line 1970 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_config_disable_ack ( struct ath5k_softc sc,
bool  disable 
)

Definition at line 1951 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

void ath5k_config_filter ( struct ath5k_softc sc,
bool  broadcast,
bool  control,
bool  promisc 
)

Definition at line 1839 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_config_tx_control ( struct ath5k_softc sc,
unsigned char  count,
bool  wait_for_ack,
bool  use_short_preamble 
)

Definition at line 1927 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static unsigned int ath5k_copy_channels ( struct ath5k_hw ah,
struct ieee80211_channel channels,
unsigned int  mode,
unsigned int  max 
) [static]

Definition at line 672 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_desc_alloc ( struct ath5k_softc sc,
struct pci_device *  pdev 
) [static]

Definition at line 981 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

struct ath5k_softc* ath5k_find ( const struct ath5k_softc prev_sc,
unsigned short  freq,
enum rates  rate,
unsigned char  tx_power_dbm,
enum ath5k_ant_mode  antenna_mode 
) [read]

Definition at line 312 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static struct ieee80211_channel * ath5k_get_channel ( struct ath5k_softc sc,
unsigned int  freq 
) [static, read]

Definition at line 1875 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

void ath5k_get_interface_mac ( struct ath5k_softc sc,
unsigned char *  mac 
) [inline]

Definition at line 1976 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_get_rate_idx ( struct ath5k_softc sc,
enum ieee80211_band  band,
enum rates  rate 
) [static]

Definition at line 1902 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_hw_rix_to_bitrate ( struct ath5k_softc sc,
int  hw_rix 
) [static]

Definition at line 1564 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static short ath5k_ieee2mhz ( short  chan) [inline, static]

Definition at line 649 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_init ( struct ath5k_softc sc) [static]

Definition at line 1416 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_intr ( void *  dev_id,
intr_t  irq 
) [static]

Definition at line 1450 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static bool ath5k_is_standard_channel ( short  chan) [static]

Definition at line 660 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static void ath5k_mode_setup ( struct ath5k_softc sc) [static]

Definition at line 813 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_recv ( struct ath5k_softc sc,
frame_t frame,
const struct timespec *  abs_timeout 
)

Definition at line 1582 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_reset ( struct ath5k_softc sc,
struct ieee80211_channel chan 
) [static]

Definition at line 1742 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static void ath5k_rx_done ( struct ath5k_softc sc) [static]

Definition at line 1209 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static struct sk_buff* ath5k_rx_skb_alloc ( struct ath5k_softc sc,
struct sk_buff skb 
) [static, read]

Definition at line 837 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_rx_start ( struct ath5k_softc sc) [static]

Definition at line 1164 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static void ath5k_rx_stop ( struct ath5k_softc sc) [static]

Definition at line 1197 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_rxbuf_setup ( struct ath5k_softc sc,
struct ath5k_buf bf 
) [static]

Definition at line 865 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_send ( struct ath5k_softc sc,
const unsigned char *  buff,
const int  nbytes 
)

Definition at line 1642 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_setTxPower ( struct ath5k_softc sc,
int  dbm 
)

Definition at line 1833 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_setup_bands ( struct ath5k_softc sc) [static]

Definition at line 737 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static void ath5k_skb_reset ( struct sk_buff skb) [inline, static]

Definition at line 242 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static void ath5k_tx_done ( struct ath5k_softc sc,
struct ath5k_txq txq 
) [static]

Definition at line 1378 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static int ath5k_txbuf_setup ( struct ath5k_softc sc,
struct ath5k_buf bf 
) [static]

Definition at line 913 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static void ath5k_txq_cleanup ( struct ath5k_softc sc) [static]

Definition at line 1128 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static void ath5k_txq_drainq ( struct ath5k_softc sc,
struct ath5k_txq txq 
) [static]

Definition at line 1104 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

static struct ath5k_txq * ath5k_txq_setup ( struct ath5k_softc sc,
int  qtype,
int  subtype 
) [static, read]

Definition at line 1045 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

void ath5k_waitFrame ( )

Definition at line 1522 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.


Variable Documentation

int ath5k_calinterval = 10 [static]

Definition at line 84 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

Definition at line 95 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

struct ieee80211_rate ath5k_rates[] [static]

Definition at line 175 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int modparam_all_channels = true [static]

Definition at line 85 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

struct ath5k_srev_name srev_names[] [static]

Definition at line 136 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

sem_t ws [static]

Definition at line 88 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:12