#include <linux/completion.h>
#include <linux/device.h>
#include <linux/debugfs.h>
#include <linux/idr.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/module.h>
#include <linux/net.h>
#include <linux/platform_device.h>
#include <linux/firmware/qcom/qcom_scm.h>
#include <linux/soc/qcom/smem.h>
#include <linux/string.h>
#include <net/sock.h>
#include "debug.h"
#include "snoc.h"
#define ATH10K_QMI_CLIENT_ID …
#define ATH10K_QMI_TIMEOUT …
#define SMEM_IMAGE_VERSION_TABLE …
#define SMEM_IMAGE_TABLE_CNSS_INDEX …
#define SMEM_IMAGE_VERSION_ENTRY_SIZE …
#define SMEM_IMAGE_VERSION_NAME_SIZE …
static int ath10k_qmi_map_msa_permission(struct ath10k_qmi *qmi,
struct ath10k_msa_mem_info *mem_info)
{ … }
static int ath10k_qmi_unmap_msa_permission(struct ath10k_qmi *qmi,
struct ath10k_msa_mem_info *mem_info)
{ … }
static int ath10k_qmi_setup_msa_permissions(struct ath10k_qmi *qmi)
{ … }
static void ath10k_qmi_remove_msa_permission(struct ath10k_qmi *qmi)
{ … }
static int ath10k_qmi_msa_mem_info_send_sync_msg(struct ath10k_qmi *qmi)
{ … }
static int ath10k_qmi_msa_ready_send_sync_msg(struct ath10k_qmi *qmi)
{ … }
static int ath10k_qmi_bdf_dnld_send_sync(struct ath10k_qmi *qmi)
{ … }
static int ath10k_qmi_send_cal_report_req(struct ath10k_qmi *qmi)
{ … }
static int
ath10k_qmi_mode_send_sync_msg(struct ath10k *ar, enum wlfw_driver_mode_enum_v01 mode)
{ … }
static int
ath10k_qmi_cfg_send_sync_msg(struct ath10k *ar,
struct ath10k_qmi_wlan_enable_cfg *config,
const char *version)
{ … }
int ath10k_qmi_wlan_enable(struct ath10k *ar,
struct ath10k_qmi_wlan_enable_cfg *config,
enum wlfw_driver_mode_enum_v01 mode,
const char *version)
{ … }
int ath10k_qmi_wlan_disable(struct ath10k *ar)
{ … }
static void ath10k_qmi_add_wlan_ver_smem(struct ath10k *ar, const char *fw_build_id)
{ … }
static int ath10k_qmi_cap_send_sync_msg(struct ath10k_qmi *qmi)
{ … }
static int ath10k_qmi_host_cap_send_sync(struct ath10k_qmi *qmi)
{ … }
int ath10k_qmi_set_fw_log_mode(struct ath10k *ar, u8 fw_log_mode)
{ … }
static int
ath10k_qmi_ind_register_send_sync_msg(struct ath10k_qmi *qmi)
{ … }
static void ath10k_qmi_event_server_arrive(struct ath10k_qmi *qmi)
{ … }
static int ath10k_qmi_fetch_board_file(struct ath10k_qmi *qmi)
{ … }
static int
ath10k_qmi_driver_event_post(struct ath10k_qmi *qmi,
enum ath10k_qmi_driver_event_type type,
void *data)
{ … }
static void ath10k_qmi_event_server_exit(struct ath10k_qmi *qmi)
{ … }
static void ath10k_qmi_event_msa_ready(struct ath10k_qmi *qmi)
{ … }
static int ath10k_qmi_event_fw_ready_ind(struct ath10k_qmi *qmi)
{ … }
static void ath10k_qmi_fw_ready_ind(struct qmi_handle *qmi_hdl,
struct sockaddr_qrtr *sq,
struct qmi_txn *txn, const void *data)
{ … }
static void ath10k_qmi_msa_ready_ind(struct qmi_handle *qmi_hdl,
struct sockaddr_qrtr *sq,
struct qmi_txn *txn, const void *data)
{ … }
static const struct qmi_msg_handler qmi_msg_handler[] = …;
static int ath10k_qmi_new_server(struct qmi_handle *qmi_hdl,
struct qmi_service *service)
{ … }
static void ath10k_qmi_del_server(struct qmi_handle *qmi_hdl,
struct qmi_service *service)
{ … }
static const struct qmi_ops ath10k_qmi_ops = …;
static void ath10k_qmi_driver_event_work(struct work_struct *work)
{ … }
int ath10k_qmi_init(struct ath10k *ar, u32 msa_size)
{ … }
int ath10k_qmi_deinit(struct ath10k *ar)
{ … }