Commit d7579d12 authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo
Browse files

ath10k: introduce wmi ops



Since the 10.x fw branch support was introduced it
became apparent ath10k will need to be able to
deal with different fw ABIs eventually.

The patch creates an abstraction for dealing with
command and event structures across different ABIs
and mostly gets rid of the
ATH10K_FW_FEATURE_WMI_10X flag usage.

Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 32653cf1
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -28,6 +28,7 @@
#include "debug.h"
#include "debug.h"
#include "htt.h"
#include "htt.h"
#include "testmode.h"
#include "testmode.h"
#include "wmi-ops.h"


unsigned int ath10k_debug_mask;
unsigned int ath10k_debug_mask;
static bool uart_print;
static bool uart_print;
+2 −0
Original line number Original line Diff line number Diff line
@@ -129,6 +129,7 @@ struct ath10k_wmi {
	struct wmi_cmd_map *cmd;
	struct wmi_cmd_map *cmd;
	struct wmi_vdev_param_map *vdev_param;
	struct wmi_vdev_param_map *vdev_param;
	struct wmi_pdev_param_map *pdev_param;
	struct wmi_pdev_param_map *pdev_param;
	const struct wmi_ops *ops;


	u32 num_mem_chunks;
	u32 num_mem_chunks;
	struct ath10k_mem_chunk mem_chunks[WMI_MAX_MEM_REQS];
	struct ath10k_mem_chunk mem_chunks[WMI_MAX_MEM_REQS];
@@ -618,6 +619,7 @@ struct ath10k {
		/* protected by conf_mutex */
		/* protected by conf_mutex */
		const struct firmware *utf;
		const struct firmware *utf;
		DECLARE_BITMAP(orig_fw_features, ATH10K_FW_FEATURE_COUNT);
		DECLARE_BITMAP(orig_fw_features, ATH10K_FW_FEATURE_COUNT);
		enum ath10k_fw_wmi_op_version orig_wmi_op_version;


		/* protected by data_lock */
		/* protected by data_lock */
		bool utf_monitor;
		bool utf_monitor;
+1 −0
Original line number Original line Diff line number Diff line
@@ -23,6 +23,7 @@
#include "core.h"
#include "core.h"
#include "debug.h"
#include "debug.h"
#include "hif.h"
#include "hif.h"
#include "wmi-ops.h"


/* ms */
/* ms */
#define ATH10K_DEBUG_HTT_STATS_INTERVAL 1000
#define ATH10K_DEBUG_HTT_STATS_INTERVAL 1000
+2 −0
Original line number Original line Diff line number Diff line
@@ -27,6 +27,8 @@
#include "htt.h"
#include "htt.h"
#include "txrx.h"
#include "txrx.h"
#include "testmode.h"
#include "testmode.h"
#include "wmi.h"
#include "wmi-ops.h"


/**********/
/**********/
/* Crypto */
/* Crypto */
+1 −0
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
#include <linux/relay.h>
#include <linux/relay.h>
#include "core.h"
#include "core.h"
#include "debug.h"
#include "debug.h"
#include "wmi-ops.h"


static void send_fft_sample(struct ath10k *ar,
static void send_fft_sample(struct ath10k *ar,
			    const struct fft_sample_tlv *fft_sample_tlv)
			    const struct fft_sample_tlv *fft_sample_tlv)
Loading