#include "core.h"
#include <linux/skbuff.h>
#include <linux/fs.h>
#include <linux/vmalloc.h>
#include <linux/export.h>
#include "debug.h"
#include "target.h"
struct ath6kl_fwlog_slot { … };
#define ATH6KL_FWLOG_MAX_ENTRIES …
#define ATH6KL_FWLOG_VALID_MASK …
void ath6kl_printk(const char *level, const char *fmt, ...)
{ … }
EXPORT_SYMBOL(…);
void ath6kl_info(const char *fmt, ...)
{ … }
EXPORT_SYMBOL(…);
void ath6kl_err(const char *fmt, ...)
{ … }
EXPORT_SYMBOL(…);
void ath6kl_warn(const char *fmt, ...)
{ … }
EXPORT_SYMBOL(…);
int ath6kl_read_tgt_stats(struct ath6kl *ar, struct ath6kl_vif *vif)
{ … }
EXPORT_SYMBOL(…);
#ifdef CONFIG_ATH6KL_DEBUG
void ath6kl_dbg(enum ATH6K_DEBUG_MASK mask, const char *fmt, ...)
{ … }
EXPORT_SYMBOL(…);
void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,
const char *msg, const char *prefix,
const void *buf, size_t len)
{ … }
EXPORT_SYMBOL(…);
#define REG_OUTPUT_LEN_PER_LINE …
#define REGTYPE_STR_LEN …
struct ath6kl_diag_reg_info { … };
static const struct ath6kl_diag_reg_info diag_reg[] = …;
void ath6kl_dump_registers(struct ath6kl_device *dev,
struct ath6kl_irq_proc_registers *irq_proc_reg,
struct ath6kl_irq_enable_reg *irq_enable_reg)
{ … }
static void dump_cred_dist(struct htc_endpoint_credit_dist *ep_dist)
{ … }
void dump_cred_dist_stats(struct htc_target *target)
{ … }
void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)
{ … }
static ssize_t read_file_war_stats(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_war_stats = …;
void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len)
{ … }
static int ath6kl_fwlog_open(struct inode *inode, struct file *file)
{ … }
static int ath6kl_fwlog_release(struct inode *inode, struct file *file)
{ … }
static ssize_t ath6kl_fwlog_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_fwlog = …;
static ssize_t ath6kl_fwlog_block_read(struct file *file,
char __user *user_buf,
size_t count,
loff_t *ppos)
{ … }
static const struct file_operations fops_fwlog_block = …;
static ssize_t ath6kl_fwlog_mask_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t ath6kl_fwlog_mask_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_fwlog_mask = …;
static ssize_t read_file_tgt_stats(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_tgt_stats = …;
#define print_credit_info(fmt_str, ep_list_field) …
#define CREDIT_INFO_DISPLAY_STRING_LEN …
#define CREDIT_INFO_LEN …
static ssize_t read_file_credit_dist_stats(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_credit_dist_stats = …;
static unsigned int print_endpoint_stat(struct htc_target *target, char *buf,
unsigned int buf_len, unsigned int len,
int offset, const char *name)
{ … }
static ssize_t ath6kl_endpoint_stats_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t ath6kl_endpoint_stats_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_endpoint_stats = …;
static unsigned long ath6kl_get_num_reg(void)
{ … }
static bool ath6kl_dbg_is_diag_reg_valid(u32 reg_addr)
{ … }
static ssize_t ath6kl_regread_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t ath6kl_regread_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_diag_reg_read = …;
static int ath6kl_regdump_open(struct inode *inode, struct file *file)
{ … }
static ssize_t ath6kl_regdump_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static int ath6kl_regdump_release(struct inode *inode, struct file *file)
{ … }
static const struct file_operations fops_reg_dump = …;
static ssize_t ath6kl_lrssi_roam_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t ath6kl_lrssi_roam_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_lrssi_roam_threshold = …;
static ssize_t ath6kl_regwrite_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t ath6kl_regwrite_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_diag_reg_write = …;
int ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,
size_t len)
{ … }
static ssize_t ath6kl_roam_table_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_roam_table = …;
static ssize_t ath6kl_force_roam_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_force_roam = …;
static ssize_t ath6kl_roam_mode_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_roam_mode = …;
void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)
{ … }
static ssize_t ath6kl_keepalive_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t ath6kl_keepalive_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_keepalive = …;
void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout)
{ … }
static ssize_t ath6kl_disconnect_timeout_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t ath6kl_disconnect_timeout_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_disconnect_timeout = …;
static ssize_t ath6kl_create_qos_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_create_qos = …;
static ssize_t ath6kl_delete_qos_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_delete_qos = …;
static ssize_t ath6kl_bgscan_int_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_bgscan_int = …;
static ssize_t ath6kl_listen_int_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static ssize_t ath6kl_listen_int_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_listen_int = …;
static ssize_t ath6kl_power_params_write(struct file *file,
const char __user *user_buf,
size_t count, loff_t *ppos)
{ … }
static const struct file_operations fops_power_params = …;
void ath6kl_debug_init(struct ath6kl *ar)
{ … }
int ath6kl_debug_init_fs(struct ath6kl *ar)
{ … }
void ath6kl_debug_cleanup(struct ath6kl *ar)
{ … }
#endif