blob: 6957008a9faa8ae2a2b04b8fde9cc3a5fe344a5f [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)
49
50struct wmi_command_debug {
51 uint32_t command;
Govind Singh4ec6ff92016-03-09 12:03:29 +053052 uint32_t data[4]; /*16 bytes of WMI cmd excluding TLV and WMI headers */
Govind Singhd475ea92016-03-06 19:55:02 +053053 uint64_t time;
54};
55
56struct wmi_event_debug {
57 uint32_t event;
Govind Singh4ec6ff92016-03-09 12:03:29 +053058 uint32_t data[4]; /*16 bytes of WMI event data excluding TLV header */
Govind Singhd475ea92016-03-06 19:55:02 +053059 uint64_t time;
60};
61
62#endif /*WMI_INTERFACE_EVENT_LOGGING */
63
64#ifdef WLAN_OPEN_SOURCE
65struct fwdebug {
66 struct sk_buff_head fwlog_queue;
67 struct completion fwlog_completion;
68 A_BOOL fwlog_open;
69};
70#endif /* WLAN_OPEN_SOURCE */
71
Govind Singh3ddda1f2016-03-09 11:34:12 +053072struct wmi_ops {
Govind Singhd7468a52016-03-09 14:32:57 +053073QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +053074 uint8_t macaddr[IEEE80211_ADDR_LEN],
75 struct vdev_create_params *param);
76
Govind Singhd7468a52016-03-09 14:32:57 +053077QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +053078 uint8_t if_id);
79
Govind Singhd7468a52016-03-09 14:32:57 +053080QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +053081 uint8_t vdev_id);
82
Govind Singhd7468a52016-03-09 14:32:57 +053083QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +053084 uint8_t vdev_id);
85
Himanshu Agarwal7e4f4bc2016-03-09 16:49:38 +053086QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi,
87 struct vdev_start_params *req);
88
89QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle,
90 struct hidden_ssid_vdev_restart_params *restart_params);
91
Govind Singhd7468a52016-03-09 14:32:57 +053092QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +053093 uint8_t peer_addr[IEEE80211_ADDR_LEN],
94 struct peer_flush_params *param);
95
Govind Singhd7468a52016-03-09 14:32:57 +053096QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +053097 uint8_t peer_addr[IEEE80211_ADDR_LEN],
98 uint8_t vdev_id);
99
Govind Singhd7468a52016-03-09 14:32:57 +0530100QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530101 uint8_t peer_addr[IEEE80211_ADDR_LEN],
102 struct peer_set_params *param);
103
Govind Singhd7468a52016-03-09 14:32:57 +0530104QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530105 uint8_t bssid[IEEE80211_ADDR_LEN],
106 struct vdev_up_params *params);
107
Govind Singhd7468a52016-03-09 14:32:57 +0530108QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530109 struct peer_create_params *param);
110
Govind Singhd7468a52016-03-09 14:32:57 +0530111QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530112 uint32_t value, uint8_t mac_id);
113
Govind Singhd7468a52016-03-09 14:32:57 +0530114QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530115(*send_pdev_utf_cmd)(wmi_unified_t wmi_handle,
116 struct pdev_utf_params *param,
117 uint8_t mac_id);
118
Govind Singhd7468a52016-03-09 14:32:57 +0530119QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530120(*send_pdev_param_cmd)(wmi_unified_t wmi_handle,
121 struct pdev_params *param,
122 uint8_t mac_id);
123
Govind Singhd7468a52016-03-09 14:32:57 +0530124QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530125 struct suspend_params *param,
126 uint8_t mac_id);
127
Govind Singhd7468a52016-03-09 14:32:57 +0530128QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530129 uint8_t mac_id);
130
Govind Singhd7468a52016-03-09 14:32:57 +0530131QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530132 struct wow_cmd_params *param,
133 uint8_t mac_id);
134
Govind Singhd7468a52016-03-09 14:32:57 +0530135QDF_STATUS (*send_set_ap_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530136 uint8_t *peer_addr,
137 struct ap_ps_params *param);
138
Govind Singhd7468a52016-03-09 14:32:57 +0530139QDF_STATUS (*send_set_sta_ps_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530140 struct sta_ps_params *param);
141
Govind Singhd7468a52016-03-09 14:32:57 +0530142QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530143 struct crash_inject *param);
144
Govind Singhd7468a52016-03-09 14:32:57 +0530145QDF_STATUS
Govind Singh3ddda1f2016-03-09 11:34:12 +0530146(*send_dbglog_cmd)(wmi_unified_t wmi_handle,
147 struct dbglog_params *dbglog_param);
148
Govind Singhd7468a52016-03-09 14:32:57 +0530149QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530150 struct vdev_set_params *param);
151
Govind Singhd7468a52016-03-09 14:32:57 +0530152QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530153 uint8_t macaddr[IEEE80211_ADDR_LEN],
154 struct stats_request_params *param);
155
Govind Singh89727882016-04-15 13:58:27 +0530156#ifdef WMI_NON_TLV_SUPPORT
157QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
158 WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT);
159#else
Govind Singhd7468a52016-03-09 14:32:57 +0530160QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530161 uint8_t macaddr[IEEE80211_ADDR_LEN],
162 struct packet_enable_params *param);
Govind Singh89727882016-04-15 13:58:27 +0530163#endif
164
165QDF_STATUS (*send_packet_log_disable_cmd)(wmi_unified_t wmi_handle);
Govind Singh3ddda1f2016-03-09 11:34:12 +0530166
Govind Singhd7468a52016-03-09 14:32:57 +0530167QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530168 struct beacon_params *param);
169
Govind Singh89727882016-04-15 13:58:27 +0530170QDF_STATUS (*send_beacon_tmpl_send_cmd)(wmi_unified_t wmi_handle,
171 struct beacon_tmpl_params *param);
172
Govind Singhd7468a52016-03-09 14:32:57 +0530173QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530174 struct peer_assoc_params *param);
175
Govind Singhd7468a52016-03-09 14:32:57 +0530176QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530177 struct scan_start_params *param);
178
Govind Singhd7468a52016-03-09 14:32:57 +0530179QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530180 struct scan_stop_params *param);
181
Govind Singhd7468a52016-03-09 14:32:57 +0530182QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh3ddda1f2016-03-09 11:34:12 +0530183 struct scan_chan_list_params *param);
Govind Singh50988cc2016-02-26 18:09:36 +0530184
Govind Singhd7468a52016-03-09 14:32:57 +0530185QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530186 struct wmi_mgmt_params *param);
187
Govind Singhd7468a52016-03-09 14:32:57 +0530188QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530189 uint32_t param_value);
190
Govind Singhd7468a52016-03-09 14:32:57 +0530191QDF_STATUS (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530192 uint32_t vdev_id, uint8_t val);
193
Govind Singhd7468a52016-03-09 14:32:57 +0530194QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle);
Govind Singh50988cc2016-02-26 18:09:36 +0530195
Govind Singhd7468a52016-03-09 14:32:57 +0530196QDF_STATUS (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530197 struct p2p_ps_params *oppps);
198
Govind Singhd7468a52016-03-09 14:32:57 +0530199QDF_STATUS (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530200 struct p2p_ps_params *noa);
201
Govind Singhd7468a52016-03-09 14:32:57 +0530202QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530203 uint8_t vdev_id,
204 int value);
Govind Singh50988cc2016-02-26 18:09:36 +0530205
Govind Singhd7468a52016-03-09 14:32:57 +0530206QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530207 uint8_t vdev_id, int value);
208
Govind Singhd7468a52016-03-09 14:32:57 +0530209QDF_STATUS (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle,
Govind Singh50988cc2016-02-26 18:09:36 +0530210 struct sta_uapsd_trig_params *param);
Govind Singhe7b800c2016-03-01 15:30:53 +0530211
Govind Singhd7468a52016-03-09 14:32:57 +0530212QDF_STATUS (*send_ocb_set_utc_time_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530213 struct ocb_utc_param *utc);
214
Govind Singhd7468a52016-03-09 14:32:57 +0530215QDF_STATUS (*send_ocb_get_tsf_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530216 uint8_t vdev_id);
217
Govind Singhd7468a52016-03-09 14:32:57 +0530218QDF_STATUS (*send_ocb_start_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530219 struct ocb_timing_advert_param *timing_advert);
220
Govind Singhd7468a52016-03-09 14:32:57 +0530221QDF_STATUS (*send_ocb_stop_timing_advert_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530222 struct ocb_timing_advert_param *timing_advert);
223
Govind Singhd7468a52016-03-09 14:32:57 +0530224QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530225 struct dcc_get_stats_param *get_stats_param);
226
Govind Singhd7468a52016-03-09 14:32:57 +0530227QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530228 uint32_t vdev_id, uint32_t dcc_stats_bitmap);
229
Govind Singhd7468a52016-03-09 14:32:57 +0530230QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530231 struct dcc_update_ndl_param *update_ndl_param);
232
Govind Singhd7468a52016-03-09 14:32:57 +0530233QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle,
Govind Singhe7b800c2016-03-01 15:30:53 +0530234 struct ocb_config_param *config, uint32_t *ch_mhz);
Govind Singhae855362016-03-07 14:24:22 +0530235
Govind Singhd7468a52016-03-09 14:32:57 +0530236QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530237 struct wmi_lro_config_cmd_t *wmi_lro_cmd);
238
Govind Singhd7468a52016-03-09 14:32:57 +0530239QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle,
Govind Singh9bad0002016-03-01 15:54:59 +0530240 struct thermal_cmd_params *thermal_info);
241
Govind Singhd7468a52016-03-09 14:32:57 +0530242QDF_STATUS (*send_set_mcc_channel_time_quota_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530243 (wmi_unified_t wmi_handle,
244 uint32_t adapter_1_chan_freq,
245 uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq);
246
Govind Singhd7468a52016-03-09 14:32:57 +0530247QDF_STATUS (*send_set_mcc_channel_time_latency_cmd)
Govind Singh9bad0002016-03-01 15:54:59 +0530248 (wmi_unified_t wmi_handle,
249 uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency);
250
Govind Singhd7468a52016-03-09 14:32:57 +0530251QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)(
Govind Singh9bad0002016-03-01 15:54:59 +0530252 wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler);
Govind Singhae855362016-03-07 14:24:22 +0530253
Govind Singhd7468a52016-03-09 14:32:57 +0530254QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530255 A_UINT32 vdev_id, uint8_t *p2p_ie);
256
Govind Singhd7468a52016-03-09 14:32:57 +0530257QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530258 uint8_t vdev_id,
259 struct wmi_probe_resp_params *probe_rsp_info,
260 uint8_t *frm);
261
Himanshu Agarwal9efd9bf2016-03-09 18:49:18 +0530262QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle,
263 struct set_key_params *key_params);
264
Govind Singh89727882016-04-15 13:58:27 +0530265#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530266QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530267 uint8_t vdev_id,
268 wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]);
Govind Singh89727882016-04-15 13:58:27 +0530269#endif
Govind Singhae855362016-03-07 14:24:22 +0530270
Govind Singhd7468a52016-03-09 14:32:57 +0530271QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530272 uint32_t if_id,
273 struct wmi_gtx_config *gtx_info);
274
Govind Singhd7468a52016-03-09 14:32:57 +0530275QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530276 struct sta_params *params);
277
Govind Singhd7468a52016-03-09 14:32:57 +0530278QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530279 uint8_t vdev_id, uint32_t max_retries,
280 uint32_t retry_interval);
Govind Singh89727882016-04-15 13:58:27 +0530281#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530282QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530283 wmi_bcn_send_from_host_cmd_fixed_param *param);
Govind Singh89727882016-04-15 13:58:27 +0530284#endif
Govind Singhae855362016-03-07 14:24:22 +0530285
Govind Singhd7468a52016-03-09 14:32:57 +0530286QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530287 struct gateway_update_req_param *req);
288
Govind Singhd7468a52016-03-09 14:32:57 +0530289QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530290 struct rssi_monitor_param *req);
291
Govind Singhd7468a52016-03-09 14:32:57 +0530292QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530293 struct scan_mac_oui *psetoui);
294
Govind Singhd7468a52016-03-09 14:32:57 +0530295QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530296 struct wifi_passpoint_req_param *req);
Govind Singh89727882016-04-15 13:58:27 +0530297#ifndef WMI_NON_TLV_SUPPORT
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530298QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle,
299 wmi_start_scan_cmd_fixed_param *scan_cmd_fp,
300 struct roam_offload_scan_params *roam_req);
Govind Singh89727882016-04-15 13:58:27 +0530301#endif
Himanshu Agarwal5f2d0482016-03-09 15:25:44 +0530302
303QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle,
304 struct roam_offload_scan_rssi_params *roam_req);
305
306QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle,
307 struct roam_scan_filter_params *roam_req);
308
Govind Singhd7468a52016-03-09 14:32:57 +0530309QDF_STATUS (*send_set_passpoint_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530310 struct wifi_passpoint_req_param *req);
311
Govind Singhd7468a52016-03-09 14:32:57 +0530312QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530313 struct wifi_enhanched_pno_params *req);
314
Govind Singhd7468a52016-03-09 14:32:57 +0530315QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530316 struct extscan_capabilities_params *pgetcapab);
317
Govind Singhd7468a52016-03-09 14:32:57 +0530318QDF_STATUS (*send_extscan_get_cached_results_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530319 struct extscan_cached_result_params *pcached_results);
320
Govind Singhd7468a52016-03-09 14:32:57 +0530321QDF_STATUS (*send_extscan_stop_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530322 struct extscan_capabilities_reset_params *reset_req);
323
Govind Singhd7468a52016-03-09 14:32:57 +0530324QDF_STATUS (*send_extscan_start_change_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530325 struct extscan_set_sig_changereq_params *
326 psigchange);
327
Govind Singhd7468a52016-03-09 14:32:57 +0530328QDF_STATUS (*send_extscan_stop_hotlist_monitor_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530329 struct extscan_bssid_hotlist_reset_params *photlist_reset);
330
Govind Singhd7468a52016-03-09 14:32:57 +0530331QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530332 struct extscan_stop_req_params *pstopcmd);
333
Govind Singhd7468a52016-03-09 14:32:57 +0530334QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530335 struct wifi_scan_cmd_req_params *pstart);
336
Govind Singhd7468a52016-03-09 14:32:57 +0530337QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530338 const struct plm_req_params *plm);
339
Govind Singh89727882016-04-15 13:58:27 +0530340
Govind Singhd7468a52016-03-09 14:32:57 +0530341QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530342 const struct plm_req_params *plm,
343 uint32_t *gchannel_list);
344
Govind Singhd7468a52016-03-09 14:32:57 +0530345QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530346 uint8_t vdev_id);
347
Govind Singhd7468a52016-03-09 14:32:57 +0530348QDF_STATUS (*send_pno_stop_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singhae855362016-03-07 14:24:22 +0530349
Govind Singh89727882016-04-15 13:58:27 +0530350#ifdef FEATURE_WLAN_SCAN_PNO
Govind Singhd7468a52016-03-09 14:32:57 +0530351QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530352 struct pno_scan_req_params *pno,
353 uint32_t *gchannel_freq_list);
Govind Singh89727882016-04-15 13:58:27 +0530354#endif
Govind Singhae855362016-03-07 14:24:22 +0530355
Govind Singhd7468a52016-03-09 14:32:57 +0530356QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530357 struct ipa_offload_control_params *ipa_offload);
358
Govind Singhd7468a52016-03-09 14:32:57 +0530359QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg,
Govind Singhae855362016-03-07 14:24:22 +0530360 uint8_t is_add_ts);
361
Govind Singhd7468a52016-03-09 14:32:57 +0530362QDF_STATUS (*send_process_ll_stats_clear_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530363 (wmi_unified_t wmi_handle,
364 const struct ll_stats_clear_params *clear_req,
365 uint8_t addr[IEEE80211_ADDR_LEN]);
366
Govind Singhd7468a52016-03-09 14:32:57 +0530367QDF_STATUS (*send_process_ll_stats_set_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530368 (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req);
369
Govind Singhd7468a52016-03-09 14:32:57 +0530370QDF_STATUS (*send_process_ll_stats_get_cmd)
Govind Singhae855362016-03-07 14:24:22 +0530371 (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req,
372 uint8_t addr[IEEE80211_ADDR_LEN]);
373
Govind Singhd7468a52016-03-09 14:32:57 +0530374QDF_STATUS (*send_get_stats_cmd)(wmi_unified_t wmi_handle,
Govind Singhae855362016-03-07 14:24:22 +0530375 struct pe_stats_req *get_stats_param,
376 uint8_t addr[IEEE80211_ADDR_LEN]);
Govind Singh229bc0d2016-03-07 15:33:31 +0530377
Govind Singhd7468a52016-03-09 14:32:57 +0530378QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530379
Govind Singhd7468a52016-03-09 14:32:57 +0530380QDF_STATUS (*send_snr_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530381
Govind Singhd7468a52016-03-09 14:32:57 +0530382QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530383 struct link_status_params *link_status);
Govind Singh89727882016-04-15 13:58:27 +0530384#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530385QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530386 wmi_hb_set_enable_cmd_fixed_param *params);
387
Govind Singhd7468a52016-03-09 14:32:57 +0530388QDF_STATUS (*send_lphb_config_tcp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530389 wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req);
390
Govind Singhd7468a52016-03-09 14:32:57 +0530391QDF_STATUS (*send_lphb_config_tcp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530392 wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp);
393
Govind Singhd7468a52016-03-09 14:32:57 +0530394QDF_STATUS (*send_lphb_config_udp_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530395 wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req);
396
Govind Singhd7468a52016-03-09 14:32:57 +0530397QDF_STATUS (*send_lphb_config_udp_pkt_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530398 wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req);
399
Govind Singhd7468a52016-03-09 14:32:57 +0530400QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530401 wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind);
402
Govind Singhd7468a52016-03-09 14:32:57 +0530403QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530404 wmi_mac_addr peer_macaddr);
405
Govind Singhd7468a52016-03-09 14:32:57 +0530406QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530407 wmi_ap_ps_egap_param_cmd_fixed_param *egap_params);
Govind Singh89727882016-04-15 13:58:27 +0530408#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530409
Govind Singhd7468a52016-03-09 14:32:57 +0530410QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530411 uint32_t cmd, uint32_t value1, uint32_t value2);
412
Govind Singhd7468a52016-03-09 14:32:57 +0530413QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530414 uint8_t vdev_id, uint8_t default_pattern,
415 uint16_t rate_limit_interval);
416
Govind Singhd7468a52016-03-09 14:32:57 +0530417QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id);
Govind Singh229bc0d2016-03-07 15:33:31 +0530418
Govind Singhd7468a52016-03-09 14:32:57 +0530419QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530420 uint8_t data_len,
421 uint8_t *data);
422
Govind Singhd7468a52016-03-09 14:32:57 +0530423QDF_STATUS
Govind Singh229bc0d2016-03-07 15:33:31 +0530424(*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle,
425 bool dfs_phyerr_filter_offload);
Govind Singh89727882016-04-15 13:58:27 +0530426#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530427QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530428 WMI_PKTLOG_EVENT pktlog_event,
429 WMI_CMD_ID cmd_id);
Govind Singh89727882016-04-15 13:58:27 +0530430#endif
Govind Singh229bc0d2016-03-07 15:33:31 +0530431
Govind Singhd7468a52016-03-09 14:32:57 +0530432QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530433 uint32_t vdev_id,
434 uint32_t bitmap,
435 bool enable);
436
Govind Singhd7468a52016-03-09 14:32:57 +0530437QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530438 uint8_t vdev_id, uint8_t ptrn_id,
439 const uint8_t *ptrn, uint8_t ptrn_len,
440 uint8_t ptrn_offset, const uint8_t *mask,
441 uint8_t mask_len, bool user,
442 uint8_t default_patterns);
443
Govind Singhd7468a52016-03-09 14:32:57 +0530444QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle, uint8_t ptrn_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530445 uint8_t vdev_id);
446
Govind Singhd7468a52016-03-09 14:32:57 +0530447QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530448
Govind Singhd7468a52016-03-09 14:32:57 +0530449QDF_STATUS (*send_del_ts_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530450 uint8_t ac);
451
Govind Singhd7468a52016-03-09 14:32:57 +0530452QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530453 struct aggr_add_ts_param *aggr_qos_rsp_msg);
454
Govind Singhd7468a52016-03-09 14:32:57 +0530455QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530456 struct add_ts_param *msg);
457
Govind Singhd7468a52016-03-09 14:32:57 +0530458QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530459 uint8_t vdev_id, bool enable);
460
Govind Singhd7468a52016-03-09 14:32:57 +0530461QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530462 uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param,
463 uint8_t filter_id, bool enable);
464
Govind Singhd7468a52016-03-09 14:32:57 +0530465QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530466 uint8_t vdev_id,
Govind Singhd7468a52016-03-09 14:32:57 +0530467 struct qdf_mac_addr multicast_addr,
Govind Singh229bc0d2016-03-07 15:33:31 +0530468 bool clearList);
469
Govind Singhd7468a52016-03-09 14:32:57 +0530470QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id,
Govind Singh229bc0d2016-03-07 15:33:31 +0530471 struct gtk_offload_params *params,
472 bool enable_offload,
473 uint32_t gtk_offload_opcode);
474
Govind Singhd7468a52016-03-09 14:32:57 +0530475QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530476 uint8_t vdev_id,
477 uint64_t offload_req_opcode);
478
Govind Singhd7468a52016-03-09 14:32:57 +0530479QDF_STATUS (*send_process_add_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530480 struct periodic_tx_pattern *
481 pAddPeriodicTxPtrnParams,
482 uint8_t vdev_id);
483
Govind Singhd7468a52016-03-09 14:32:57 +0530484QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530485 uint8_t vdev_id,
486 uint8_t pattern_id);
487
Govind Singhd7468a52016-03-09 14:32:57 +0530488QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530489 struct stats_ext_params *preq);
490
Govind Singhd7468a52016-03-09 14:32:57 +0530491QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530492 struct ext_wow_params *params);
493
Govind Singhd7468a52016-03-09 14:32:57 +0530494QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530495 struct app_type2_params *appType2Params);
496
Govind Singhd7468a52016-03-09 14:32:57 +0530497QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530498 uint32_t timer_val);
499
Govind Singhd7468a52016-03-09 14:32:57 +0530500QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530501 struct nan_req_params *nan_req);
502
Govind Singhd7468a52016-03-09 14:32:57 +0530503QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530504 struct dhcp_offload_info_params *pDhcpSrvOffloadInfo);
505
Govind Singhd7468a52016-03-09 14:32:57 +0530506QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle);
Govind Singh229bc0d2016-03-07 15:33:31 +0530507
Govind Singhd7468a52016-03-09 14:32:57 +0530508QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530509 uint32_t reg_dmn, uint16_t regdmn2G,
510 uint16_t regdmn5G, int8_t ctl2G,
511 int8_t ctl5G);
512
Govind Singhd7468a52016-03-09 14:32:57 +0530513QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530514 struct tdls_channel_switch_params *chan_switch_params);
515
Govind Singhd7468a52016-03-09 14:32:57 +0530516QDF_STATUS (*send_update_fw_tdls_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530517 void *tdls_param, uint8_t tdls_state);
518
Govind Singhd7468a52016-03-09 14:32:57 +0530519QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530520 struct tdls_peer_state_params *peerStateParams,
521 uint32_t *ch_mhz);
522
523
Govind Singhd7468a52016-03-09 14:32:57 +0530524QDF_STATUS (*send_process_fw_mem_dump_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530525 struct fw_dump_req_param *mem_dump_req);
526
Govind Singhd7468a52016-03-09 14:32:57 +0530527QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle,
Govind Singh229bc0d2016-03-07 15:33:31 +0530528 struct vdev_ie_info_param *ie_info);
Govind Singh71ee2d72016-03-07 16:30:32 +0530529
Govind Singhd7468a52016-03-09 14:32:57 +0530530QDF_STATUS (*send_init_cmd)(wmi_unified_t wmi_handle,
Govind Singh71ee2d72016-03-07 16:30:32 +0530531 wmi_resource_config *res_cfg,
532 uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk,
533 bool action);
534
Govind Singhd7468a52016-03-09 14:32:57 +0530535QDF_STATUS (*save_fw_version_cmd)(wmi_unified_t wmi_handle, void *evt_buf);
Govind Singh71ee2d72016-03-07 16:30:32 +0530536
Govind Singhd7468a52016-03-09 14:32:57 +0530537QDF_STATUS (*check_and_update_fw_version_cmd)(wmi_unified_t wmi_hdl, void *ev);
Govind Singh71ee2d72016-03-07 16:30:32 +0530538
Govind Singhd7468a52016-03-09 14:32:57 +0530539QDF_STATUS (*send_saved_init_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530540
Govind Singhd7468a52016-03-09 14:32:57 +0530541QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530542 uint8_t *custom_addr);
543
Govind Singhd7468a52016-03-09 14:32:57 +0530544QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530545 uint8_t *event,
546 uint32_t len);
547
Govind Singhd7468a52016-03-09 14:32:57 +0530548QDF_STATUS (*send_enable_specific_fw_logs_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530549 struct wmi_wifi_start_log *start_log);
550
Govind Singhd7468a52016-03-09 14:32:57 +0530551QDF_STATUS (*send_flush_logs_to_fw_cmd)(wmi_unified_t wmi_handle);
Govind Singh2ae94372016-03-07 16:45:38 +0530552
Manishekar Chandrasekaranb8c59382016-04-21 19:16:32 +0530553QDF_STATUS (*send_pdev_set_pcl_cmd)(wmi_unified_t wmi_handle,
554 struct wmi_pcl_chan_weights *msg);
Govind Singh2ae94372016-03-07 16:45:38 +0530555
Govind Singhd7468a52016-03-09 14:32:57 +0530556QDF_STATUS (*send_soc_set_hw_mode_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530557 uint32_t hw_mode_index);
558
Govind Singhd7468a52016-03-09 14:32:57 +0530559QDF_STATUS (*send_soc_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530560 struct wmi_dual_mac_config *msg);
561
Govind Singhd7468a52016-03-09 14:32:57 +0530562QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530563 struct host_offload_req_param *param, bool arp_only,
564 uint8_t vdev_id);
565
Govind Singhd7468a52016-03-09 14:32:57 +0530566QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530567 struct flashing_req_params *flashing);
568
Govind Singhd7468a52016-03-09 14:32:57 +0530569QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530570 struct app_type1_params *app_type1_params);
571
Govind Singhd7468a52016-03-09 14:32:57 +0530572QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530573 struct ssid_hotlist_request_params *request);
574
Govind Singhd7468a52016-03-09 14:32:57 +0530575QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530576 uint8_t vdev_id);
577
Govind Singhd7468a52016-03-09 14:32:57 +0530578QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530579 struct wmi_unit_test_cmd *wmi_utest);
580
Govind Singhd7468a52016-03-09 14:32:57 +0530581QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530582 struct wmi_roam_invoke_cmd *roaminvoke,
583 uint32_t ch_hz);
584
Govind Singhd7468a52016-03-09 14:32:57 +0530585QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530586 uint32_t command, uint32_t vdev_id);
Govind Singh89727882016-04-15 13:58:27 +0530587#ifndef WMI_NON_TLV_SUPPORT
Govind Singhd7468a52016-03-09 14:32:57 +0530588QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530589 wmi_ap_profile *ap_profile_p,
590 uint32_t vdev_id);
Govind Singh89727882016-04-15 13:58:27 +0530591#endif
Govind Singh2ae94372016-03-07 16:45:38 +0530592
Govind Singhd7468a52016-03-09 14:32:57 +0530593QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530594 uint32_t scan_period,
595 uint32_t scan_age,
596 uint32_t vdev_id);
597
Govind Singhd7468a52016-03-09 14:32:57 +0530598QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530599 uint8_t chan_count,
600 uint8_t *chan_list,
601 uint8_t list_type, uint32_t vdev_id);
602
Govind Singhd7468a52016-03-09 14:32:57 +0530603QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530604 uint32_t vdev_id,
605 int32_t rssi_change_thresh,
606 uint32_t bcn_rssi_weight,
607 uint32_t hirssi_delay_btw_scans);
608
Govind Singhd7468a52016-03-09 14:32:57 +0530609QDF_STATUS (*send_get_buf_extscan_hotlist_cmd)(wmi_unified_t wmi_handle,
Govind Singh2ae94372016-03-07 16:45:38 +0530610 struct ext_scan_setbssi_hotlist_params *
611 photlist, int *buf_len);
Govind Singh89727882016-04-15 13:58:27 +0530612
613QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle,
614 uint32_t param);
615
616QDF_STATUS (*send_set_atf_cmd)(wmi_unified_t wmi_handle,
617 struct set_atf_params *param);
618
619QDF_STATUS (*send_pdev_fips_cmd)(wmi_unified_t wmi_handle,
620 struct fips_params *param);
621
622QDF_STATUS (*send_wlan_profile_enable_cmd)(wmi_unified_t wmi_handle,
623 struct wlan_profile_params *param);
624
625QDF_STATUS (*send_wlan_profile_trigger_cmd)(wmi_unified_t wmi_handle,
626 struct wlan_profile_params *param);
627
628QDF_STATUS (*send_pdev_set_chan_cmd)(wmi_unified_t wmi_handle,
629 struct channel_param *param);
630
631QDF_STATUS (*send_set_ht_ie_cmd)(wmi_unified_t wmi_handle,
632 struct ht_ie_params *param);
633
634QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle,
635 struct vht_ie_params *param);
636
637QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle,
638 struct wmm_update_params *param);
639
640QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle,
641 struct ant_switch_tbl_params *param);
642
643QDF_STATUS (*send_set_ratepwr_table_cmd)(wmi_unified_t wmi_handle,
644 struct ratepwr_table_params *param);
645
646QDF_STATUS (*send_get_ratepwr_table_cmd)(wmi_unified_t wmi_handle);
647
648QDF_STATUS (*send_set_ctl_table_cmd)(wmi_unified_t wmi_handle,
649 struct ctl_table_params *param);
650
651QDF_STATUS (*send_set_mimogain_table_cmd)(wmi_unified_t wmi_handle,
652 struct mimogain_table_params *param);
653
654QDF_STATUS (*send_set_ratepwr_chainmsk_cmd)(wmi_unified_t wmi_handle,
655 struct ratepwr_chainmsk_params *param);
656
657QDF_STATUS (*send_set_macaddr_cmd)(wmi_unified_t wmi_handle,
658 struct macaddr_params *param);
659
660QDF_STATUS (*send_pdev_scan_start_cmd)(wmi_unified_t wmi_handle);
661
662QDF_STATUS (*send_pdev_scan_end_cmd)(wmi_unified_t wmi_handle);
663
664QDF_STATUS (*send_set_acparams_cmd)(wmi_unified_t wmi_handle,
665 struct acparams_params *param);
666
667QDF_STATUS (*send_set_vap_dscp_tid_map_cmd)(wmi_unified_t wmi_handle,
668 struct vap_dscp_tid_map_params *param);
669
670QDF_STATUS (*send_proxy_ast_reserve_cmd)(wmi_unified_t wmi_handle,
671 struct proxy_ast_reserve_params *param);
672
673QDF_STATUS (*send_pdev_qvit_cmd)(wmi_unified_t wmi_handle,
674 struct pdev_qvit_params *param);
675
676QDF_STATUS (*send_mcast_group_update_cmd)(wmi_unified_t wmi_handle,
677 struct mcast_group_update_params *param);
678
679QDF_STATUS (*send_peer_add_wds_entry_cmd)(wmi_unified_t wmi_handle,
680 struct peer_add_wds_entry_params *param);
681
682QDF_STATUS (*send_peer_del_wds_entry_cmd)(wmi_unified_t wmi_handle,
683 struct peer_del_wds_entry_params *param);
684
685QDF_STATUS (*send_peer_update_wds_entry_cmd)(wmi_unified_t wmi_handle,
686 struct peer_update_wds_entry_params *param);
687
688QDF_STATUS (*send_phyerr_enable_cmd)(wmi_unified_t wmi_handle);
689
690QDF_STATUS (*send_phyerr_disable_cmd)(wmi_unified_t wmi_handle);
691
692QDF_STATUS (*send_smart_ant_enable_cmd)(wmi_unified_t wmi_handle,
693 struct smart_ant_enable_params *param);
694
695QDF_STATUS (*send_smart_ant_set_rx_ant_cmd)(wmi_unified_t wmi_handle,
696 struct smart_ant_rx_ant_params *param);
697
698QDF_STATUS (*send_smart_ant_set_tx_ant_cmd)(wmi_unified_t wmi_handle,
699 uint8_t macaddr[IEEE80211_ADDR_LEN],
700 struct smart_ant_tx_ant_params *param);
701
702QDF_STATUS (*send_smart_ant_set_training_info_cmd)(wmi_unified_t wmi_handle,
703 uint8_t macaddr[IEEE80211_ADDR_LEN],
704 struct smart_ant_training_info_params *param);
705
706QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle,
707 uint8_t macaddr[IEEE80211_ADDR_LEN],
708 struct smart_ant_node_config_params *param);
709
710QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle,
711 struct smart_ant_enable_tx_feedback_params *param);
712
713QDF_STATUS (*send_vdev_spectral_configure_cmd)(wmi_unified_t wmi_handle,
714 struct vdev_spectral_configure_params *param);
715
716QDF_STATUS (*send_vdev_spectral_enable_cmd)(wmi_unified_t wmi_handle,
717 struct vdev_spectral_enable_params *param);
718
719QDF_STATUS (*send_bss_chan_info_request_cmd)(wmi_unified_t wmi_handle,
720 struct bss_chan_info_request_params *param);
721
722QDF_STATUS (*send_thermal_mitigation_param_cmd)(wmi_unified_t wmi_handle,
723 struct thermal_mitigation_params *param);
724
725QDF_STATUS (*send_vdev_set_neighbour_rx_cmd)(wmi_unified_t wmi_handle,
726 uint8_t macaddr[IEEE80211_ADDR_LEN],
727 struct set_neighbour_rx_params *param);
728
729QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle,
730 struct set_fwtest_params *param);
731
732QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle,
733 struct config_ratemask_params *param);
734
735QDF_STATUS (*send_vdev_install_key_cmd)(wmi_unified_t wmi_handle,
736 uint8_t macaddr[IEEE80211_ADDR_LEN],
737 struct vdev_install_key_params *param);
738
739QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle);
740
741QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle,
742 struct wow_add_wakeup_params *param);
743
744QDF_STATUS (*send_wow_add_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
745 struct wow_add_wakeup_pattern_params *param);
746
747QDF_STATUS (*send_wow_remove_wakeup_pattern_cmd)(wmi_unified_t wmi_handle,
748 struct wow_remove_wakeup_pattern_params *param);
749
750QDF_STATUS (*send_pdev_set_regdomain_cmd)(wmi_unified_t wmi_handle,
751 struct pdev_set_regdomain_params *param);
752
753QDF_STATUS (*send_set_quiet_mode_cmd)(wmi_unified_t wmi_handle,
754 struct set_quiet_mode_params *param);
755
756QDF_STATUS (*send_set_beacon_filter_cmd)(wmi_unified_t wmi_handle,
757 struct set_beacon_filter_params *param);
758
759QDF_STATUS (*send_remove_beacon_filter_cmd)(wmi_unified_t wmi_handle,
760 struct remove_beacon_filter_params *param);
761/*
762QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle,
763 uint8_t macaddr[IEEE80211_ADDR_LEN],
764 struct mgmt_params *param);
765 */
766
767QDF_STATUS (*send_addba_clearresponse_cmd)(wmi_unified_t wmi_handle,
768 uint8_t macaddr[IEEE80211_ADDR_LEN],
769 struct addba_clearresponse_params *param);
770
771QDF_STATUS (*send_addba_send_cmd)(wmi_unified_t wmi_handle,
772 uint8_t macaddr[IEEE80211_ADDR_LEN],
773 struct addba_send_params *param);
774
775QDF_STATUS (*send_delba_send_cmd)(wmi_unified_t wmi_handle,
776 uint8_t macaddr[IEEE80211_ADDR_LEN],
777 struct delba_send_params *param);
778
779QDF_STATUS (*send_addba_setresponse_cmd)(wmi_unified_t wmi_handle,
780 uint8_t macaddr[IEEE80211_ADDR_LEN],
781 struct addba_setresponse_params *param);
782
783QDF_STATUS (*send_singleamsdu_cmd)(wmi_unified_t wmi_handle,
784 uint8_t macaddr[IEEE80211_ADDR_LEN],
785 struct singleamsdu_params *param);
786
787QDF_STATUS (*send_set_qboost_param_cmd)(wmi_unified_t wmi_handle,
788 uint8_t macaddr[IEEE80211_ADDR_LEN],
789 struct set_qboost_params *param);
790
791QDF_STATUS (*send_mu_scan_cmd)(wmi_unified_t wmi_handle,
792 struct mu_scan_params *param);
793
794QDF_STATUS (*send_lteu_config_cmd)(wmi_unified_t wmi_handle,
795 struct lteu_config_params *param);
796
797QDF_STATUS (*send_set_ps_mode_cmd)(wmi_unified_t wmi_handle,
798 struct set_ps_mode_params *param);
799void (*save_service_bitmap)(wmi_unified_t wmi_handle,
800 void *evt_buf);
801bool (*is_service_enabled)(wmi_unified_t wmi_handle,
802 uint32_t service_id);
803QDF_STATUS (*get_target_cap_from_service_ready)(wmi_unified_t wmi_handle,
804 void *evt_buf, target_capability_info *ev);
805
806QDF_STATUS (*extract_fw_version)(wmi_unified_t wmi_handle,
807 void *ev, struct wmi_host_fw_ver *fw_ver);
808
809QDF_STATUS (*extract_fw_abi_version)(wmi_unified_t wmi_handle,
810 void *ev, struct wmi_host_fw_abi_ver *fw_ver);
811
812QDF_STATUS (*extract_hal_reg_cap)(wmi_unified_t wmi_handle, void *evt_buf,
813 TARGET_HAL_REG_CAPABILITIES *hal_reg_cap);
814
815host_mem_req * (*extract_host_mem_req)(wmi_unified_t wmi_handle,
816 void *evt_buf, uint8_t *num_entries);
817
818QDF_STATUS (*init_cmd_send)(wmi_unified_t wmi_handle,
819 target_resource_config *res_cfg,
820 uint8_t num_mem_chunks,
821 struct wmi_host_mem_chunk *mem_chunk);
822
823QDF_STATUS (*save_fw_version)(wmi_unified_t wmi_handle, void *evt_buf);
824uint32_t (*ready_extract_init_status)(wmi_unified_t wmi_hdl, void *ev);
825QDF_STATUS (*ready_extract_mac_addr)(wmi_unified_t wmi_hdl, void *ev,
826 uint8_t *macaddr);
827QDF_STATUS (*check_and_update_fw_version)(wmi_unified_t wmi_hdl, void *ev);
828uint8_t* (*extract_dbglog_data_len)(wmi_unified_t wmi_handle, void *evt_buf,
829 uint16_t *len);
830QDF_STATUS (*send_ext_resource_config)(wmi_unified_t wmi_handle,
831 wmi_host_ext_resource_config *ext_cfg);
832
833QDF_STATUS (*send_nf_dbr_dbm_info_get_cmd)(wmi_unified_t wmi_handle);
834
835QDF_STATUS (*send_packet_power_info_get_cmd)(wmi_unified_t wmi_handle,
836 struct packet_power_info_params *param);
837
838QDF_STATUS (*send_gpio_config_cmd)(wmi_unified_t wmi_handle,
839 struct gpio_config_params *param);
840
841QDF_STATUS (*send_gpio_output_cmd)(wmi_unified_t wmi_handle,
842 struct gpio_output_params *param);
843
844QDF_STATUS (*send_rtt_meas_req_test_cmd)(wmi_unified_t wmi_handle,
845 struct rtt_meas_req_test_params *param);
846
847QDF_STATUS (*send_rtt_meas_req_cmd)(wmi_unified_t wmi_handle,
848 struct rtt_meas_req_params *param);
849
850QDF_STATUS (*send_rtt_keepalive_req_cmd)(wmi_unified_t wmi_handle,
851 struct rtt_keepalive_req_params *param);
852
853QDF_STATUS (*send_lci_set_cmd)(wmi_unified_t wmi_handle,
854 struct lci_set_params *param);
855
856QDF_STATUS (*send_lcr_set_cmd)(wmi_unified_t wmi_handle,
857 struct lcr_set_params *param);
858
859QDF_STATUS (*send_periodic_chan_stats_config_cmd)(wmi_unified_t wmi_handle,
860 struct periodic_chan_stats_params *param);
861
862QDF_STATUS
863(*send_atf_peer_request_cmd)(wmi_unified_t wmi_handle,
864 struct atf_peer_request_params *param);
865
866QDF_STATUS
867(*send_set_atf_grouping_cmd)(wmi_unified_t wmi_handle,
868 struct atf_grouping_params *param);
869
870QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle,
871 void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev);
872
873QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle,
874 void *evt_buf, uint32_t *interference_type);
875
876QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf,
877 wmi_host_ath_dcs_cw_int *cw_int);
878
879QDF_STATUS (*extract_dcs_im_tgt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
880 wmi_host_dcs_im_tgt_stats_t *wlan_stat);
881
882QDF_STATUS (*extract_fips_event_error_status)(wmi_unified_t wmi_handle,
883 void *evt_buf, uint32_t *err_status);
884
885QDF_STATUS (*extract_fips_event_data)(wmi_unified_t wmi_handle,
886 void *evt_buf, uint32_t *data_len, uint32_t **data);
887QDF_STATUS (*extract_vdev_start_resp)(wmi_unified_t wmi_handle, void *evt_buf,
888 wmi_host_vdev_start_resp *vdev_rsp);
889
890QDF_STATUS (*extract_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf,
891 uint32_t *vdev_map, uint32_t **tbttoffset_list);
892
893QDF_STATUS (*extract_mgmt_rx_params)(wmi_unified_t wmi_handle, void *evt_buf,
894 wmi_host_mgmt_rx_hdr *hdr, uint8_t **bufp);
895
896QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle,
897 void *evt_buf, uint32_t *vdev_id);
898
899QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf,
900 wmi_host_roam_event *param);
901
902QDF_STATUS (*extract_vdev_scan_ev_param)(wmi_unified_t wmi_handle,
903 void *evt_buf, wmi_host_scan_event *param);
904
905QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf,
906 wmi_host_mu_report_event *param);
907
908QDF_STATUS (*extract_pdev_tpc_config_ev_param)(wmi_unified_t wmi_handle,
909 void *evt_buf, wmi_host_pdev_tpc_config_event *param);
910
911QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle,
912 void *evt_buf, uint32_t *gpio_num);
913
914QDF_STATUS (*extract_pdev_reserve_ast_ev_param)(wmi_unified_t wmi_handle,
915 void *evt_buf, uint32_t *result);
916
917QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle,
918 void *evt_buf,
919 wmi_host_pdev_nfcal_power_all_channels_event *param);
920
921QDF_STATUS (*extract_pdev_tpc_ev_param)(wmi_unified_t wmi_handle,
922 void *evt_buf, wmi_host_pdev_tpc_event *param);
923
924QDF_STATUS (*extract_pdev_generic_buffer_ev_param)(wmi_unified_t wmi_handle,
925 void *evt_buf, wmi_host_pdev_generic_buffer_event *param);
926
927QDF_STATUS (*extract_mgmt_tx_compl_param)(wmi_unified_t wmi_handle,
928 void *evt_buf, wmi_host_mgmt_tx_compl_event *param);
929
930QDF_STATUS (*extract_swba_vdev_map)(wmi_unified_t wmi_handle, void *evt_buf,
931 uint32_t *vdev_map);
932
933QDF_STATUS (*extract_swba_tim_info)(wmi_unified_t wmi_handle, void *evt_buf,
934 uint32_t idx, wmi_host_tim_info *tim_info);
935
936QDF_STATUS (*extract_swba_noa_info)(wmi_unified_t wmi_handle, void *evt_buf,
937 uint32_t idx, wmi_host_p2p_noa_info *p2p_desc);
938
939QDF_STATUS (*extract_peer_sta_ps_statechange_ev)(wmi_unified_t wmi_handle,
940 void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev);
941
942QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle,
943 void *evt_buf, wmi_host_peer_sta_kickout_event *ev);
944
945QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle,
946 void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
947
948QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
949 uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
950
951QDF_STATUS (*extract_single_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
952 uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);
953
954QDF_STATUS (*extract_composite_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
955 uint16_t datalen, wmi_host_phyerr_t *phyerr);
956
957QDF_STATUS (*extract_rtt_hdr)(wmi_unified_t wmi_handle, void *evt_buf,
958 wmi_host_rtt_event_hdr *ev);
959
960QDF_STATUS (*extract_rtt_ev)(wmi_unified_t wmi_handle, void *evt_buf,
961 wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len);
962
963QDF_STATUS (*extract_rtt_error_report_ev)(wmi_unified_t wmi_handle,
964 void *evt_buf, wmi_host_rtt_error_report_event *ev);
965
966QDF_STATUS (*extract_all_stats_count)(wmi_unified_t wmi_handle, void *evt_buf,
967 wmi_host_stats_event *stats_param);
968
969QDF_STATUS (*extract_pdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
970 uint32_t index, wmi_host_pdev_stats *pdev_stats);
971
972QDF_STATUS (*extract_pdev_ext_stats)(wmi_unified_t wmi_handle, void *evt_buf,
973 uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats);
974
975QDF_STATUS (*extract_vdev_stats)(wmi_unified_t wmi_handle, void *evt_buf,
976 uint32_t index, wmi_host_vdev_stats *vdev_stats);
977
978QDF_STATUS (*extract_peer_stats)(wmi_unified_t wmi_handle, void *evt_buf,
979 uint32_t index, wmi_host_peer_stats *peer_stats);
980
981QDF_STATUS (*extract_bcnflt_stats)(wmi_unified_t wmi_handle, void *evt_buf,
982 uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats);
983
984QDF_STATUS (*extract_peer_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
985 uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats);
986
987QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf,
988 uint32_t index, wmi_host_chan_stats *chan_stats);
989
990QDF_STATUS (*extract_thermal_stats)(wmi_unified_t wmi_handle, void *evt_buf,
991 uint32_t *temp, uint32_t *level);
992
993QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle,
994 void *evt_buf, uint8_t idx, uint32_t *levelcount,
995 uint32_t *dccount);
996
997QDF_STATUS (*extract_profile_ctx)(wmi_unified_t wmi_handle, void *evt_buf,
998 wmi_host_wlan_profile_ctx_t *profile_ctx);
999
1000QDF_STATUS (*extract_profile_data)(wmi_unified_t wmi_handle, void *evt_buf,
1001 wmi_host_wlan_profile_t *profile_data);
1002
1003QDF_STATUS (*extract_chan_info_event)(wmi_unified_t wmi_handle, void *evt_buf,
1004 wmi_host_chan_info_event *chan_info);
1005
1006QDF_STATUS (*extract_channel_hopping_event)(wmi_unified_t wmi_handle,
1007 void *evt_buf,
1008 wmi_host_pdev_channel_hopping_event *ch_hopping);
1009
1010QDF_STATUS (*extract_bss_chan_info_event)(wmi_unified_t wmi_handle,
1011 void *evt_buf,
1012 wmi_host_pdev_bss_chan_info_event *bss_chan_info);
1013
1014QDF_STATUS (*extract_inst_rssi_stats_event)(wmi_unified_t wmi_handle,
1015 void *evt_buf, wmi_host_inst_stats_resp *inst_rssi_resp);
1016
1017QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle,
1018 void *evt_buf, wmi_host_tx_data_traffic_ctrl_event *ev);
1019
1020QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf,
1021 uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats);
1022};
1023
1024struct target_abi_version {
1025 A_UINT32 abi_version_0;
1026 /** WMI Major and Minor versions */
1027 A_UINT32 abi_version_1;
1028 /** WMI change revision */
1029 A_UINT32 abi_version_ns_0;
1030 /** ABI version namespace first four dwords */
1031 A_UINT32 abi_version_ns_1;
1032 /** ABI version namespace second four dwords */
1033 A_UINT32 abi_version_ns_2;
1034 /** ABI version namespace third four dwords */
1035 A_UINT32 abi_version_ns_3;
1036 /** ABI version namespace fourth four dwords */
Govind Singh2ae94372016-03-07 16:45:38 +05301037};
1038
Govind Singh229bc0d2016-03-07 15:33:31 +05301039/**
1040 * struct wmi_init_cmd - Saved wmi INIT command
1041 * @buf: Buffer containing the wmi INIT command
1042 * @buf_len: Length of the buffer
1043 */
Govind Singhec0bdef2016-03-16 16:27:50 +05301044struct wmi_cmd_init {
Govind Singh229bc0d2016-03-07 15:33:31 +05301045 wmi_buf_t buf;
1046 uint32_t buf_len;
Govind Singh3ddda1f2016-03-09 11:34:12 +05301047};
1048
Govind Singhd475ea92016-03-06 19:55:02 +05301049struct wmi_unified {
Govind Singh89727882016-04-15 13:58:27 +05301050 void *scn_handle; /* handle to device */
Govind Singh6ad6ada2016-02-04 18:42:30 +05301051 osdev_t osdev; /* handle to use OS-independent services */
Govind Singhd7468a52016-03-09 14:32:57 +05301052 qdf_atomic_t pending_cmds;
Govind Singhd475ea92016-03-06 19:55:02 +05301053 HTC_ENDPOINT_ID wmi_endpoint_id;
1054 uint16_t max_msg_len;
1055 WMI_EVT_ID event_id[WMI_UNIFIED_MAX_EVENT];
1056 wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT];
Govind Singh4ec6ff92016-03-09 12:03:29 +05301057 enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT];
Govind Singhd475ea92016-03-06 19:55:02 +05301058 uint32_t max_event_idx;
1059 void *htc_handle;
Govind Singhd7468a52016-03-09 14:32:57 +05301060 qdf_spinlock_t eventq_lock;
1061 qdf_nbuf_queue_t event_queue;
Govind Singhd475ea92016-03-06 19:55:02 +05301062 struct work_struct rx_event_work;
Govind Singh6ad6ada2016-02-04 18:42:30 +05301063 int wmi_stop_in_progress;
Govind Singh89727882016-04-15 13:58:27 +05301064#ifndef WMI_NON_TLV_SUPPORT
Govind Singh229bc0d2016-03-07 15:33:31 +05301065 struct _wmi_abi_version fw_abi_version;
1066 struct _wmi_abi_version final_abi_vers;
Govind Singh89727882016-04-15 13:58:27 +05301067#endif
Govind Singhec0bdef2016-03-16 16:27:50 +05301068 struct wmi_cmd_init saved_wmi_init_cmd;
Govind Singh229bc0d2016-03-07 15:33:31 +05301069 uint32_t num_of_diag_events_logs;
1070 uint32_t *events_logs_list;
1071 struct host_offload_req_param arp_info;
Govind Singhd475ea92016-03-06 19:55:02 +05301072#ifdef WLAN_OPEN_SOURCE
1073 struct fwdebug dbglog;
1074 struct dentry *debugfs_phy;
1075#endif /* WLAN_OPEN_SOURCE */
1076
1077#ifdef WMI_INTERFACE_EVENT_LOGGING
Govind Singhd7468a52016-03-09 14:32:57 +05301078 qdf_spinlock_t wmi_record_lock;
Govind Singhd475ea92016-03-06 19:55:02 +05301079#endif /*WMI_INTERFACE_EVENT_LOGGING */
1080
Govind Singhd7468a52016-03-09 14:32:57 +05301081 qdf_atomic_t is_target_suspended;
Govind Singhd475ea92016-03-06 19:55:02 +05301082
1083#ifdef FEATURE_RUNTIME_PM
Govind Singhd7468a52016-03-09 14:32:57 +05301084 qdf_atomic_t runtime_pm_inprogress;
Govind Singhd475ea92016-03-06 19:55:02 +05301085#endif
1086
Govind Singh89727882016-04-15 13:58:27 +05301087 enum wmi_target_type target_type;
Govind Singh3ddda1f2016-03-09 11:34:12 +05301088 struct wmi_rx_ops rx_ops;
1089 struct wmi_ops *ops;
Govind Singh6ad6ada2016-02-04 18:42:30 +05301090 bool use_cookie;
Govind Singh89727882016-04-15 13:58:27 +05301091 bool wmi_stopinprogress;
Govind Singhf06948c2016-03-12 09:26:52 +05301092 qdf_spinlock_t ctx_lock;
Govind Singh89727882016-04-15 13:58:27 +05301093#ifdef WMI_TLV_AND_NON_TLV_SUPPORT
1094 /* WMI service bitmap recieved from target */
1095 uint32_t wmi_service_bitmap[wmi_services_max];
1096 uint32_t wmi_events[wmi_events_max];
1097 uint32_t pdev_param[wmi_pdev_param_max];
1098 uint32_t vdev_param[wmi_vdev_param_max];
1099 uint32_t services[wmi_services_max];
1100#endif
Govind Singhd475ea92016-03-06 19:55:02 +05301101};
Govind Singh89727882016-04-15 13:58:27 +05301102#ifdef WMI_NON_TLV_SUPPORT
1103#define wmi_tlv_attach(x) qdf_print("TLV Unavailable\n")
1104#else
1105void wmi_tlv_attach(wmi_unified_t wmi_handle);
1106#endif
1107void wmi_non_tlv_attach(wmi_unified_t wmi_handle);
Govind Singh53c7ac82016-03-28 22:02:42 +05301108
1109/**
1110 * wmi_align() - provides word aligned parameter
1111 * @param: parameter to be aligned
1112 *
1113 * Return: word aligned parameter
1114 */
1115static inline uint32_t wmi_align(uint32_t param)
1116{
1117 return roundup(param, sizeof(uint32_t));
1118}
Govind Singhd475ea92016-03-06 19:55:02 +05301119#endif