drivers/net/wireless/ath/ath9k/common-debug.h

Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath9k/common-debug.h

File Facts

System
Linux kernel
Corpus path
drivers/net/wireless/ath/ath9k/common-debug.h
Extension
.h
Size
3588 bytes
Lines
104
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.

Dependency Surface

Detected Declarations

Annotated Snippet

struct ath_rx_stats {
	u32 rx_pkts_all;
	u32 rx_bytes_all;
	u32 crc_err;
	u32 decrypt_crc_err;
	u32 phy_err;
	u32 mic_err;
	u32 pre_delim_crc_err;
	u32 post_delim_crc_err;
	u32 decrypt_busy_err;
	u32 phy_err_stats[ATH9K_PHYERR_MAX];
	u32 rx_len_err;
	u32 rx_oom_err;
	u32 rx_rate_err;
	u32 rx_too_many_frags_err;
	u32 rx_beacons;
	u32 rx_frags;
	u32 rx_spectral;
	u32 rx_spectral_sample_good;
	u32 rx_spectral_sample_err;
};

#ifdef CONFIG_ATH9K_COMMON_DEBUG
void ath9k_cmn_debug_modal_eeprom(struct dentry *debugfs_phy,
				  struct ath_hw *ah);
void ath9k_cmn_debug_base_eeprom(struct dentry *debugfs_phy,
				 struct ath_hw *ah);
void ath9k_cmn_debug_stat_rx(struct ath_rx_stats *rxstats,
			     struct ath_rx_status *rs);
void ath9k_cmn_debug_recv(struct dentry *debugfs_phy,
			  struct ath_rx_stats *rxstats);
void ath9k_cmn_debug_phy_err(struct dentry *debugfs_phy,
			     struct ath_rx_stats *rxstats);
#else
static inline void ath9k_cmn_debug_modal_eeprom(struct dentry *debugfs_phy,
						struct ath_hw *ah)
{
}

static inline void ath9k_cmn_debug_base_eeprom(struct dentry *debugfs_phy,
					       struct ath_hw *ah)
{
}

static inline void ath9k_cmn_debug_stat_rx(struct ath_rx_stats *rxstats,
					   struct ath_rx_status *rs)
{
}

static inline void ath9k_cmn_debug_recv(struct dentry *debugfs_phy,
					struct ath_rx_stats *rxstats)
{
}

static inline void ath9k_cmn_debug_phy_err(struct dentry *debugfs_phy,
					   struct ath_rx_stats *rxstats)
{
}
#endif /* CONFIG_ATH9K_COMMON_DEBUG */

Annotation

Implementation Notes