drivers/net/wireless/ath/ath9k/hw-ops.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath9k/hw-ops.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath9k/hw-ops.h- Extension
.h- Size
- 7532 bytes
- Lines
- 291
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
hw.h
Detected Declarations
function Copyrightfunction ath9k_hw_rxenafunction ath9k_hw_set_desc_linkfunction ath9k_hw_calibratefunction ath9k_hw_getisrfunction ath9k_hw_set_txdescfunction ath9k_hw_txprocdescfunction ath9k_hw_get_durationfunction ath9k_hw_antdiv_comb_conf_getfunction ath9k_hw_antdiv_comb_conf_setfunction ath9k_hw_tx99_startfunction ath9k_hw_tx99_stopfunction ath9k_hw_tx99_set_txpowerfunction ath9k_hw_set_bt_ant_diversityfunction ath9k_hw_is_aic_enabledfunction ath9k_hw_init_hang_checksfunction ath9k_hw_detect_mac_hangfunction ath9k_hw_detect_bb_hangfunction ath9k_hw_rf_set_freqfunction ath9k_hw_spur_mitigate_freqfunction ath9k_hw_set_rf_regsfunction ath9k_hw_init_bbfunction ath9k_hw_set_channel_regsfunction ath9k_hw_process_inifunction ath9k_olc_initfunction ath9k_hw_set_rfmodefunction ath9k_hw_mark_phy_inactivefunction ath9k_hw_set_delta_slopefunction ath9k_hw_rfbus_reqfunction ath9k_hw_rfbus_donefunction ath9k_hw_restore_chainmaskfunction ath9k_hw_ani_controlfunction ath9k_hw_do_getnffunction ath9k_hw_init_calfunction ath9k_hw_setup_calibrationfunction ath9k_hw_fast_chan_changefunction ath9k_hw_set_radar_paramsfunction ath9k_hw_init_cal_settingsfunction ath9k_hw_compute_pll_controlfunction ath9k_hw_init_mode_gain_regsfunction ath9k_hw_ani_cache_ini_regs
Annotated Snippet
#ifndef ATH9K_HW_OPS_H
#define ATH9K_HW_OPS_H
#include "hw.h"
/* Hardware core and driver accessible callbacks */
static inline void ath9k_hw_configpcipowersave(struct ath_hw *ah,
bool power_off)
{
if (!ah->aspm_enabled)
return;
ath9k_hw_ops(ah)->config_pci_powersave(ah, power_off);
}
static inline void ath9k_hw_rxena(struct ath_hw *ah)
{
ath9k_hw_ops(ah)->rx_enable(ah);
}
static inline void ath9k_hw_set_desc_link(struct ath_hw *ah, void *ds,
u32 link)
{
ath9k_hw_ops(ah)->set_desc_link(ds, link);
}
static inline int ath9k_hw_calibrate(struct ath_hw *ah,
struct ath9k_channel *chan,
u8 rxchainmask, bool longcal)
{
return ath9k_hw_ops(ah)->calibrate(ah, chan, rxchainmask, longcal);
}
static inline bool ath9k_hw_getisr(struct ath_hw *ah, enum ath9k_int *masked,
u32 *sync_cause_p)
{
return ath9k_hw_ops(ah)->get_isr(ah, masked, sync_cause_p);
}
static inline void ath9k_hw_set_txdesc(struct ath_hw *ah, void *ds,
struct ath_tx_info *i)
{
return ath9k_hw_ops(ah)->set_txdesc(ah, ds, i);
}
static inline int ath9k_hw_txprocdesc(struct ath_hw *ah, void *ds,
struct ath_tx_status *ts)
{
return ath9k_hw_ops(ah)->proc_txdesc(ah, ds, ts);
}
static inline int ath9k_hw_get_duration(struct ath_hw *ah, const void *ds,
int index)
{
return ath9k_hw_ops(ah)->get_duration(ah, ds, index);
}
static inline void ath9k_hw_antdiv_comb_conf_get(struct ath_hw *ah,
struct ath_hw_antcomb_conf *antconf)
{
ath9k_hw_ops(ah)->antdiv_comb_conf_get(ah, antconf);
}
static inline void ath9k_hw_antdiv_comb_conf_set(struct ath_hw *ah,
struct ath_hw_antcomb_conf *antconf)
{
ath9k_hw_ops(ah)->antdiv_comb_conf_set(ah, antconf);
}
static inline void ath9k_hw_tx99_start(struct ath_hw *ah, u32 qnum)
{
ath9k_hw_ops(ah)->tx99_start(ah, qnum);
}
static inline void ath9k_hw_tx99_stop(struct ath_hw *ah)
{
ath9k_hw_ops(ah)->tx99_stop(ah);
}
static inline void ath9k_hw_tx99_set_txpower(struct ath_hw *ah, u8 power)
{
if (ath9k_hw_ops(ah)->tx99_set_txpower)
ath9k_hw_ops(ah)->tx99_set_txpower(ah, power);
}
#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
static inline void ath9k_hw_set_bt_ant_diversity(struct ath_hw *ah, bool enable)
{
Annotation
- Immediate include surface: `hw.h`.
- Detected declarations: `function Copyright`, `function ath9k_hw_rxena`, `function ath9k_hw_set_desc_link`, `function ath9k_hw_calibrate`, `function ath9k_hw_getisr`, `function ath9k_hw_set_txdesc`, `function ath9k_hw_txprocdesc`, `function ath9k_hw_get_duration`, `function ath9k_hw_antdiv_comb_conf_get`, `function ath9k_hw_antdiv_comb_conf_set`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.