Main Page | Data Structures | Directories | File List | Data Fields | Globals

hal.c File Reference

#include "ah.h"
#include <errno.h>
#include "ar5xxx.h"

Include dependency graph for hal.c:

Go to the source code of this file.

Defines

#define AR5K_DELAY(_n)   delay(_n)
#define AR5K_ELEMENTS(_array)   (sizeof(_array) / sizeof(_array[0]))
#define AR5K_RATES_11A
#define AR5K_RATES_11B
#define AR5K_RATES_11G
#define AR5K_RATES_TURBO
#define AR5K_RATES_XR

Functions

ath_halath_hal_attach (u_int16_t device, HAL_SOFTC sc, HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status)

Variables

static const HAL_RATE_TABLE ar5k_rt_11a = AR5K_RATES_11A
static const HAL_RATE_TABLE ar5k_rt_11b = AR5K_RATES_11B
static const HAL_RATE_TABLE ar5k_rt_11g = AR5K_RATES_11G
static const HAL_RATE_TABLE ar5k_rt_turbo = AR5K_RATES_TURBO
static const HAL_RATE_TABLE ar5k_rt_xr = AR5K_RATES_XR


Define Documentation

#define AR5K_DELAY _n  )    delay(_n)
 

Definition at line 5 of file hal.c.

#define AR5K_ELEMENTS _array  )    (sizeof(_array) / sizeof(_array[0]))
 

Definition at line 6 of file hal.c.

#define AR5K_RATES_11A
 

Value:

{ 8, {                                          \
        255, 255, 255, 255, 255, 255, 255, 255, 6, 4, 2, 0,             \
        7, 5, 3, 1, 255, 255, 255, 255, 255, 255, 255, 255,             \
        255, 255, 255, 255, 255, 255, 255, 255 }, {                     \
        { 1, IEEE80211_T_OFDM, 6000, 11, 0, 140, 0 },                   \
        { 1, IEEE80211_T_OFDM, 9000, 15, 0, 18, 0 },                    \
        { 1, IEEE80211_T_OFDM, 12000, 10, 0, 152, 2 },                  \
        { 1, IEEE80211_T_OFDM, 18000, 14, 0, 36, 2 },                   \
        { 1, IEEE80211_T_OFDM, 24000, 9, 0, 176, 4 },                   \
        { 1, IEEE80211_T_OFDM, 36000, 13, 0, 72, 4 },                   \
        { 1, IEEE80211_T_OFDM, 48000, 8, 0, 96, 4 },                    \
        { 1, IEEE80211_T_OFDM, 54000, 12, 0, 108, 4 } }                 \
}

Definition at line 11 of file hal.c.

#define AR5K_RATES_11B
 

Value:

{ 4, {                                          \
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,     \
        255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,     \
        3, 2, 1, 0, 255, 255, 255, 255 }, {                             \
        { 1, IEEE80211_T_CCK, 1000, 27, 0x00, 130, 0 },                 \
        { 1, IEEE80211_T_CCK, 2000, 26, 0x04, 132, 1 },                 \
        { 1, IEEE80211_T_CCK, 5500, 25, 0x04, 139, 1 },                 \
        { 1, IEEE80211_T_CCK, 11000, 24, 0x04, 150, 1 } }               \
}

Definition at line 25 of file hal.c.

#define AR5K_RATES_11G
 

Value:

{ 12, {                                         \
        255, 255, 255, 255, 255, 255, 255, 255, 10, 8, 6, 4,            \
        11, 9, 7, 5, 255, 255, 255, 255, 255, 255, 255, 255,            \
        3, 2, 1, 0, 255, 255, 255, 255 }, {                             \
        { 1, IEEE80211_T_CCK, 1000, 27, 0x00, 2, 0 },                   \
        { 1, IEEE80211_T_CCK, 2000, 26, 0x04, 4, 1 },                   \
        { 1, IEEE80211_T_CCK, 5500, 25, 0x04, 11, 1 },                  \
        { 1, IEEE80211_T_CCK, 11000, 24, 0x04, 22, 1 },                 \
        { 0, IEEE80211_T_OFDM, 6000, 11, 0, 12, 4 },                    \
        { 0, IEEE80211_T_OFDM, 9000, 15, 0, 18, 4 },                    \
        { 1, IEEE80211_T_OFDM, 12000, 10, 0, 24, 6 },                   \
        { 1, IEEE80211_T_OFDM, 18000, 14, 0, 36, 6 },                   \
        { 1, IEEE80211_T_OFDM, 24000, 9, 0, 48, 8 },                    \
        { 1, IEEE80211_T_OFDM, 36000, 13, 0, 72, 8 },                   \
        { 1, IEEE80211_T_OFDM, 48000, 8, 0, 96, 8 },                    \
        { 1, IEEE80211_T_OFDM, 54000, 12, 0, 108, 8 } }                 \
}

Definition at line 35 of file hal.c.

#define AR5K_RATES_TURBO
 

Value:

{ 8, {                                          \
        255, 255, 255, 255, 255, 255, 255, 255, 6, 4, 2, 0,             \
        7, 5, 3, 1, 255, 255, 255, 255, 255, 255, 255, 255,             \
        255, 255, 255, 255, 255, 255, 255, 255 }, {                     \
        { 1, IEEE80211_T_TURBO, 6000, 11, 0, 140, 0 },                  \
        { 1, IEEE80211_T_TURBO, 9000, 15, 0, 18, 0 },                   \
        { 1, IEEE80211_T_TURBO, 12000, 10, 0, 152, 2 },                 \
        { 1, IEEE80211_T_TURBO, 18000, 14, 0, 36, 2 },                  \
        { 1, IEEE80211_T_TURBO, 24000, 9, 0, 176, 4 },                  \
        { 1, IEEE80211_T_TURBO, 36000, 13, 0, 72, 4 },                  \
        { 1, IEEE80211_T_TURBO, 48000, 8, 0, 96, 4 },                   \
        { 1, IEEE80211_T_TURBO, 54000, 12, 0, 108, 4 } }                \
}

Definition at line 53 of file hal.c.

#define AR5K_RATES_XR
 

Value:

{ 12, {                                         \
        255, 3, 1, 255, 255, 255, 2, 0, 10, 8, 6, 4,                    \
        11, 9, 7, 5, 255, 255, 255, 255, 255, 255, 255, 255,            \
        255, 255, 255, 255, 255, 255, 255, 255 }, {                     \
        { 1, IEEE80211_T_XR, 500, 7, 0, 129, 0 },                       \
        { 1, IEEE80211_T_XR, 1000, 2, 0, 139, 1 },                      \
        { 1, IEEE80211_T_XR, 2000, 6, 0, 150, 2 },                      \
        { 1, IEEE80211_T_XR, 3000, 1, 0, 150, 3 },                      \
        { 1, IEEE80211_T_OFDM, 6000, 11, 0, 140, 4 },                   \
        { 1, IEEE80211_T_OFDM, 9000, 15, 0, 18, 4 },                    \
        { 1, IEEE80211_T_OFDM, 12000, 10, 0, 152, 6 },                  \
        { 1, IEEE80211_T_OFDM, 18000, 14, 0, 36, 6 },                   \
        { 1, IEEE80211_T_OFDM, 24000, 9, 0, 176, 8 },                   \
        { 1, IEEE80211_T_OFDM, 36000, 13, 0, 72, 8 },                   \
        { 1, IEEE80211_T_OFDM, 48000, 8, 0, 96, 8 },                    \
        { 1, IEEE80211_T_OFDM, 54000, 12, 0, 108, 8 } }                 \
}

Definition at line 67 of file hal.c.


Function Documentation

struct ath_hal* ath_hal_attach u_int16_t device,
HAL_SOFTC sc,
HAL_BUS_TAG st,
HAL_BUS_HANDLE sh,
HAL_STATUSstatus
 

Definition at line 99 of file hal.c.

References ath_hal::ah_abi, ath_hal::ah_aifs, ath_hal::ah_ant_diversity, ath_hal::ah_atim_window, ath_hal::ah_capabilities, ath_hal::ah_country_code, ath_hal::ah_cw_min, ath_hal::ah_device, ath_hal::ah_dump_state, AH_FALSE, ath_hal::ah_imr, ath_hal::ah_limit_tx_retries, ath_hal::ah_op_mode, ath_hal::ah_radar, ath_hal::ah_rt_11a, ath_hal::ah_rt_11b, ath_hal::ah_rt_11g, ath_hal::ah_rt_turbo, ath_hal::ah_sc, ath_hal::ah_sh, ath_hal::ah_software_retry, ath_hal::ah_st, AH_TRUE, ath_hal::ah_turbo, ath_hal::ah_txpower, ar5k_eeprom_init(), ar5k_eeprom_read_mac(), ar5k_eeprom_regulation_domain(), AR5K_ELEMENTS, AR5K_INIT_TX_RETRY, AR5K_PRINT, AR5K_PRINTF, ar5k_regdomain_to_ieee(), ar5k_rt_11a, ar5k_rt_11b, ar5k_rt_11g, ar5k_rt_copy(), ar5k_rt_turbo, AR5K_TUNE_AIFS, AR5K_TUNE_ANT_DIVERSITY, AR5K_TUNE_CWMIN, AR5K_TUNE_RADAR_ALERT, AR5K_TUNE_TPC_TXPOWER, attach, bzero, ar5k_capabilities_t::cap_eeprom, ar5k_capabilities_t::cap_mode, CTRY_DEFAULT, device, ar5k_eeprom_info::ee_regdomain, HAL_ABI_VERSION, HAL_M_STA, HAL_MODE_11A, HAL_MODE_11B, HAL_MODE_11G, HAL_MODE_TURBO, HAL_OK, ath_hal::r_enabled, ar5k_capabilities_t::reg_current, ar5k_capabilities_t::reg_hw, and ath_hal::txp_tpc.

Referenced by _ath_hal_attach().

Here is the call graph for this function:


Variable Documentation

const HAL_RATE_TABLE ar5k_rt_11a = AR5K_RATES_11A [static]
 

Definition at line 88 of file hal.c.

Referenced by ath_hal_attach().

const HAL_RATE_TABLE ar5k_rt_11b = AR5K_RATES_11B [static]
 

Definition at line 89 of file hal.c.

Referenced by ath_hal_attach().

const HAL_RATE_TABLE ar5k_rt_11g = AR5K_RATES_11G [static]
 

Definition at line 90 of file hal.c.

Referenced by ath_hal_attach().

const HAL_RATE_TABLE ar5k_rt_turbo = AR5K_RATES_TURBO [static]
 

Definition at line 91 of file hal.c.

Referenced by ath_hal_attach().

const HAL_RATE_TABLE ar5k_rt_xr = AR5K_RATES_XR [static]
 

Definition at line 92 of file hal.c.


Generated on Mon Nov 21 16:04:27 2005 for openwifi by  doxygen 1.4.1