iPXE
Functions
hw-ops.h File Reference
#include "hw.h"

Go to the source code of this file.

Functions

 FILE_LICENCE (BSD2)
static void ath9k_hw_configpcipowersave (struct ath_hw *ah, int restore, int power_off)
static void ath9k_hw_rxena (struct ath_hw *ah)
static void ath9k_hw_set_desc_link (struct ath_hw *ah, void *ds, u32 link)
static void ath9k_hw_get_desc_link (struct ath_hw *ah, void *ds, u32 **link)
static int ath9k_hw_calibrate (struct ath_hw *ah, struct ath9k_channel *chan, u8 rxchainmask, int longcal)
static int ath9k_hw_getisr (struct ath_hw *ah, enum ath9k_int *masked)
static void ath9k_hw_filltxdesc (struct ath_hw *ah, void *ds, u32 seglen, int is_firstseg, int is_lastseg, const void *ds0, u32 buf_addr, unsigned int qcu)
static int ath9k_hw_txprocdesc (struct ath_hw *ah, void *ds, struct ath_tx_status *ts)
static void ath9k_hw_set11n_txdesc (struct ath_hw *ah, void *ds, u32 pktLen, enum ath9k_pkt_type type, u32 txPower, u32 keyIx, enum ath9k_key_type keyType, u32 flags)
static void ath9k_hw_set11n_ratescenario (struct ath_hw *ah, void *ds, void *lastds, u32 durUpdateEn, u32 rtsctsRate, u32 rtsctsDuration, struct ath9k_11n_rate_series series[], u32 nseries, u32 flags)
static void ath9k_hw_set11n_aggr_first (struct ath_hw *ah, void *ds, u32 aggrLen)
static void ath9k_hw_set11n_aggr_middle (struct ath_hw *ah, void *ds, u32 numDelims)
static void ath9k_hw_set11n_aggr_last (struct ath_hw *ah, void *ds)
static void ath9k_hw_clr11n_aggr (struct ath_hw *ah, void *ds)
static void ath9k_hw_set_clrdmask (struct ath_hw *ah, void *ds, int val)
static void ath9k_hw_antdiv_comb_conf_get (struct ath_hw *ah, struct ath_hw_antcomb_conf *antconf)
static void ath9k_hw_antdiv_comb_conf_set (struct ath_hw *ah, struct ath_hw_antcomb_conf *antconf)
static int ath9k_hw_rf_set_freq (struct ath_hw *ah, struct ath9k_channel *chan)
static void ath9k_hw_spur_mitigate_freq (struct ath_hw *ah, struct ath9k_channel *chan)
static int ath9k_hw_rf_alloc_ext_banks (struct ath_hw *ah)
static void ath9k_hw_rf_free_ext_banks (struct ath_hw *ah)
static int ath9k_hw_set_rf_regs (struct ath_hw *ah, struct ath9k_channel *chan, u16 modesIndex)
static void ath9k_hw_init_bb (struct ath_hw *ah, struct ath9k_channel *chan)
static void ath9k_hw_set_channel_regs (struct ath_hw *ah, struct ath9k_channel *chan)
static int ath9k_hw_process_ini (struct ath_hw *ah, struct ath9k_channel *chan)
static void ath9k_olc_init (struct ath_hw *ah)
static void ath9k_hw_set_rfmode (struct ath_hw *ah, struct ath9k_channel *chan)
static void ath9k_hw_mark_phy_inactive (struct ath_hw *ah)
static void ath9k_hw_set_delta_slope (struct ath_hw *ah, struct ath9k_channel *chan)
static int ath9k_hw_rfbus_req (struct ath_hw *ah)
static void ath9k_hw_rfbus_done (struct ath_hw *ah)
static void ath9k_hw_restore_chainmask (struct ath_hw *ah)
static void ath9k_hw_set_diversity (struct ath_hw *ah, int value)
static int ath9k_hw_ani_control (struct ath_hw *ah, enum ath9k_ani_cmd cmd, int param)
static void ath9k_hw_do_getnf (struct ath_hw *ah, int16_t nfarray[NUM_NF_READINGS])
static int ath9k_hw_init_cal (struct ath_hw *ah, struct ath9k_channel *chan)
static void ath9k_hw_setup_calibration (struct ath_hw *ah, struct ath9k_cal_list *currCal)

Function Documentation

FILE_LICENCE ( BSD2  )
static void ath9k_hw_configpcipowersave ( struct ath_hw ah,
int  restore,
int  power_off 
) [inline, static]

Definition at line 26 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::config_pci_powersave.

Referenced by __ath9k_hw_init(), ath9k_start(), ath9k_stop(), and ath_radio_disable().

{
        ath9k_hw_ops(ah)->config_pci_powersave(ah, restore, power_off);
}
static void ath9k_hw_rxena ( struct ath_hw ah) [inline, static]

Definition at line 33 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::rx_enable.

Referenced by ath_rx_tasklet(), and ath_startrecv().

{
        ath9k_hw_ops(ah)->rx_enable(ah);
}
static void ath9k_hw_set_desc_link ( struct ath_hw ah,
void *  ds,
u32  link 
) [inline, static]

Definition at line 38 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::set_desc_link.

Referenced by ath_tx_setup_buffer().

static void ath9k_hw_get_desc_link ( struct ath_hw ah,
void *  ds,
u32 **  link 
) [inline, static]

Definition at line 44 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::get_desc_link.

Referenced by ath_tx_txqaddbuf().

static int ath9k_hw_calibrate ( struct ath_hw ah,
struct ath9k_channel chan,
u8  rxchainmask,
int  longcal 
) [inline, static]

Definition at line 49 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::calibrate.

Referenced by ath_ani_calibrate().

{
        return ath9k_hw_ops(ah)->calibrate(ah, chan, rxchainmask, longcal);
}
static int ath9k_hw_getisr ( struct ath_hw ah,
enum ath9k_int masked 
) [inline, static]

Definition at line 57 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::get_isr.

Referenced by ath_isr().

{
        return ath9k_hw_ops(ah)->get_isr(ah, masked);
}
static void ath9k_hw_filltxdesc ( struct ath_hw ah,
void *  ds,
u32  seglen,
int  is_firstseg,
int  is_lastseg,
const void *  ds0,
u32  buf_addr,
unsigned int  qcu 
) [inline, static]

Definition at line 62 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::fill_txdesc.

Referenced by ath_tx_setup_buffer().

{
        ath9k_hw_ops(ah)->fill_txdesc(ah, ds, seglen, is_firstseg, is_lastseg,
                                      ds0, buf_addr, qcu);
}
static int ath9k_hw_txprocdesc ( struct ath_hw ah,
void *  ds,
struct ath_tx_status ts 
) [inline, static]

Definition at line 71 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::proc_txdesc.

Referenced by ath_tx_processq().

{
        return ath9k_hw_ops(ah)->proc_txdesc(ah, ds, ts);
}
static void ath9k_hw_set11n_txdesc ( struct ath_hw ah,
void *  ds,
u32  pktLen,
enum ath9k_pkt_type  type,
u32  txPower,
u32  keyIx,
enum ath9k_key_type  keyType,
u32  flags 
) [inline, static]

Definition at line 77 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::set11n_txdesc.

Referenced by ath_tx_setup_buffer().

{
        ath9k_hw_ops(ah)->set11n_txdesc(ah, ds, pktLen, type, txPower, keyIx,
                                      keyType, flags);
}
static void ath9k_hw_set11n_ratescenario ( struct ath_hw ah,
void *  ds,
void *  lastds,
u32  durUpdateEn,
u32  rtsctsRate,
u32  rtsctsDuration,
struct ath9k_11n_rate_series  series[],
u32  nseries,
u32  flags 
) [inline, static]

Definition at line 87 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::set11n_ratescenario.

Referenced by ath_buf_set_rate().

{
        ath9k_hw_ops(ah)->set11n_ratescenario(ah, ds, lastds, durUpdateEn,
                                            rtsctsRate, rtsctsDuration, series,
                                            nseries, flags);
}
static void ath9k_hw_set11n_aggr_first ( struct ath_hw ah,
void *  ds,
u32  aggrLen 
) [inline, static]

Definition at line 99 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::set11n_aggr_first.

{
        ath9k_hw_ops(ah)->set11n_aggr_first(ah, ds, aggrLen);
}
static void ath9k_hw_set11n_aggr_middle ( struct ath_hw ah,
void *  ds,
u32  numDelims 
) [inline, static]

Definition at line 105 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::set11n_aggr_middle.

{
        ath9k_hw_ops(ah)->set11n_aggr_middle(ah, ds, numDelims);
}
static void ath9k_hw_set11n_aggr_last ( struct ath_hw ah,
void *  ds 
) [inline, static]

Definition at line 111 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::set11n_aggr_last.

static void ath9k_hw_clr11n_aggr ( struct ath_hw ah,
void *  ds 
) [inline, static]

Definition at line 116 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::clr11n_aggr.

{
        ath9k_hw_ops(ah)->clr11n_aggr(ah, ds);
}
static void ath9k_hw_set_clrdmask ( struct ath_hw ah,
void *  ds,
int  val 
) [inline, static]

Definition at line 121 of file hw-ops.h.

References ath9k_hw_ops(), and ath_hw_ops::set_clrdmask.

Referenced by ath_tx_start_dma().

{
        ath9k_hw_ops(ah)->set_clrdmask(ah, ds, val);
}
static void ath9k_hw_antdiv_comb_conf_get ( struct ath_hw ah,
struct ath_hw_antcomb_conf antconf 
) [inline, static]

Definition at line 126 of file hw-ops.h.

References ath_hw_ops::antdiv_comb_conf_get, and ath9k_hw_ops().

{
        ath9k_hw_ops(ah)->antdiv_comb_conf_get(ah, antconf);
}
static void ath9k_hw_antdiv_comb_conf_set ( struct ath_hw ah,
struct ath_hw_antcomb_conf antconf 
) [inline, static]

Definition at line 132 of file hw-ops.h.

References ath_hw_ops::antdiv_comb_conf_set, and ath9k_hw_ops().

{
        ath9k_hw_ops(ah)->antdiv_comb_conf_set(ah, antconf);
}
static int ath9k_hw_rf_set_freq ( struct ath_hw ah,
struct ath9k_channel chan 
) [inline, static]

Definition at line 142 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::rf_set_freq.

Referenced by ath9k_hw_channel_change(), and ath9k_hw_reset().

{
        return ath9k_hw_private_ops(ah)->rf_set_freq(ah, chan);
}
static void ath9k_hw_spur_mitigate_freq ( struct ath_hw ah,
struct ath9k_channel chan 
) [inline, static]
static int ath9k_hw_rf_alloc_ext_banks ( struct ath_hw ah) [inline, static]

Definition at line 154 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::rf_alloc_ext_banks.

Referenced by ath9k_hw_post_init().

{
        if (!ath9k_hw_private_ops(ah)->rf_alloc_ext_banks)
                return 0;

        return ath9k_hw_private_ops(ah)->rf_alloc_ext_banks(ah);
}
static void ath9k_hw_rf_free_ext_banks ( struct ath_hw ah) [inline, static]

Definition at line 162 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::rf_free_ext_banks.

Referenced by ath9k_hw_deinit(), and ath9k_hw_post_init().

{
        if (!ath9k_hw_private_ops(ah)->rf_free_ext_banks)
                return;

        ath9k_hw_private_ops(ah)->rf_free_ext_banks(ah);
}
static int ath9k_hw_set_rf_regs ( struct ath_hw ah,
struct ath9k_channel chan,
u16  modesIndex 
) [inline, static]

Definition at line 170 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::set_rf_regs.

Referenced by ar5008_hw_process_ini().

{
        if (!ath9k_hw_private_ops(ah)->set_rf_regs)
                return 1;

        return ath9k_hw_private_ops(ah)->set_rf_regs(ah, chan, modesIndex);
}
static void ath9k_hw_init_bb ( struct ath_hw ah,
struct ath9k_channel chan 
) [inline, static]

Definition at line 180 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::init_bb.

Referenced by ath9k_hw_reset().

{
        return ath9k_hw_private_ops(ah)->init_bb(ah, chan);
}
static void ath9k_hw_set_channel_regs ( struct ath_hw ah,
struct ath9k_channel chan 
) [inline, static]

Definition at line 186 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::set_channel_regs.

Referenced by ath9k_hw_channel_change().

{
        return ath9k_hw_private_ops(ah)->set_channel_regs(ah, chan);
}
static int ath9k_hw_process_ini ( struct ath_hw ah,
struct ath9k_channel chan 
) [inline, static]

Definition at line 192 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::process_ini.

Referenced by ath9k_hw_reset().

{
        return ath9k_hw_private_ops(ah)->process_ini(ah, chan);
}
static void ath9k_olc_init ( struct ath_hw ah) [inline, static]

Definition at line 198 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::olc_init.

Referenced by ar5008_hw_process_ini().

{
        if (!ath9k_hw_private_ops(ah)->olc_init)
                return;

        return ath9k_hw_private_ops(ah)->olc_init(ah);
}
static void ath9k_hw_set_rfmode ( struct ath_hw ah,
struct ath9k_channel chan 
) [inline, static]

Definition at line 206 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::set_rfmode.

Referenced by ath9k_hw_chip_reset().

{
        return ath9k_hw_private_ops(ah)->set_rfmode(ah, chan);
}
static void ath9k_hw_mark_phy_inactive ( struct ath_hw ah) [inline, static]

Definition at line 212 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::mark_phy_inactive.

Referenced by ath9k_hw_reset().

static void ath9k_hw_set_delta_slope ( struct ath_hw ah,
struct ath9k_channel chan 
) [inline, static]

Definition at line 217 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::set_delta_slope.

Referenced by ath9k_hw_channel_change(), and ath9k_hw_reset().

{
        return ath9k_hw_private_ops(ah)->set_delta_slope(ah, chan);
}
static int ath9k_hw_rfbus_req ( struct ath_hw ah) [inline, static]

Definition at line 223 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::rfbus_req.

Referenced by ath9k_hw_channel_change().

{
        return ath9k_hw_private_ops(ah)->rfbus_req(ah);
}
static void ath9k_hw_rfbus_done ( struct ath_hw ah) [inline, static]

Definition at line 228 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::rfbus_done.

Referenced by ath9k_hw_channel_change().

{
        return ath9k_hw_private_ops(ah)->rfbus_done(ah);
}
static void ath9k_hw_restore_chainmask ( struct ath_hw ah) [inline, static]

Definition at line 233 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::restore_chainmask.

Referenced by ath9k_hw_reset().

{
        if (!ath9k_hw_private_ops(ah)->restore_chainmask)
                return;

        return ath9k_hw_private_ops(ah)->restore_chainmask(ah);
}
static void ath9k_hw_set_diversity ( struct ath_hw ah,
int  value 
) [inline, static]

Definition at line 241 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::set_diversity.

Referenced by ath9k_init_misc().

static int ath9k_hw_ani_control ( struct ath_hw ah,
enum ath9k_ani_cmd  cmd,
int  param 
) [inline, static]
static void ath9k_hw_do_getnf ( struct ath_hw ah,
int16_t  nfarray[NUM_NF_READINGS] 
) [inline, static]

Definition at line 252 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::do_getnf.

Referenced by ath9k_hw_getnf().

{
        ath9k_hw_private_ops(ah)->do_getnf(ah, nfarray);
}
static int ath9k_hw_init_cal ( struct ath_hw ah,
struct ath9k_channel chan 
) [inline, static]

Definition at line 258 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::init_cal.

Referenced by ath9k_hw_reset().

{
        return ath9k_hw_private_ops(ah)->init_cal(ah, chan);
}
static void ath9k_hw_setup_calibration ( struct ath_hw ah,
struct ath9k_cal_list currCal 
) [inline, static]

Definition at line 264 of file hw-ops.h.

References ath9k_hw_private_ops(), and ath_hw_private_ops::setup_calibration.

Referenced by ath9k_hw_reset_calibration().

{
        ath9k_hw_private_ops(ah)->setup_calibration(ah, currCal);
}