linux/drivers/net/wireless/ath/ath11k/core.c

// SPDX-License-Identifier: BSD-3-Clause-Clear
/*
 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#include <linux/module.h>
#include <linux/slab.h>
#include <linux/remoteproc.h>
#include <linux/firmware.h>
#include <linux/of.h>

#include "core.h"
#include "dp_tx.h"
#include "dp_rx.h"
#include "debug.h"
#include "hif.h"
#include "wow.h"
#include "fw.h"

unsigned int ath11k_debug_mask;
EXPORT_SYMBOL();
module_param_named(debug_mask, ath11k_debug_mask, uint, 0644);
MODULE_PARM_DESC();

static unsigned int ath11k_crypto_mode;
module_param_named(crypto_mode, ath11k_crypto_mode, uint, 0644);
MODULE_PARM_DESC();

/* frame mode values are mapped as per enum ath11k_hw_txrx_mode */
unsigned int ath11k_frame_mode =;
module_param_named(frame_mode, ath11k_frame_mode, uint, 0644);
MODULE_PARM_DESC();

bool ath11k_ftm_mode;
module_param_named(ftm_mode, ath11k_ftm_mode, bool, 0444);
MODULE_PARM_DESC();

static const struct ath11k_hw_params ath11k_hw_params[] =;

static inline struct ath11k_pdev *ath11k_core_get_single_pdev(struct ath11k_base *ab)
{}

void ath11k_fw_stats_pdevs_free(struct list_head *head)
{}

void ath11k_fw_stats_vdevs_free(struct list_head *head)
{}

void ath11k_fw_stats_bcn_free(struct list_head *head)
{}

void ath11k_fw_stats_init(struct ath11k *ar)
{}

void ath11k_fw_stats_free(struct ath11k_fw_stats *stats)
{}

bool ath11k_core_coldboot_cal_support(struct ath11k_base *ab)
{}

int ath11k_core_suspend(struct ath11k_base *ab)
{}
EXPORT_SYMBOL();

int ath11k_core_suspend_late(struct ath11k_base *ab)
{}
EXPORT_SYMBOL();

int ath11k_core_resume_early(struct ath11k_base *ab)
{}
EXPORT_SYMBOL();

int ath11k_core_resume(struct ath11k_base *ab)
{}
EXPORT_SYMBOL();

static void ath11k_core_check_cc_code_bdfext(const struct dmi_header *hdr, void *data)
{}

int ath11k_core_check_smbios(struct ath11k_base *ab)
{}

int ath11k_core_check_dt(struct ath11k_base *ab)
{}

enum ath11k_bdf_name_type {};

static int __ath11k_core_create_board_name(struct ath11k_base *ab, char *name,
					   size_t name_len, bool with_variant,
					   enum ath11k_bdf_name_type name_type)
{}

static int ath11k_core_create_board_name(struct ath11k_base *ab, char *name,
					 size_t name_len)
{}

static int ath11k_core_create_fallback_board_name(struct ath11k_base *ab, char *name,
						  size_t name_len)
{}

static int ath11k_core_create_bus_type_board_name(struct ath11k_base *ab, char *name,
						  size_t name_len)
{}

static int ath11k_core_create_chip_id_board_name(struct ath11k_base *ab, char *name,
						 size_t name_len)
{}

const struct firmware *ath11k_core_firmware_request(struct ath11k_base *ab,
						    const char *file)
{}

void ath11k_core_free_bdf(struct ath11k_base *ab, struct ath11k_board_data *bd)
{}

static int ath11k_core_parse_bd_ie_board(struct ath11k_base *ab,
					 struct ath11k_board_data *bd,
					 const void *buf, size_t buf_len,
					 const char *boardname,
					 int ie_id,
					 int name_id,
					 int data_id)
{}

static int ath11k_core_fetch_board_data_api_n(struct ath11k_base *ab,
					      struct ath11k_board_data *bd,
					      const char *boardname,
					      int ie_id_match,
					      int name_id,
					      int data_id)
{}

int ath11k_core_fetch_board_data_api_1(struct ath11k_base *ab,
				       struct ath11k_board_data *bd,
				       const char *name)
{}

#define BOARD_NAME_SIZE
int ath11k_core_fetch_bdf(struct ath11k_base *ab, struct ath11k_board_data *bd)
{}

int ath11k_core_fetch_regdb(struct ath11k_base *ab, struct ath11k_board_data *bd)
{}

static void ath11k_core_stop(struct ath11k_base *ab)
{}

static int ath11k_core_soc_create(struct ath11k_base *ab)
{}

static void ath11k_core_soc_destroy(struct ath11k_base *ab)
{}

static int ath11k_core_pdev_create(struct ath11k_base *ab)
{}

static void ath11k_core_pdev_destroy(struct ath11k_base *ab)
{}

static int ath11k_core_start(struct ath11k_base *ab)
{}

static int ath11k_core_start_firmware(struct ath11k_base *ab,
				      enum ath11k_firmware_mode mode)
{}

int ath11k_core_qmi_firmware_ready(struct ath11k_base *ab)
{}

static int ath11k_core_reconfigure_on_crash(struct ath11k_base *ab)
{}

void ath11k_core_halt(struct ath11k *ar)
{}

static void ath11k_update_11d(struct work_struct *work)
{}

void ath11k_core_pre_reconfigure_recovery(struct ath11k_base *ab)
{}

static void ath11k_core_post_reconfigure_recovery(struct ath11k_base *ab)
{}

static void ath11k_core_restart(struct work_struct *work)
{}

static void ath11k_core_reset(struct work_struct *work)
{}

static int ath11k_init_hw_params(struct ath11k_base *ab)
{}

int ath11k_core_pre_init(struct ath11k_base *ab)
{}
EXPORT_SYMBOL();

int ath11k_core_init(struct ath11k_base *ab)
{}
EXPORT_SYMBOL();

void ath11k_core_deinit(struct ath11k_base *ab)
{}
EXPORT_SYMBOL();

void ath11k_core_free(struct ath11k_base *ab)
{}
EXPORT_SYMBOL();

struct ath11k_base *ath11k_core_alloc(struct device *dev, size_t priv_size,
				      enum ath11k_bus bus)
{}
EXPORT_SYMBOL();

MODULE_DESCRIPTION();
MODULE_LICENSE();