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

// SPDX-License-Identifier: BSD-3-Clause-Clear
/*
 * Copyright (c) 2018-2021 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 "fw.h"
#include "debugfs.h"
#include "wow.h"

unsigned int ath12k_debug_mask;
module_param_named(debug_mask, ath12k_debug_mask, uint, 0644);
MODULE_PARM_DESC();

static int ath12k_core_rfkill_config(struct ath12k_base *ab)
{}

/* Check if we need to continue with suspend/resume operation.
 * Return:
 *	a negative value: error happens and don't continue.
 *	0:  no error but don't continue.
 *	positive value: no error and do continue.
 */
static int ath12k_core_continue_suspend_resume(struct ath12k_base *ab)
{}

int ath12k_core_suspend(struct ath12k_base *ab)
{}
EXPORT_SYMBOL();

int ath12k_core_suspend_late(struct ath12k_base *ab)
{}
EXPORT_SYMBOL();

int ath12k_core_resume_early(struct ath12k_base *ab)
{}
EXPORT_SYMBOL();

int ath12k_core_resume(struct ath12k_base *ab)
{}
EXPORT_SYMBOL();

static int __ath12k_core_create_board_name(struct ath12k_base *ab, char *name,
					   size_t name_len, bool with_variant,
					   bool bus_type_mode)
{}

static int ath12k_core_create_board_name(struct ath12k_base *ab, char *name,
					 size_t name_len)
{}

static int ath12k_core_create_fallback_board_name(struct ath12k_base *ab, char *name,
						  size_t name_len)
{}

static int ath12k_core_create_bus_type_board_name(struct ath12k_base *ab, char *name,
						  size_t name_len)
{}

const struct firmware *ath12k_core_firmware_request(struct ath12k_base *ab,
						    const char *file)
{}

void ath12k_core_free_bdf(struct ath12k_base *ab, struct ath12k_board_data *bd)
{}

static int ath12k_core_parse_bd_ie_board(struct ath12k_base *ab,
					 struct ath12k_board_data *bd,
					 const void *buf, size_t buf_len,
					 const char *boardname,
					 int ie_id,
					 int name_id,
					 int data_id)
{}

static int ath12k_core_fetch_board_data_api_n(struct ath12k_base *ab,
					      struct ath12k_board_data *bd,
					      const char *boardname,
					      int ie_id_match,
					      int name_id,
					      int data_id)
{}

int ath12k_core_fetch_board_data_api_1(struct ath12k_base *ab,
				       struct ath12k_board_data *bd,
				       char *filename)
{}

#define BOARD_NAME_SIZE
int ath12k_core_fetch_bdf(struct ath12k_base *ab, struct ath12k_board_data *bd)
{}

int ath12k_core_fetch_regdb(struct ath12k_base *ab, struct ath12k_board_data *bd)
{}

u32 ath12k_core_get_max_station_per_radio(struct ath12k_base *ab)
{}

u32 ath12k_core_get_max_peers_per_radio(struct ath12k_base *ab)
{}

u32 ath12k_core_get_max_num_tids(struct ath12k_base *ab)
{}

static void ath12k_core_stop(struct ath12k_base *ab)
{}

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

int ath12k_core_check_smbios(struct ath12k_base *ab)
{}

static int ath12k_core_soc_create(struct ath12k_base *ab)
{}

static void ath12k_core_soc_destroy(struct ath12k_base *ab)
{}

static int ath12k_core_pdev_create(struct ath12k_base *ab)
{}

static void ath12k_core_pdev_destroy(struct ath12k_base *ab)
{}

static int ath12k_core_start(struct ath12k_base *ab,
			     enum ath12k_firmware_mode mode)
{}

static int ath12k_core_start_firmware(struct ath12k_base *ab,
				      enum ath12k_firmware_mode mode)
{}

int ath12k_core_qmi_firmware_ready(struct ath12k_base *ab)
{}

static int ath12k_core_reconfigure_on_crash(struct ath12k_base *ab)
{}

static void ath12k_rfkill_work(struct work_struct *work)
{}

void ath12k_core_halt(struct ath12k *ar)
{}

static void ath12k_core_pre_reconfigure_recovery(struct ath12k_base *ab)
{}

static void ath12k_core_post_reconfigure_recovery(struct ath12k_base *ab)
{}

static void ath12k_core_restart(struct work_struct *work)
{}

static void ath12k_core_reset(struct work_struct *work)
{}

int ath12k_core_pre_init(struct ath12k_base *ab)
{}

static int ath12k_core_panic_handler(struct notifier_block *nb,
				     unsigned long action, void *data)
{}

static int ath12k_core_panic_notifier_register(struct ath12k_base *ab)
{}

static void ath12k_core_panic_notifier_unregister(struct ath12k_base *ab)
{}

int ath12k_core_init(struct ath12k_base *ab)
{}

void ath12k_core_deinit(struct ath12k_base *ab)
{}

void ath12k_core_free(struct ath12k_base *ab)
{}

struct ath12k_base *ath12k_core_alloc(struct device *dev, size_t priv_size,
				      enum ath12k_bus bus)
{}

MODULE_DESCRIPTION();
MODULE_LICENSE();