blob: bae209b3a7a3bd25756a097f53d74fd60f732780 [file] [log] [blame]
Govind Singhd475ea92016-03-06 19:55:02 +05301/*
2 * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
28/*
Govind Singh3ddda1f2016-03-09 11:34:12 +053029 * This file contains the API definitions for the Unified Wireless
30 * Module Interface (WMI).
Govind Singhd475ea92016-03-06 19:55:02 +053031 */
32#ifndef _WMI_UNIFIED_PRIV_H_
33#define _WMI_UNIFIED_PRIV_H_
34#include <osdep.h>
35#include "a_types.h"
36#include "wmi.h"
37#include "wmi_unified.h"
Govind Singh89727882016-04-15 13:58:27 +053038#include "wmi_unified_param.h"
Govind Singhd7468a52016-03-09 14:32:57 +053039#include "qdf_atomic.h"
Govind Singhd475ea92016-03-06 19:55:02 +053040
41#define WMI_UNIFIED_MAX_EVENT 0x100
42#define WMI_MAX_CMDS 1024
43
Govind Singhd7468a52016-03-09 14:32:57 +053044typedef qdf_nbuf_t wmi_buf_t;
Govind Singhd475ea92016-03-06 19:55:02 +053045
46#ifdef WMI_INTERFACE_EVENT_LOGGING
47
48#define WMI_EVENT_DEBUG_MAX_ENTRY (1024)
Govind Singh5fed03b2016-05-12 12:45:51 +053049#define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16)
50/* wmi_mgmt commands */
51#define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256)
Govind Singhd475ea92016-03-06 19:55:02 +053052
Govind Singh5fed03b2016-05-12 12:45:51 +053053/**
54 * struct wmi_command_debug - WMI command log buffer data type
55 * @ command - Store WMI Command id
56 * @ data - Stores WMI command data
57 * @ time - Time of WMI command handling
58 */
Govind Singhd475ea92016-03-06 19:55:02 +053059struct wmi_command_debug {
60 uint32_t command;
Govind Singh5fed03b2016-05-12 12:45:51 +053061 /*16 bytes of WMI cmd excluding TLV and WMI headers */
62 uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
Govind Singhd475ea92016-03-06 19:55:02 +053063 uint64_t time;
64};
65
Govind Singh5fed03b2016-05-12 12:45:51 +053066/**
67 * struct wmi_event_debug - WMI event log buffer data type
68 * @ command - Store WMI Event id
69 * @ data - Stores WMI Event data
70 * @ time - Time of WMI Event handling
71 */
Govind Singhd475ea92016-03-06 19:55:02 +053072struct wmi_event_debug {
73 uint32_t event;
Govind Singh5fed03b2016-05-12 12:45:51 +053074 /*16 bytes of WMI event data excluding TLV header */
75 uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)];
Govind Singhd475ea92016-03-06 19:55:02 +053076 uint64_t time;
77};
78
Govind Singh5fed03b2016-05-12 12:45:51 +053079/**
Sandeep Puligilla38a294f2016-06-13 15:42:55 -070080 * struct wmi_command_header - Type for accessing frame data
81 * @ type - 802.11 Frame type
82 * @ subType - 802.11 Frame subtype
83 * @ protVer - 802.11 Version
84 */
85struct wmi_command_header {
86#ifndef ANI_LITTLE_BIT_ENDIAN
87
88 uint32_t sub_type:4;
89 uint32_t type:2;
90 uint32_t prot_ver:2;
91
92#else
93
94 uint32_t prot_ver:2;
95 uint32_t type:2;
96 uint32_t sub_type:4;
97
98#endif
99};
100
101/**
Govind Singh5fed03b2016-05-12 12:45:51 +0530102 * struct wmi_log_buf_t - WMI log buffer information type
103 * @buf - Refernce to WMI log buffer
104 * @ length - length of buffer
105 * @ buf_tail_idx - Tail index of buffer
106 * @ p_buf_tail_idx - refernce to buffer tail index. It is added to accommodate
107 * unified design since MCL uses global variable for buffer tail index
108 */
109struct wmi_log_buf_t {
110 void *buf;
111 uint32_t length;
112 uint32_t buf_tail_idx;
113 uint32_t *p_buf_tail_idx;
114};
115
116/**
117 * struct wmi_debug_log_info - Meta data to hold information of all buffers
118 * used for WMI logging
119 * @wmi_command_log_buf_info - Buffer info for WMI Command log
120 * @wmi_command_tx_cmp_log_buf_info - Buffer info for WMI Command Tx completion
121 * log
122 * @wmi_event_log_buf_info - Buffer info for WMI Event log
123 * @wmi_rx_event_log_buf_info - Buffer info for WMI event received log
124 * @wmi_mgmt_command_log_buf_info - Buffer info for WMI Management Command log
125 * @wmi_mgmt_command_tx_cmp_log_buf_info - Buffer info for WMI Management
126 * Command Tx completion log
127 * @wmi_mgmt_event_log_buf_info - Buffer info for WMI Management event log
128 * @wmi_record_lock - Lock WMI recording
129 * @wmi_logging_enable - Enable/Disable state for WMI logging
130 * @buf_offset_command - Offset from where WMI command data should be logged
131 * @buf_offset_event - Offset from where WMI event data should be logged
132 * @is_management_record - Function refernce to check if command/event is
133 * management record
134 * @wmi_id_to_name - Function refernce to API to convert Command id to
135 * string name
136 * @wmi_log_debugfs_dir - refernce to debugfs directory
137 */
138struct wmi_debug_log_info {
139 struct wmi_log_buf_t wmi_command_log_buf_info;
140 struct wmi_log_buf_t wmi_command_tx_cmp_log_buf_info;
141
142 struct wmi_log_buf_t wmi_event_log_buf_info;
143 struct wmi_log_buf_t wmi_rx_event_log_buf_info;
144
145 struct wmi_log_buf_t wmi_mgmt_command_log_buf_info;
146 struct wmi_log_buf_t wmi_mgmt_command_tx_cmp_log_buf_info;
147 struct wmi_log_buf_t wmi_mgmt_event_log_buf_info;
148
149 qdf_spinlock_t wmi_record_lock;
150 bool wmi_logging_enable;
151 uint32_t buf_offset_command;
152 uint32_t buf_offset_event;
153 bool (*is_management_record)(uint32_t cmd_id);
154 uint8_t *(*wmi_id_to_name)(uint32_t cmd_id);
155 struct dentry *wmi_log_debugfs_dir;
156 uint8_t wmi_instance_id;
157};
158
Govind Singhd475ea92016-03-06 19:55:02 +0530159#endif /*WMI_INTERFACE_EVENT_LOGGING */
160
161#ifdef WLAN_OPEN_SOURCE
162struct fwdebug {
163 struct sk_buff_head fwlog_queue;
164 struct completion fwlog_completion;
165 A_BOOL fwlog_open;
166};
167#endif /* WLAN_OPEN_SOURCE */
168
Govind Singh3ddda1f2016-03-09 11:34:12 +0530169struct wmi_ops {
Govind Singhd7468a52016-03-09 14:32:57 +0530170QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530171 uint8_t macaddr[IEEE80211_ADDR_LEN],
172 struct vdev_create_params *param);
173
Govind Singhd7468a52016-03-09 14:32:57 +0530174QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530175 uint8_t if_id);
176
Govind Singhd7468a52016-03-09 14:32:57 +0530177QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530178 uint8_t vdev_id);
179
Govind Singhd7468a52016-03-09 14:32:57 +0530180QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530181 uint8_t vdev_id);
182
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +0530183QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi,
184 struct vdev_start_params *req);
185
186QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle,
187 struct hidden_ssid_vdev_restart_params *restart_params);
188
Govind Singhd7468a52016-03-09 14:32:57 +0530189QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530190 uint8_t peer_addr[IEEE80211_ADDR_LEN],
191 struct peer_flush_params *param);
192
Govind Singhd7468a52016-03-09 14:32:57 +0530193QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530194 uint8_t peer_addr[IEEE80211_ADDR_LEN],
195 uint8_t vdev_id);
196
Govind Singhd7468a52016-03-09 14:32:57 +0530197QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530198 uint8_t peer_addr[IEEE80211_ADDR_LEN],
199 struct peer_set_params *param);
200
Govind Singhd7468a52016-03-09 14:32:57 +0530201QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530202 uint8_t bssid[IEEE80211_ADDR_LEN],
203 struct vdev_up_params *params);
204
Govind Singhd7468a52016-03-09 14:32:57 +0530205QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530206 struct peer_create_params *param);
207
Govind Singhd7468a52016-03-09 14:32:57 +0530208QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530209 uint32_t value, uint8_t mac_id);
210
Govind Singhd7468a52016-03-09 14:32:57 +0530211QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530212(*send_pdev_utf_cmd)(wmi_unified_t wmi_handle,
213 struct pdev_utf_params *param,
214 uint8_t mac_id);
215
Govind Singhd7468a52016-03-09 14:32:57 +0530216QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530217(*send_pdev_param_cmd)(wmi_unified_t wmi_handle,
218 struct pdev_params *param,
219 uint8_t mac_id);
220
Govind Singhd7468a52016-03-09 14:32:57 +0530221QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530222 struct suspend_params *param,
223 uint8_t mac_id);
224
Govind Singhd7468a52016-03-09 14:32:57 +0530225QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530226 uint8_t mac_id);
227
Govind Singhd7468a52016-03-09 14:32:57 +0530228QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530229 struct wow_cmd_params *param,
230 uint8_t mac_id);
231
Govind Singhd7468a52016-03-09 14:32:57 +0530232QDF_STATUS (*send_set_ap_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530233 uint8_t *peer_addr,
234 struct ap_ps_params *param);
235
Govind Singhd7468a52016-03-09 14:32:57 +0530236QDF_STATUS (*send_set_sta_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530237 struct sta_ps_params *param);
238
Govind Singhd7468a52016-03-09 14:32:57 +0530239QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530240 struct crash_inject *param);
241
Govind Singhd7468a52016-03-09 14:32:57 +0530242QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530243(*send_dbglog_cmd)(wmi_unified_t wmi_handle,
244 struct dbglog_params *dbglog_param);
245
Govind Singhd7468a52016-03-09 14:32:57 +0530246QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530247 struct vdev_set_params *param);
248
Govind Singhd7468a52016-03-09 14:32:57 +0530249QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530250 uint8_t macaddr[IEEE80211_ADDR_LEN],
251 struct stats_request_params *param);
252
Govind Singh89727882016-04-15 13:58:27 +0530253#ifdef WMI_NON_TLV_SUPPORT
254QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
255 WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT);
256#else
Govind Singhd7468a52016-03-09 14:32:57 +0530257QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530258 uint8_t macaddr[IEEE80211_ADDR_LEN],
259 struct packet_enable_params *param);
Govind Singh89727882016-04-15 13:58:27 +0530260#endif
261
262QDF_STATUS (*send_packet_log_disable_cmd)(wmi_unified_t wmi_handle);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530263
Govind Singhd7468a52016-03-09 14:32:57 +0530264QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530265 struct beacon_params *param);
266
Govind Singh89727882016-04-15 13:58:27 +0530267QDF_STATUS (*send_beacon_tmpl_send_cmd)(wmi_unified_t wmi_handle,
268 struct beacon_tmpl_params *param);
269
Govind Singhd7468a52016-03-09 14:32:57 +0530270QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530271 struct peer_assoc_params *param);
272
Govind Singhd7468a52016-03-09 14:32:57 +0530273QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530274 struct scan_start_params *param);
275
Govind Singhd7468a52016-03-09 14:32:57 +0530276QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530277 struct scan_stop_params *param);
278
Govind Singhd7468a52016-03-09 14:32:57 +0530279QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530280 struct scan_chan_list_params *param);
Govind Singh50988cc2016-02-26 18:09:36 +0530281
Govind Singhd7468a52016-03-09 14:32:57 +0530282QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530283 struct wmi_mgmt_params *param);
284
Govind Singhd7468a52016-03-09 14:32:57 +0530285QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530286 uint32_t param_value);
287
Govind Singhd7468a52016-03-09 14:32:57 +0530288QDF_STATUS (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530289 uint32_t vdev_id, uint8_t val);
290
Govind Singhd7468a52016-03-09 14:32:57 +0530291QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle);
Govind Singh50988cc2016-02-26 18:09:36 +0530292
Govind Singhd7468a52016-03-09 14:32:57 +0530293QDF_STATUS (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530294 struct p2p_ps_params *oppps);
295
Govind Singhd7468a52016-03-09 14:32:57 +0530296QDF_STATUS (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530297 struct p2p_ps_params *noa);
298
Govind Singhd7468a52016-03-09 14:32:57 +0530299QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530300 uint8_t vdev_id,
301 int value);
Govind Singh50988cc2016-02-26 18:09:36 +0530302
Govind Singhd7468a52016-03-09 14:32:57 +0530303QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530304 uint8_t vdev_id, int value);
305
Govind Singhd7468a52016-03-09 14:32:57 +0530306QDF_STATUS (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530307 struct sta_uapsd_trig_params *param);
Govind Singhe7b800c2016-03-01 15:30:53 +0530308
Govind Singhd7468a52016-03-09 14:32:57 +0530309QDF_STATUS (*send_ocb_set_utc_time_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530310 struct ocb_utc_param *utc);
311
Govind Singhd7468a52016-03-09 14:32:57 +0530312QDF_STATUS (*send_ocb_get_tsf_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530313 uint8_t vdev_id);
314
Govind Singhd7468a52016-03-09 14:32:57 +0530315QDF_STATUS (*send_ocb_start_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530316 struct ocb_timing_advert_param *timing_advert);
317
Govind Singhd7468a52016-03-09 14:32:57 +0530318QDF_STATUS (*send_ocb_stop_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530319 struct ocb_timing_advert_param *timing_advert);
320
Govind Singhd7468a52016-03-09 14:32:57 +0530321QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530322 struct dcc_get_stats_param *get_stats_param);
323
Govind Singhd7468a52016-03-09 14:32:57 +0530324QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530325 uint32_t vdev_id, uint32_t dcc_stats_bitmap);
326
Govind Singhd7468a52016-03-09 14:32:57 +0530327QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530328 struct dcc_update_ndl_param *update_ndl_param);
329
Govind Singhd7468a52016-03-09 14:32:57 +0530330QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530331 struct ocb_config_param *config, uint32_t *ch_mhz);
Govind Singhae855362016-03-07 14:24:22 +0530332
Govind Singhd7468a52016-03-09 14:32:57 +0530333QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530334 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
335
Govind Singhd7468a52016-03-09 14:32:57 +0530336QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530337 struct thermal_cmd_params *thermal_info);
338
Poddar, Siddarth794b9962016-04-28 15:49:11 +0530339QDF_STATUS (*send_peer_rate_report_cmd)(wmi_unified_t wmi_handle,
340 struct wmi_peer_rate_report_params *rate_report_params);
341
Govind Singhd7468a52016-03-09 14:32:57 +0530342QDF_STATUS (*send_set_mcc_channel_time_quota_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530343 (wmi_unified_t wmi_handle,
344 uint32_t adapter_1_chan_freq,
345 uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
346
Govind Singhd7468a52016-03-09 14:32:57 +0530347QDF_STATUS (*send_set_mcc_channel_time_latency_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530348 (wmi_unified_t wmi_handle,
349 uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
350
Govind Singhd7468a52016-03-09 14:32:57 +0530351QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)(
Govind Singh608e8892016-04-16 19:24:23 -0700352 wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler,
353 uint32_t pdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530354
Govind Singhd7468a52016-03-09 14:32:57 +0530355QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530356 A_UINT32 vdev_id, uint8_t *p2p_ie);
357
Govind Singhd7468a52016-03-09 14:32:57 +0530358QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530359 uint8_t vdev_id,
360 struct wmi_probe_resp_params *probe_rsp_info,
361 uint8_t *frm);
362
Himanshu Agarwal9efd9bf2016-03-09 18:49:18 +0530363QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle,
364 struct set_key_params *key_params);
365
Govind Singh89727882016-04-15 13:58:27 +0530366#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530367QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530368 uint8_t vdev_id,
369 wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);
Govind Singh89727882016-04-15 13:58:27 +0530370#endif
Govind Singhae855362016-03-07 14:24:22 +0530371
Govind Singhd7468a52016-03-09 14:32:57 +0530372QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530373 uint32_t if_id,
374 struct wmi_gtx_config *gtx_info);
375
Govind Singhd7468a52016-03-09 14:32:57 +0530376QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530377 struct sta_params *params);
378
Govind Singhd7468a52016-03-09 14:32:57 +0530379QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530380 uint8_t vdev_id, uint32_t max_retries,
381 uint32_t retry_interval);
Govind Singh89727882016-04-15 13:58:27 +0530382#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530383QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530384 wmi_bcn_send_from_host_cmd_fixed_param *param);
Govind Singh89727882016-04-15 13:58:27 +0530385#endif
Govind Singhae855362016-03-07 14:24:22 +0530386
Govind Singhd7468a52016-03-09 14:32:57 +0530387QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530388 struct gateway_update_req_param *req);
389
Govind Singhd7468a52016-03-09 14:32:57 +0530390QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530391 struct rssi_monitor_param *req);
392
Govind Singhd7468a52016-03-09 14:32:57 +0530393QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530394 struct scan_mac_oui *psetoui);
395
Govind Singhd7468a52016-03-09 14:32:57 +0530396QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530397 struct wifi_passpoint_req_param *req);
Govind Singh89727882016-04-15 13:58:27 +0530398#ifndef WMI_NON_TLV_SUPPORT
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530399QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle,
400 wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
401 struct roam_offload_scan_params *roam_req);
Govind Singh89727882016-04-15 13:58:27 +0530402#endif
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530403
404QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle,
405 struct roam_offload_scan_rssi_params *roam_req);
406
407QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle,
408 struct roam_scan_filter_params *roam_req);
409
Govind Singhd7468a52016-03-09 14:32:57 +0530410QDF_STATUS (*send_set_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530411 struct wifi_passpoint_req_param *req);
412
Govind Singhd7468a52016-03-09 14:32:57 +0530413QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530414 struct wifi_enhanched_pno_params *req);
415
Govind Singhd7468a52016-03-09 14:32:57 +0530416QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530417 struct extscan_capabilities_params *pgetcapab);
418
Govind Singhd7468a52016-03-09 14:32:57 +0530419QDF_STATUS (*send_extscan_get_cached_results_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530420 struct extscan_cached_result_params *pcached_results);
421
Govind Singhd7468a52016-03-09 14:32:57 +0530422QDF_STATUS (*send_extscan_stop_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530423 struct extscan_capabilities_reset_params *reset_req);
424
Govind Singhd7468a52016-03-09 14:32:57 +0530425QDF_STATUS (*send_extscan_start_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530426 struct extscan_set_sig_changereq_params *
427 psigchange);
428
Govind Singhd7468a52016-03-09 14:32:57 +0530429QDF_STATUS (*send_extscan_stop_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530430 struct extscan_bssid_hotlist_reset_params *photlist_reset);
431
Govind Singhd7468a52016-03-09 14:32:57 +0530432QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530433 struct extscan_stop_req_params *pstopcmd);
434
Govind Singhd7468a52016-03-09 14:32:57 +0530435QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530436 struct wifi_scan_cmd_req_params *pstart);
437
Govind Singhd7468a52016-03-09 14:32:57 +0530438QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530439 const struct plm_req_params *plm);
440
Govind Singh89727882016-04-15 13:58:27 +0530441
Govind Singhd7468a52016-03-09 14:32:57 +0530442QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530443 const struct plm_req_params *plm,
444 uint32_t *gchannel_list);
445
Govind Singhd7468a52016-03-09 14:32:57 +0530446QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530447 uint8_t vdev_id);
448
Govind Singhd7468a52016-03-09 14:32:57 +0530449QDF_STATUS (*send_pno_stop_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530450
Govind Singh89727882016-04-15 13:58:27 +0530451#ifdef FEATURE_WLAN_SCAN_PNO
Govind Singhd7468a52016-03-09 14:32:57 +0530452QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530453 struct pno_scan_req_params *pno,
454 uint32_t *gchannel_freq_list);
Govind Singh89727882016-04-15 13:58:27 +0530455#endif
Govind Singhae855362016-03-07 14:24:22 +0530456
Govind Singhd7468a52016-03-09 14:32:57 +0530457QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530458 struct ipa_offload_control_params *ipa_offload);
459
Govind Singhd7468a52016-03-09 14:32:57 +0530460QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg,
Govind Singhae855362016-03-07 14:24:22 +0530461 uint8_t is_add_ts);
462
Govind Singhd7468a52016-03-09 14:32:57 +0530463QDF_STATUS (*send_process_ll_stats_clear_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530464 (wmi_unified_t wmi_handle,
465 const struct ll_stats_clear_params *clear_req,
466 uint8_t addr[IEEE80211_ADDR_LEN]);
467
Govind Singhd7468a52016-03-09 14:32:57 +0530468QDF_STATUS (*send_process_ll_stats_set_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530469 (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req);
470
Govind Singhd7468a52016-03-09 14:32:57 +0530471QDF_STATUS (*send_process_ll_stats_get_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530472 (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req,
473 uint8_t addr[IEEE80211_ADDR_LEN]);
474
Govind Singhd7468a52016-03-09 14:32:57 +0530475QDF_STATUS (*send_get_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530476 struct pe_stats_req *get_stats_param,
477 uint8_t addr[IEEE80211_ADDR_LEN]);
Govind Singh229bc0d2016-03-07 15:33:31 +0530478
Govind Singhd7468a52016-03-09 14:32:57 +0530479QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530480
Govind Singhd7468a52016-03-09 14:32:57 +0530481QDF_STATUS (*send_snr_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530482
Govind Singhd7468a52016-03-09 14:32:57 +0530483QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530484 struct link_status_params *link_status);
Govind Singh89727882016-04-15 13:58:27 +0530485#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530486QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530487 wmi_hb_set_enable_cmd_fixed_param *params);
488
Govind Singhd7468a52016-03-09 14:32:57 +0530489QDF_STATUS (*send_lphb_config_tcp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530490 wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
491
Govind Singhd7468a52016-03-09 14:32:57 +0530492QDF_STATUS (*send_lphb_config_tcp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530493 wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
494
Govind Singhd7468a52016-03-09 14:32:57 +0530495QDF_STATUS (*send_lphb_config_udp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530496 wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
497
Govind Singhd7468a52016-03-09 14:32:57 +0530498QDF_STATUS (*send_lphb_config_udp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530499 wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
500
Govind Singhd7468a52016-03-09 14:32:57 +0530501QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530502 wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
503
Govind Singhd7468a52016-03-09 14:32:57 +0530504QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530505 wmi_mac_addr peer_macaddr);
506
Govind Singhd7468a52016-03-09 14:32:57 +0530507QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530508 wmi_ap_ps_egap_param_cmd_fixed_param *egap_params);
Govind Singh89727882016-04-15 13:58:27 +0530509#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530510
Govind Singhd7468a52016-03-09 14:32:57 +0530511QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530512 uint32_t cmd, uint32_t value1, uint32_t value2);
513
Govind Singhd7468a52016-03-09 14:32:57 +0530514QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530515 uint8_t vdev_id, uint8_t default_pattern,
516 uint16_t rate_limit_interval);
517
Govind Singhd7468a52016-03-09 14:32:57 +0530518QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530519
Govind Singhd7468a52016-03-09 14:32:57 +0530520QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle,
Krishna Kumaar Natarajan7a59ca02016-07-21 15:02:44 -0700521 uint32_t data_len,
Govind Singh229bc0d2016-03-07 15:33:31 +0530522 uint8_t *data);
523
Govind Singhd7468a52016-03-09 14:32:57 +0530524QDF_STATUS
Govind Singh229bc0d2016-03-07 15:33:31 +0530525(*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle,
526 bool dfs_phyerr_filter_offload);
Govind Singh89727882016-04-15 13:58:27 +0530527#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530528QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530529 WMI_PKTLOG_EVENT pktlog_event,
530 WMI_CMD_ID cmd_id);
Govind Singh89727882016-04-15 13:58:27 +0530531#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530532
Govind Singhd7468a52016-03-09 14:32:57 +0530533QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530534 uint32_t vdev_id,
535 uint32_t bitmap,
536 bool enable);
537
Govind Singhd7468a52016-03-09 14:32:57 +0530538QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530539 uint8_t vdev_id, uint8_t ptrn_id,
540 const uint8_t *ptrn, uint8_t ptrn_len,
541 uint8_t ptrn_offset, const uint8_t *mask,
542 uint8_t mask_len, bool user,
543 uint8_t default_patterns);
544
Govind Singhd7468a52016-03-09 14:32:57 +0530545QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle, uint8_t ptrn_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530546 uint8_t vdev_id);
547
Govind Singhd7468a52016-03-09 14:32:57 +0530548QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530549
Govind Singhd7468a52016-03-09 14:32:57 +0530550QDF_STATUS (*send_del_ts_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530551 uint8_t ac);
552
Govind Singhd7468a52016-03-09 14:32:57 +0530553QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530554 struct aggr_add_ts_param *aggr_qos_rsp_msg);
555
Govind Singhd7468a52016-03-09 14:32:57 +0530556QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530557 struct add_ts_param *msg);
558
Govind Singhd7468a52016-03-09 14:32:57 +0530559QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530560 uint8_t vdev_id, bool enable);
561
Govind Singhd7468a52016-03-09 14:32:57 +0530562QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530563 uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param,
564 uint8_t filter_id, bool enable);
565
Govind Singhd7468a52016-03-09 14:32:57 +0530566QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530567 uint8_t vdev_id,
Govind Singhd7468a52016-03-09 14:32:57 +0530568 struct qdf_mac_addr multicast_addr,
Govind Singh229bc0d2016-03-07 15:33:31 +0530569 bool clearList);
570
Govind Singhd7468a52016-03-09 14:32:57 +0530571QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530572 struct gtk_offload_params *params,
573 bool enable_offload,
574 uint32_t gtk_offload_opcode);
575
Govind Singhd7468a52016-03-09 14:32:57 +0530576QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530577 uint8_t vdev_id,
578 uint64_t offload_req_opcode);
579
Govind Singhd7468a52016-03-09 14:32:57 +0530580QDF_STATUS (*send_process_add_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530581 struct periodic_tx_pattern *
582 pAddPeriodicTxPtrnParams,
583 uint8_t vdev_id);
584
Govind Singhd7468a52016-03-09 14:32:57 +0530585QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530586 uint8_t vdev_id,
587 uint8_t pattern_id);
588
Govind Singhd7468a52016-03-09 14:32:57 +0530589QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530590 struct stats_ext_params *preq);
591
Govind Singhd7468a52016-03-09 14:32:57 +0530592QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530593 struct ext_wow_params *params);
594
Govind Singhd7468a52016-03-09 14:32:57 +0530595QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530596 struct app_type2_params *appType2Params);
597
Govind Singhd7468a52016-03-09 14:32:57 +0530598QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530599 uint32_t timer_val);
600
Govind Singhd7468a52016-03-09 14:32:57 +0530601QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530602 struct nan_req_params *nan_req);
603
Govind Singhd7468a52016-03-09 14:32:57 +0530604QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530605 struct dhcp_offload_info_params *pDhcpSrvOffloadInfo);
606
Govind Singhd7468a52016-03-09 14:32:57 +0530607QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530608
Govind Singhd7468a52016-03-09 14:32:57 +0530609QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530610 uint32_t reg_dmn, uint16_t regdmn2G,
611 uint16_t regdmn5G, int8_t ctl2G,
612 int8_t ctl5G);
613
Govind Singhd7468a52016-03-09 14:32:57 +0530614QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530615 struct tdls_channel_switch_params *chan_switch_params);
616
Govind Singhd7468a52016-03-09 14:32:57 +0530617QDF_STATUS (*send_update_fw_tdls_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530618 void *tdls_param, uint8_t tdls_state);
619
Govind Singhd7468a52016-03-09 14:32:57 +0530620QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530621 struct tdls_peer_state_params *peerStateParams,
622 uint32_t *ch_mhz);
623
624
Govind Singhd7468a52016-03-09 14:32:57 +0530625QDF_STATUS (*send_process_fw_mem_dump_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530626 struct fw_dump_req_param *mem_dump_req);
627
Govind Singhd7468a52016-03-09 14:32:57 +0530628QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530629 struct vdev_ie_info_param *ie_info);
Govind Singh71ee2d72016-03-07 16:30:32 +0530630
Govind Singhd7468a52016-03-09 14:32:57 +0530631QDF_STATUS (*send_init_cmd)(wmi_unified_t wmi_handle,
Govind Singh71ee2d72016-03-07 16:30:32 +0530632 wmi_resource_config *res_cfg,
633 uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk,
634 bool action);
635
Govind Singhd7468a52016-03-09 14:32:57 +0530636QDF_STATUS (*save_fw_version_cmd)(wmi_unified_t wmi_handle, void *evt_buf);
Govind Singh71ee2d72016-03-07 16:30:32 +0530637
Govind Singhd7468a52016-03-09 14:32:57 +0530638QDF_STATUS (*check_and_update_fw_version_cmd)(wmi_unified_t wmi_hdl, void *ev);
Govind Singh71ee2d72016-03-07 16:30:32 +0530639
Govind Singhd7468a52016-03-09 14:32:57 +0530640QDF_STATUS (*send_saved_init_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530641
Govind Singhd7468a52016-03-09 14:32:57 +0530642QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530643 uint8_t *custom_addr);
644
Govind Singhd7468a52016-03-09 14:32:57 +0530645QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530646 uint8_t *event,
647 uint32_t len);
648
Govind Singhd7468a52016-03-09 14:32:57 +0530649QDF_STATUS (*send_enable_specific_fw_logs_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530650 struct wmi_wifi_start_log *start_log);
651
Govind Singhd7468a52016-03-09 14:32:57 +0530652QDF_STATUS (*send_flush_logs_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530653
Manishekar Chandrasekaranb8c59382016-04-21 19:16:32 +0530654QDF_STATUS (*send_pdev_set_pcl_cmd)(wmi_unified_t wmi_handle,
655 struct wmi_pcl_chan_weights *msg);
Govind Singh2ae94372016-03-07 16:45:38 +0530656
Manishekar Chandrasekaran68430d32016-04-27 12:29:16 +0530657QDF_STATUS (*send_pdev_set_hw_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530658 uint32_t hw_mode_index);
659
Manishekar Chandrasekaran81d7aaa2016-04-27 12:52:51 +0530660QDF_STATUS (*send_pdev_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530661 struct wmi_dual_mac_config *msg);
662
Govind Singhd7468a52016-03-09 14:32:57 +0530663QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530664 struct host_offload_req_param *param, bool arp_only,
665 uint8_t vdev_id);
666
Govind Singhd7468a52016-03-09 14:32:57 +0530667QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530668 struct flashing_req_params *flashing);
669
Govind Singhd7468a52016-03-09 14:32:57 +0530670QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530671 struct app_type1_params *app_type1_params);
672
Govind Singhd7468a52016-03-09 14:32:57 +0530673QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530674 struct ssid_hotlist_request_params *request);
675
Govind Singhd7468a52016-03-09 14:32:57 +0530676QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530677 uint8_t vdev_id);
678
Govind Singhd7468a52016-03-09 14:32:57 +0530679QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530680 struct wmi_unit_test_cmd *wmi_utest);
681
Govind Singhd7468a52016-03-09 14:32:57 +0530682QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530683 struct wmi_roam_invoke_cmd *roaminvoke,
684 uint32_t ch_hz);
685
Govind Singhd7468a52016-03-09 14:32:57 +0530686QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530687 uint32_t command, uint32_t vdev_id);
Govind Singh89727882016-04-15 13:58:27 +0530688#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530689QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530690 wmi_ap_profile *ap_profile_p,
691 uint32_t vdev_id);
Govind Singh89727882016-04-15 13:58:27 +0530692#endif
Govind Singh2ae94372016-03-07 16:45:38 +0530693
Govind Singhd7468a52016-03-09 14:32:57 +0530694QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530695 uint32_t scan_period,
696 uint32_t scan_age,
697 uint32_t vdev_id);
698
Govind Singhd7468a52016-03-09 14:32:57 +0530699QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530700 uint8_t chan_count,
Varun Reddy Yeturub47fa402016-07-07 17:42:49 -0700701 uint32_t *chan_list,
Govind Singh2ae94372016-03-07 16:45:38 +0530702 uint8_t list_type, uint32_t vdev_id);
703
Govind Singhd7468a52016-03-09 14:32:57 +0530704QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530705 uint32_t vdev_id,
706 int32_t rssi_change_thresh,
707 uint32_t bcn_rssi_weight,
708 uint32_t hirssi_delay_btw_scans);
709
Govind Singhd7468a52016-03-09 14:32:57 +0530710QDF_STATUS (*send_get_buf_extscan_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530711 struct ext_scan_setbssi_hotlist_params *
712 photlist, int *buf_len);
Govind Singh89727882016-04-15 13:58:27 +0530713
714QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle,
715 uint32_t param);
716
717QDF_STATUS (*send_set_atf_cmd)(wmi_unified_t wmi_handle,
718 struct set_atf_params *param);
719
720QDF_STATUS (*send_pdev_fips_cmd)(wmi_unified_t wmi_handle,
721 struct fips_params *param);
722
723QDF_STATUS (*send_wlan_profile_enable_cmd)(wmi_unified_t wmi_handle,
724 struct wlan_profile_params *param);
725
726QDF_STATUS (*send_wlan_profile_trigger_cmd)(wmi_unified_t wmi_handle,
727 struct wlan_profile_params *param);
728
729QDF_STATUS (*send_pdev_set_chan_cmd)(wmi_unified_t wmi_handle,
730 struct channel_param *param);
731
732QDF_STATUS (*send_set_ht_ie_cmd)(wmi_unified_t wmi_handle,
733 struct ht_ie_params *param);
734
735QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle,
736 struct vht_ie_params *param);
737
738QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle,
739 struct wmm_update_params *param);
740
741QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle,
742 struct ant_switch_tbl_params *param);
743
744QDF_STATUS (*send_set_ratepwr_table_cmd)(wmi_unified_t wmi_handle,
745 struct ratepwr_table_params *param);
746
747QDF_STATUS (*send_get_ratepwr_table_cmd)(wmi_unified_t wmi_handle);
748
749QDF_STATUS (*send_set_ctl_table_cmd)(wmi_unified_t wmi_handle,
750 struct ctl_table_params *param);
751
752QDF_STATUS (*send_set_mimogain_table_cmd)(wmi_unified_t wmi_handle,
753 struct mimogain_table_params *param);
754
755QDF_STATUS (*send_set_ratepwr_chainmsk_cmd)(wmi_unified_t wmi_handle,
756 struct ratepwr_chainmsk_params *param);
757
758QDF_STATUS (*send_set_macaddr_cmd)(wmi_unified_t wmi_handle,
759 struct macaddr_params *param);
760
761QDF_STATUS (*send_pdev_scan_start_cmd)(wmi_unified_t wmi_handle);
762
763QDF_STATUS (*send_pdev_scan_end_cmd)(wmi_unified_t wmi_handle);
764
765QDF_STATUS (*send_set_acparams_cmd)(wmi_unified_t wmi_handle,
766 struct acparams_params *param);
767
768QDF_STATUS (*send_set_vap_dscp_tid_map_cmd)(wmi_unified_t wmi_handle,
769 struct vap_dscp_tid_map_params *param);
770
771QDF_STATUS (*send_proxy_ast_reserve_cmd)(wmi_unified_t wmi_handle,
772 struct proxy_ast_reserve_params *param);
773
774QDF_STATUS (*send_pdev_qvit_cmd)(wmi_unified_t wmi_handle,
775 struct pdev_qvit_params *param);
776
777QDF_STATUS (*send_mcast_group_update_cmd)(wmi_unified_t wmi_handle,
778 struct mcast_group_update_params *param);
779
780QDF_STATUS (*send_peer_add_wds_entry_cmd)(wmi_unified_t wmi_handle,
781 struct peer_add_wds_entry_params *param);
782
783QDF_STATUS (*send_peer_del_wds_entry_cmd)(wmi_unified_t wmi_handle,
784 struct peer_del_wds_entry_params *param);
785
786QDF_STATUS (*send_peer_update_wds_entry_cmd)(wmi_unified_t wmi_handle,
787 struct peer_update_wds_entry_params *param);
788
789QDF_STATUS (*send_phyerr_enable_cmd)(wmi_unified_t wmi_handle);
790
791QDF_STATUS (*send_phyerr_disable_cmd)(wmi_unified_t wmi_handle);
792
793QDF_STATUS (*send_smart_ant_enable_cmd)(wmi_unified_t wmi_handle,
794 struct smart_ant_enable_params *param);
795
796QDF_STATUS (*send_smart_ant_set_rx_ant_cmd)(wmi_unified_t wmi_handle,
797 struct smart_ant_rx_ant_params *param);
798
799QDF_STATUS (*send_smart_ant_set_tx_ant_cmd)(wmi_unified_t wmi_handle,
800 uint8_t macaddr[IEEE80211_ADDR_LEN],
801 struct smart_ant_tx_ant_params *param);
802
803QDF_STATUS (*send_smart_ant_set_training_info_cmd)(wmi_unified_t wmi_handle,
804 uint8_t macaddr[IEEE80211_ADDR_LEN],
805 struct smart_ant_training_info_params *param);
806
807QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle,
808 uint8_t macaddr[IEEE80211_ADDR_LEN],
809 struct smart_ant_node_config_params *param);
810
811QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle,
812 struct smart_ant_enable_tx_feedback_params *param);
813
814QDF_STATUS (*send_vdev_spectral_configure_cmd)(wmi_unified_t wmi_handle,
815 struct vdev_spectral_configure_params *param);
816
817QDF_STATUS (*send_vdev_spectral_enable_cmd)(wmi_unified_t wmi_handle,
818 struct vdev_spectral_enable_params *param);
819
820QDF_STATUS (*send_bss_chan_info_request_cmd)(wmi_unified_t wmi_handle,
821 struct bss_chan_info_request_params *param);
822
823QDF_STATUS (*send_thermal_mitigation_param_cmd)(wmi_unified_t wmi_handle,
824 struct thermal_mitigation_params *param);
825
826QDF_STATUS (*send_vdev_set_neighbour_rx_cmd)(wmi_unified_t wmi_handle,
827 uint8_t macaddr[IEEE80211_ADDR_LEN],
828 struct set_neighbour_rx_params *param);
829
830QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle,
831 struct set_fwtest_params *param);
832
833QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle,
834 struct config_ratemask_params *param);
835
836QDF_STATUS (*send_vdev_install_key_cmd)(wmi_unified_t wmi_handle,
837 uint8_t macaddr[IEEE80211_ADDR_LEN],
838 struct vdev_install_key_params *param);
839
840QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle);
841
842QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle,
843 struct wow_add_wakeup_params *param);
844
845QDF_STATUS (*send_wow_add_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
846 struct wow_add_wakeup_pattern_params *param);
847
848QDF_STATUS (*send_wow_remove_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
849 struct wow_remove_wakeup_pattern_params *param);
850
851QDF_STATUS (*send_pdev_set_regdomain_cmd)(wmi_unified_t wmi_handle,
852 struct pdev_set_regdomain_params *param);
853
854QDF_STATUS (*send_set_quiet_mode_cmd)(wmi_unified_t wmi_handle,
855 struct set_quiet_mode_params *param);
856
857QDF_STATUS (*send_set_beacon_filter_cmd)(wmi_unified_t wmi_handle,
858 struct set_beacon_filter_params *param);
859
860QDF_STATUS (*send_remove_beacon_filter_cmd)(wmi_unified_t wmi_handle,
861 struct remove_beacon_filter_params *param);
862/*
863QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
864 uint8_t macaddr[IEEE80211_ADDR_LEN],
865 struct mgmt_params *param);
866 */
867
868QDF_STATUS (*send_addba_clearresponse_cmd)(wmi_unified_t wmi_handle,
869 uint8_t macaddr[IEEE80211_ADDR_LEN],
870 struct addba_clearresponse_params *param);
871
872QDF_STATUS (*send_addba_send_cmd)(wmi_unified_t wmi_handle,
873 uint8_t macaddr[IEEE80211_ADDR_LEN],
874 struct addba_send_params *param);
875
876QDF_STATUS (*send_delba_send_cmd)(wmi_unified_t wmi_handle,
877 uint8_t macaddr[IEEE80211_ADDR_LEN],
878 struct delba_send_params *param);
879
880QDF_STATUS (*send_addba_setresponse_cmd)(wmi_unified_t wmi_handle,
881 uint8_t macaddr[IEEE80211_ADDR_LEN],
882 struct addba_setresponse_params *param);
883
884QDF_STATUS (*send_singleamsdu_cmd)(wmi_unified_t wmi_handle,
885 uint8_t macaddr[IEEE80211_ADDR_LEN],
886 struct singleamsdu_params *param);
887
888QDF_STATUS (*send_set_qboost_param_cmd)(wmi_unified_t wmi_handle,
889 uint8_t macaddr[IEEE80211_ADDR_LEN],
890 struct set_qboost_params *param);
891
892QDF_STATUS (*send_mu_scan_cmd)(wmi_unified_t wmi_handle,
893 struct mu_scan_params *param);
894
895QDF_STATUS (*send_lteu_config_cmd)(wmi_unified_t wmi_handle,
896 struct lteu_config_params *param);
897
898QDF_STATUS (*send_set_ps_mode_cmd)(wmi_unified_t wmi_handle,
899 struct set_ps_mode_params *param);
900void (*save_service_bitmap)(wmi_unified_t wmi_handle,
901 void *evt_buf);
902bool (*is_service_enabled)(wmi_unified_t wmi_handle,
903 uint32_t service_id);
904QDF_STATUS (*get_target_cap_from_service_ready)(wmi_unified_t wmi_handle,
905 void *evt_buf, target_capability_info *ev);
906
907QDF_STATUS (*extract_fw_version)(wmi_unified_t wmi_handle,
908 void *ev, struct wmi_host_fw_ver *fw_ver);
909
910QDF_STATUS (*extract_fw_abi_version)(wmi_unified_t wmi_handle,
911 void *ev, struct wmi_host_fw_abi_ver *fw_ver);
912
913QDF_STATUS (*extract_hal_reg_cap)(wmi_unified_t wmi_handle, void *evt_buf,
914 TARGET_HAL_REG_CAPABILITIES *hal_reg_cap);
915
916host_mem_req * (*extract_host_mem_req)(wmi_unified_t wmi_handle,
917 void *evt_buf, uint8_t *num_entries);
918
919QDF_STATUS (*init_cmd_send)(wmi_unified_t wmi_handle,
920 target_resource_config *res_cfg,
921 uint8_t num_mem_chunks,
922 struct wmi_host_mem_chunk *mem_chunk);
923
924QDF_STATUS (*save_fw_version)(wmi_unified_t wmi_handle, void *evt_buf);
925uint32_t (*ready_extract_init_status)(wmi_unified_t wmi_hdl, void *ev);
926QDF_STATUS (*ready_extract_mac_addr)(wmi_unified_t wmi_hdl, void *ev,
927 uint8_t *macaddr);
928QDF_STATUS (*check_and_update_fw_version)(wmi_unified_t wmi_hdl, void *ev);
929uint8_t* (*extract_dbglog_data_len)(wmi_unified_t wmi_handle, void *evt_buf,
930 uint16_t *len);
931QDF_STATUS (*send_ext_resource_config)(wmi_unified_t wmi_handle,
932 wmi_host_ext_resource_config *ext_cfg);
933
934QDF_STATUS (*send_nf_dbr_dbm_info_get_cmd)(wmi_unified_t wmi_handle);
935
936QDF_STATUS (*send_packet_power_info_get_cmd)(wmi_unified_t wmi_handle,
937 struct packet_power_info_params *param);
938
939QDF_STATUS (*send_gpio_config_cmd)(wmi_unified_t wmi_handle,
940 struct gpio_config_params *param);
941
942QDF_STATUS (*send_gpio_output_cmd)(wmi_unified_t wmi_handle,
943 struct gpio_output_params *param);
944
945QDF_STATUS (*send_rtt_meas_req_test_cmd)(wmi_unified_t wmi_handle,
946 struct rtt_meas_req_test_params *param);
947
948QDF_STATUS (*send_rtt_meas_req_cmd)(wmi_unified_t wmi_handle,
949 struct rtt_meas_req_params *param);
950
951QDF_STATUS (*send_rtt_keepalive_req_cmd)(wmi_unified_t wmi_handle,
952 struct rtt_keepalive_req_params *param);
953
954QDF_STATUS (*send_lci_set_cmd)(wmi_unified_t wmi_handle,
955 struct lci_set_params *param);
956
957QDF_STATUS (*send_lcr_set_cmd)(wmi_unified_t wmi_handle,
958 struct lcr_set_params *param);
959
960QDF_STATUS (*send_periodic_chan_stats_config_cmd)(wmi_unified_t wmi_handle,
961 struct periodic_chan_stats_params *param);
962
963QDF_STATUS
964(*send_atf_peer_request_cmd)(wmi_unified_t wmi_handle,
965 struct atf_peer_request_params *param);
966
967QDF_STATUS
968(*send_set_atf_grouping_cmd)(wmi_unified_t wmi_handle,
969 struct atf_grouping_params *param);
970
971QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
972 void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
973
974QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle,
975 void *evt_buf, uint32_t *interference_type);
976
977QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf,
978 wmi_host_ath_dcs_cw_int *cw_int);
979
980QDF_STATUS (*extract_dcs_im_tgt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
981 wmi_host_dcs_im_tgt_stats_t *wlan_stat);
982
983QDF_STATUS (*extract_fips_event_error_status)(wmi_unified_t wmi_handle,
984 void *evt_buf, uint32_t *err_status);
985
986QDF_STATUS (*extract_fips_event_data)(wmi_unified_t wmi_handle,
987 void *evt_buf, uint32_t *data_len, uint32_t **data);
988QDF_STATUS (*extract_vdev_start_resp)(wmi_unified_t wmi_handle, void *evt_buf,
989 wmi_host_vdev_start_resp *vdev_rsp);
990
991QDF_STATUS (*extract_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
992 uint32_t *vdev_map, uint32_t **tbttoffset_list);
993
994QDF_STATUS (*extract_mgmt_rx_params)(wmi_unified_t wmi_handle, void *evt_buf,
995 wmi_host_mgmt_rx_hdr *hdr, uint8_t **bufp);
996
997QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle,
998 void *evt_buf, uint32_t *vdev_id);
999
1000QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf,
1001 wmi_host_roam_event *param);
1002
1003QDF_STATUS (*extract_vdev_scan_ev_param)(wmi_unified_t wmi_handle,
1004 void *evt_buf, wmi_host_scan_event *param);
1005
1006QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
1007 wmi_host_mu_report_event *param);
1008
1009QDF_STATUS (*extract_pdev_tpc_config_ev_param)(wmi_unified_t wmi_handle,
1010 void *evt_buf, wmi_host_pdev_tpc_config_event *param);
1011
1012QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle,
1013 void *evt_buf, uint32_t *gpio_num);
1014
1015QDF_STATUS (*extract_pdev_reserve_ast_ev_param)(wmi_unified_t wmi_handle,
1016 void *evt_buf, uint32_t *result);
1017
1018QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle,
1019 void *evt_buf,
1020 wmi_host_pdev_nfcal_power_all_channels_event *param);
1021
1022QDF_STATUS (*extract_pdev_tpc_ev_param)(wmi_unified_t wmi_handle,
1023 void *evt_buf, wmi_host_pdev_tpc_event *param);
1024
1025QDF_STATUS (*extract_pdev_generic_buffer_ev_param)(wmi_unified_t wmi_handle,
1026 void *evt_buf, wmi_host_pdev_generic_buffer_event *param);
1027
1028QDF_STATUS (*extract_mgmt_tx_compl_param)(wmi_unified_t wmi_handle,
1029 void *evt_buf, wmi_host_mgmt_tx_compl_event *param);
1030
1031QDF_STATUS (*extract_swba_vdev_map)(wmi_unified_t wmi_handle, void *evt_buf,
1032 uint32_t *vdev_map);
1033
1034QDF_STATUS (*extract_swba_tim_info)(wmi_unified_t wmi_handle, void *evt_buf,
1035 uint32_t idx, wmi_host_tim_info *tim_info);
1036
1037QDF_STATUS (*extract_swba_noa_info)(wmi_unified_t wmi_handle, void *evt_buf,
1038 uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
1039
1040QDF_STATUS (*extract_peer_sta_ps_statechange_ev)(wmi_unified_t wmi_handle,
1041 void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
1042
1043QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle,
1044 void *evt_buf, wmi_host_peer_sta_kickout_event *ev);
1045
1046QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle,
1047 void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
1048
1049QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1050 uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
1051
1052QDF_STATUS (*extract_single_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1053 uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
1054
1055QDF_STATUS (*extract_composite_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
1056 uint16_t datalen, wmi_host_phyerr_t *phyerr);
1057
1058QDF_STATUS (*extract_rtt_hdr)(wmi_unified_t wmi_handle, void *evt_buf,
1059 wmi_host_rtt_event_hdr *ev);
1060
1061QDF_STATUS (*extract_rtt_ev)(wmi_unified_t wmi_handle, void *evt_buf,
1062 wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len);
1063
1064QDF_STATUS (*extract_rtt_error_report_ev)(wmi_unified_t wmi_handle,
1065 void *evt_buf, wmi_host_rtt_error_report_event *ev);
1066
1067QDF_STATUS (*extract_all_stats_count)(wmi_unified_t wmi_handle, void *evt_buf,
1068 wmi_host_stats_event *stats_param);
1069
1070QDF_STATUS (*extract_pdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1071 uint32_t index, wmi_host_pdev_stats *pdev_stats);
1072
1073QDF_STATUS (*extract_pdev_ext_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1074 uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats);
1075
1076QDF_STATUS (*extract_vdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1077 uint32_t index, wmi_host_vdev_stats *vdev_stats);
1078
1079QDF_STATUS (*extract_peer_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1080 uint32_t index, wmi_host_peer_stats *peer_stats);
1081
1082QDF_STATUS (*extract_bcnflt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1083 uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
1084
1085QDF_STATUS (*extract_peer_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1086 uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats);
1087
1088QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1089 uint32_t index, wmi_host_chan_stats *chan_stats);
1090
1091QDF_STATUS (*extract_thermal_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1092 uint32_t *temp, uint32_t *level);
1093
1094QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle,
1095 void *evt_buf, uint8_t idx, uint32_t *levelcount,
1096 uint32_t *dccount);
1097
1098QDF_STATUS (*extract_profile_ctx)(wmi_unified_t wmi_handle, void *evt_buf,
1099 wmi_host_wlan_profile_ctx_t *profile_ctx);
1100
1101QDF_STATUS (*extract_profile_data)(wmi_unified_t wmi_handle, void *evt_buf,
Govind Singh41da3152016-05-06 20:20:25 +05301102 uint8_t idx,
1103 wmi_host_wlan_profile_t *profile_data);
Govind Singh89727882016-04-15 13:58:27 +05301104
1105QDF_STATUS (*extract_chan_info_event)(wmi_unified_t wmi_handle, void *evt_buf,
1106 wmi_host_chan_info_event *chan_info);
1107
1108QDF_STATUS (*extract_channel_hopping_event)(wmi_unified_t wmi_handle,
1109 void *evt_buf,
1110 wmi_host_pdev_channel_hopping_event *ch_hopping);
1111
1112QDF_STATUS (*extract_bss_chan_info_event)(wmi_unified_t wmi_handle,
1113 void *evt_buf,
1114 wmi_host_pdev_bss_chan_info_event *bss_chan_info);
1115
1116QDF_STATUS (*extract_inst_rssi_stats_event)(wmi_unified_t wmi_handle,
1117 void *evt_buf, wmi_host_inst_stats_resp *inst_rssi_resp);
1118
1119QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle,
1120 void *evt_buf, wmi_host_tx_data_traffic_ctrl_event *ev);
1121
1122QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1123 uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
Govind Singhc10bde82016-05-02 17:59:24 +05301124
1125QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle,
1126 struct wmi_power_dbg_params *param);
Gupta, Kapil7b768002016-04-25 19:14:19 +05301127
1128QDF_STATUS (*send_adapt_dwelltime_params_cmd)(wmi_unified_t wmi_handle,
1129 struct wmi_adaptive_dwelltime_params *dwelltime_params);
Govind Singh89727882016-04-15 13:58:27 +05301130};
1131
1132struct target_abi_version {
1133 A_UINT32 abi_version_0;
1134 /** WMI Major and Minor versions */
1135 A_UINT32 abi_version_1;
1136 /** WMI change revision */
1137 A_UINT32 abi_version_ns_0;
1138 /** ABI version namespace first four dwords */
1139 A_UINT32 abi_version_ns_1;
1140 /** ABI version namespace second four dwords */
1141 A_UINT32 abi_version_ns_2;
1142 /** ABI version namespace third four dwords */
1143 A_UINT32 abi_version_ns_3;
1144 /** ABI version namespace fourth four dwords */
Govind Singh2ae94372016-03-07 16:45:38 +05301145};
1146
Govind Singh229bc0d2016-03-07 15:33:31 +05301147/**
1148 * struct wmi_init_cmd - Saved wmi INIT command
1149 * @buf: Buffer containing the wmi INIT command
1150 * @buf_len: Length of the buffer
1151 */
Govind Singhec0bdef2016-03-16 16:27:50 +05301152struct wmi_cmd_init {
Govind Singh229bc0d2016-03-07 15:33:31 +05301153 wmi_buf_t buf;
1154 uint32_t buf_len;
Govind Singh3ddda1f2016-03-09 11:34:12 +05301155};
1156
Govind Singhd475ea92016-03-06 19:55:02 +05301157struct wmi_unified {
Govind Singh89727882016-04-15 13:58:27 +05301158 void *scn_handle; /* handle to device */
Govind Singh6ad6ada2016-02-04 18:42:30 +05301159 osdev_t osdev; /* handle to use OS-independent services */
Govind Singhd7468a52016-03-09 14:32:57 +05301160 qdf_atomic_t pending_cmds;
Govind Singhd475ea92016-03-06 19:55:02 +05301161 HTC_ENDPOINT_ID wmi_endpoint_id;
1162 uint16_t max_msg_len;
1163 WMI_EVT_ID event_id[WMI_UNIFIED_MAX_EVENT];
1164 wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT];
Govind Singh4ec6ff92016-03-09 12:03:29 +05301165 enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT];
Govind Singhd475ea92016-03-06 19:55:02 +05301166 uint32_t max_event_idx;
1167 void *htc_handle;
Govind Singhd7468a52016-03-09 14:32:57 +05301168 qdf_spinlock_t eventq_lock;
1169 qdf_nbuf_queue_t event_queue;
Govind Singhd475ea92016-03-06 19:55:02 +05301170 struct work_struct rx_event_work;
Govind Singh6ad6ada2016-02-04 18:42:30 +05301171 int wmi_stop_in_progress;
Govind Singh89727882016-04-15 13:58:27 +05301172#ifndef WMI_NON_TLV_SUPPORT
Govind Singh229bc0d2016-03-07 15:33:31 +05301173 struct _wmi_abi_version fw_abi_version;
1174 struct _wmi_abi_version final_abi_vers;
Govind Singh89727882016-04-15 13:58:27 +05301175#endif
Govind Singhec0bdef2016-03-16 16:27:50 +05301176 struct wmi_cmd_init saved_wmi_init_cmd;
Govind Singh229bc0d2016-03-07 15:33:31 +05301177 uint32_t num_of_diag_events_logs;
1178 uint32_t *events_logs_list;
1179 struct host_offload_req_param arp_info;
Govind Singhd475ea92016-03-06 19:55:02 +05301180#ifdef WLAN_OPEN_SOURCE
1181 struct fwdebug dbglog;
1182 struct dentry *debugfs_phy;
1183#endif /* WLAN_OPEN_SOURCE */
1184
1185#ifdef WMI_INTERFACE_EVENT_LOGGING
Govind Singh5fed03b2016-05-12 12:45:51 +05301186 struct wmi_debug_log_info log_info;
Govind Singhd475ea92016-03-06 19:55:02 +05301187#endif /*WMI_INTERFACE_EVENT_LOGGING */
1188
Govind Singhd7468a52016-03-09 14:32:57 +05301189 qdf_atomic_t is_target_suspended;
Govind Singhd475ea92016-03-06 19:55:02 +05301190
1191#ifdef FEATURE_RUNTIME_PM
Govind Singhd7468a52016-03-09 14:32:57 +05301192 qdf_atomic_t runtime_pm_inprogress;
Govind Singhd475ea92016-03-06 19:55:02 +05301193#endif
1194
Govind Singh89727882016-04-15 13:58:27 +05301195 enum wmi_target_type target_type;
Govind Singh3ddda1f2016-03-09 11:34:12 +05301196 struct wmi_rx_ops rx_ops;
1197 struct wmi_ops *ops;
Govind Singh6ad6ada2016-02-04 18:42:30 +05301198 bool use_cookie;
Govind Singh89727882016-04-15 13:58:27 +05301199 bool wmi_stopinprogress;
Govind Singhf06948c2016-03-12 09:26:52 +05301200 qdf_spinlock_t ctx_lock;
Govind Singh89727882016-04-15 13:58:27 +05301201#ifdef WMI_TLV_AND_NON_TLV_SUPPORT
1202 /* WMI service bitmap recieved from target */
1203 uint32_t wmi_service_bitmap[wmi_services_max];
1204 uint32_t wmi_events[wmi_events_max];
1205 uint32_t pdev_param[wmi_pdev_param_max];
1206 uint32_t vdev_param[wmi_vdev_param_max];
1207 uint32_t services[wmi_services_max];
1208#endif
Govind Singhd475ea92016-03-06 19:55:02 +05301209};
Govind Singh89727882016-04-15 13:58:27 +05301210#ifdef WMI_NON_TLV_SUPPORT
1211#define wmi_tlv_attach(x) qdf_print("TLV Unavailable\n")
1212#else
1213void wmi_tlv_attach(wmi_unified_t wmi_handle);
1214#endif
1215void wmi_non_tlv_attach(wmi_unified_t wmi_handle);
Govind Singh53c7ac82016-03-28 22:02:42 +05301216
1217/**
1218 * wmi_align() - provides word aligned parameter
1219 * @param: parameter to be aligned
1220 *
1221 * Return: word aligned parameter
1222 */
1223static inline uint32_t wmi_align(uint32_t param)
1224{
1225 return roundup(param, sizeof(uint32_t));
1226}
Govind Singhd475ea92016-03-06 19:55:02 +05301227#endif