Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1 | /* |
| 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 Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 29 | * This file contains the API definitions for the Unified Wireless |
| 30 | * Module Interface (WMI). |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 31 | */ |
| 32 | #ifndef _WMI_UNIFIED_PRIV_H_ |
| 33 | #define _WMI_UNIFIED_PRIV_H_ |
| 34 | #include <osdep.h> |
| 35 | #include "a_types.h" |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 36 | #include "wmi_unified_param.h" |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 37 | #include "qdf_atomic.h" |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 38 | |
| 39 | #define WMI_UNIFIED_MAX_EVENT 0x100 |
Mukul Sharma | b4ddf9c | 2016-10-12 23:50:13 +0530 | [diff] [blame] | 40 | #ifdef CONFIG_MCL |
| 41 | #define WMI_MAX_CMDS 256 |
| 42 | #else |
| 43 | #define WMI_MAX_CMDS 1024 |
| 44 | #endif |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 45 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 46 | typedef qdf_nbuf_t wmi_buf_t; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 47 | |
| 48 | #ifdef WMI_INTERFACE_EVENT_LOGGING |
| 49 | |
| 50 | #define WMI_EVENT_DEBUG_MAX_ENTRY (1024) |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 51 | #define WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH (16) |
| 52 | /* wmi_mgmt commands */ |
| 53 | #define WMI_MGMT_EVENT_DEBUG_MAX_ENTRY (256) |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 54 | |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 55 | /** |
| 56 | * struct wmi_command_debug - WMI command log buffer data type |
| 57 | * @ command - Store WMI Command id |
| 58 | * @ data - Stores WMI command data |
| 59 | * @ time - Time of WMI command handling |
| 60 | */ |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 61 | struct wmi_command_debug { |
| 62 | uint32_t command; |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 63 | /*16 bytes of WMI cmd excluding TLV and WMI headers */ |
| 64 | uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)]; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 65 | uint64_t time; |
| 66 | }; |
| 67 | |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 68 | /** |
| 69 | * struct wmi_event_debug - WMI event log buffer data type |
| 70 | * @ command - Store WMI Event id |
| 71 | * @ data - Stores WMI Event data |
| 72 | * @ time - Time of WMI Event handling |
| 73 | */ |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 74 | struct wmi_event_debug { |
| 75 | uint32_t event; |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 76 | /*16 bytes of WMI event data excluding TLV header */ |
| 77 | uint32_t data[WMI_EVENT_DEBUG_ENTRY_MAX_LENGTH/sizeof(uint32_t)]; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 78 | uint64_t time; |
| 79 | }; |
| 80 | |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 81 | /** |
Sandeep Puligilla | 38a294f | 2016-06-13 15:42:55 -0700 | [diff] [blame] | 82 | * struct wmi_command_header - Type for accessing frame data |
| 83 | * @ type - 802.11 Frame type |
| 84 | * @ subType - 802.11 Frame subtype |
| 85 | * @ protVer - 802.11 Version |
| 86 | */ |
| 87 | struct wmi_command_header { |
| 88 | #ifndef ANI_LITTLE_BIT_ENDIAN |
| 89 | |
| 90 | uint32_t sub_type:4; |
| 91 | uint32_t type:2; |
| 92 | uint32_t prot_ver:2; |
| 93 | |
| 94 | #else |
| 95 | |
| 96 | uint32_t prot_ver:2; |
| 97 | uint32_t type:2; |
| 98 | uint32_t sub_type:4; |
| 99 | |
| 100 | #endif |
| 101 | }; |
| 102 | |
| 103 | /** |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 104 | * struct wmi_log_buf_t - WMI log buffer information type |
| 105 | * @buf - Refernce to WMI log buffer |
| 106 | * @ length - length of buffer |
| 107 | * @ buf_tail_idx - Tail index of buffer |
| 108 | * @ p_buf_tail_idx - refernce to buffer tail index. It is added to accommodate |
| 109 | * unified design since MCL uses global variable for buffer tail index |
| 110 | */ |
| 111 | struct wmi_log_buf_t { |
| 112 | void *buf; |
| 113 | uint32_t length; |
| 114 | uint32_t buf_tail_idx; |
| 115 | uint32_t *p_buf_tail_idx; |
| 116 | }; |
| 117 | |
| 118 | /** |
| 119 | * struct wmi_debug_log_info - Meta data to hold information of all buffers |
| 120 | * used for WMI logging |
| 121 | * @wmi_command_log_buf_info - Buffer info for WMI Command log |
| 122 | * @wmi_command_tx_cmp_log_buf_info - Buffer info for WMI Command Tx completion |
| 123 | * log |
| 124 | * @wmi_event_log_buf_info - Buffer info for WMI Event log |
| 125 | * @wmi_rx_event_log_buf_info - Buffer info for WMI event received log |
| 126 | * @wmi_mgmt_command_log_buf_info - Buffer info for WMI Management Command log |
| 127 | * @wmi_mgmt_command_tx_cmp_log_buf_info - Buffer info for WMI Management |
| 128 | * Command Tx completion log |
| 129 | * @wmi_mgmt_event_log_buf_info - Buffer info for WMI Management event log |
| 130 | * @wmi_record_lock - Lock WMI recording |
| 131 | * @wmi_logging_enable - Enable/Disable state for WMI logging |
| 132 | * @buf_offset_command - Offset from where WMI command data should be logged |
| 133 | * @buf_offset_event - Offset from where WMI event data should be logged |
| 134 | * @is_management_record - Function refernce to check if command/event is |
| 135 | * management record |
| 136 | * @wmi_id_to_name - Function refernce to API to convert Command id to |
| 137 | * string name |
| 138 | * @wmi_log_debugfs_dir - refernce to debugfs directory |
| 139 | */ |
| 140 | struct wmi_debug_log_info { |
| 141 | struct wmi_log_buf_t wmi_command_log_buf_info; |
| 142 | struct wmi_log_buf_t wmi_command_tx_cmp_log_buf_info; |
| 143 | |
| 144 | struct wmi_log_buf_t wmi_event_log_buf_info; |
| 145 | struct wmi_log_buf_t wmi_rx_event_log_buf_info; |
| 146 | |
| 147 | struct wmi_log_buf_t wmi_mgmt_command_log_buf_info; |
| 148 | struct wmi_log_buf_t wmi_mgmt_command_tx_cmp_log_buf_info; |
| 149 | struct wmi_log_buf_t wmi_mgmt_event_log_buf_info; |
| 150 | |
| 151 | qdf_spinlock_t wmi_record_lock; |
| 152 | bool wmi_logging_enable; |
| 153 | uint32_t buf_offset_command; |
| 154 | uint32_t buf_offset_event; |
| 155 | bool (*is_management_record)(uint32_t cmd_id); |
| 156 | uint8_t *(*wmi_id_to_name)(uint32_t cmd_id); |
| 157 | struct dentry *wmi_log_debugfs_dir; |
| 158 | uint8_t wmi_instance_id; |
| 159 | }; |
| 160 | |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 161 | #endif /*WMI_INTERFACE_EVENT_LOGGING */ |
| 162 | |
| 163 | #ifdef WLAN_OPEN_SOURCE |
| 164 | struct fwdebug { |
| 165 | struct sk_buff_head fwlog_queue; |
| 166 | struct completion fwlog_completion; |
| 167 | A_BOOL fwlog_open; |
| 168 | }; |
| 169 | #endif /* WLAN_OPEN_SOURCE */ |
| 170 | |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 171 | struct wmi_ops { |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 172 | QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 173 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 174 | struct vdev_create_params *param); |
| 175 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 176 | QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 177 | uint8_t if_id); |
| 178 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 179 | QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 180 | uint8_t vdev_id); |
| 181 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 182 | QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 183 | uint8_t vdev_id); |
| 184 | |
Himanshu Agarwal | 7e4f4bc | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 185 | QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi, |
| 186 | struct vdev_start_params *req); |
| 187 | |
| 188 | QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle, |
| 189 | struct hidden_ssid_vdev_restart_params *restart_params); |
| 190 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 191 | QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 192 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 193 | struct peer_flush_params *param); |
| 194 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 195 | QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 196 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 197 | uint8_t vdev_id); |
| 198 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 199 | QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 200 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 201 | struct peer_set_params *param); |
| 202 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 203 | QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 204 | uint8_t bssid[IEEE80211_ADDR_LEN], |
| 205 | struct vdev_up_params *params); |
| 206 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 207 | QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 208 | struct peer_create_params *param); |
| 209 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 210 | QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 211 | uint32_t value, uint8_t mac_id); |
| 212 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 213 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 214 | (*send_pdev_utf_cmd)(wmi_unified_t wmi_handle, |
| 215 | struct pdev_utf_params *param, |
| 216 | uint8_t mac_id); |
| 217 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 218 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 219 | (*send_pdev_param_cmd)(wmi_unified_t wmi_handle, |
| 220 | struct pdev_params *param, |
| 221 | uint8_t mac_id); |
| 222 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 223 | QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 224 | struct suspend_params *param, |
| 225 | uint8_t mac_id); |
| 226 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 227 | QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 228 | uint8_t mac_id); |
| 229 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 230 | QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 231 | struct wow_cmd_params *param, |
| 232 | uint8_t mac_id); |
| 233 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 234 | QDF_STATUS (*send_set_ap_ps_param_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 235 | uint8_t *peer_addr, |
| 236 | struct ap_ps_params *param); |
| 237 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 238 | QDF_STATUS (*send_set_sta_ps_param_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 239 | struct sta_ps_params *param); |
| 240 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 241 | QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 242 | struct crash_inject *param); |
| 243 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 244 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 245 | (*send_dbglog_cmd)(wmi_unified_t wmi_handle, |
| 246 | struct dbglog_params *dbglog_param); |
| 247 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 248 | QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 249 | struct vdev_set_params *param); |
| 250 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 251 | QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 252 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 253 | struct stats_request_params *param); |
| 254 | |
Govind Singh | fa201d9 | 2016-06-08 19:40:11 +0530 | [diff] [blame] | 255 | #ifdef CONFIG_WIN |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 256 | QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle, |
| 257 | WMI_HOST_PKTLOG_EVENT PKTLOG_EVENT); |
| 258 | #else |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 259 | QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 260 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 261 | struct packet_enable_params *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 262 | #endif |
| 263 | |
| 264 | QDF_STATUS (*send_packet_log_disable_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 265 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 266 | QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 267 | struct beacon_params *param); |
| 268 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 269 | QDF_STATUS (*send_beacon_tmpl_send_cmd)(wmi_unified_t wmi_handle, |
| 270 | struct beacon_tmpl_params *param); |
| 271 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 272 | QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 273 | struct peer_assoc_params *param); |
| 274 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 275 | QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 276 | struct scan_start_params *param); |
| 277 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 278 | QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 279 | struct scan_stop_params *param); |
| 280 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 281 | QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 282 | struct scan_chan_list_params *param); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 283 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 284 | QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 285 | struct wmi_mgmt_params *param); |
| 286 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 287 | QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 288 | uint32_t param_value); |
| 289 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 290 | QDF_STATUS (*send_set_sta_ps_mode_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 291 | uint32_t vdev_id, uint8_t val); |
| 292 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 293 | QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 294 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 295 | QDF_STATUS (*send_set_p2pgo_oppps_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 296 | struct p2p_ps_params *oppps); |
| 297 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 298 | QDF_STATUS (*send_set_p2pgo_noa_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 299 | struct p2p_ps_params *noa); |
| 300 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 301 | QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 302 | uint8_t vdev_id, |
| 303 | int value); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 304 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 305 | QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 306 | uint8_t vdev_id, int value); |
| 307 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 308 | QDF_STATUS (*send_set_sta_uapsd_auto_trig_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 309 | struct sta_uapsd_trig_params *param); |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 310 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 311 | QDF_STATUS (*send_ocb_set_utc_time_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 312 | struct ocb_utc_param *utc); |
| 313 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 314 | QDF_STATUS (*send_ocb_get_tsf_timer_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 315 | uint8_t vdev_id); |
| 316 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 317 | QDF_STATUS (*send_ocb_start_timing_advert_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 318 | struct ocb_timing_advert_param *timing_advert); |
| 319 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 320 | QDF_STATUS (*send_ocb_stop_timing_advert_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 321 | struct ocb_timing_advert_param *timing_advert); |
| 322 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 323 | QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 324 | struct dcc_get_stats_param *get_stats_param); |
| 325 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 326 | QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 327 | uint32_t vdev_id, uint32_t dcc_stats_bitmap); |
| 328 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 329 | QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 330 | struct dcc_update_ndl_param *update_ndl_param); |
| 331 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 332 | QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 333 | struct ocb_config_param *config, uint32_t *ch_mhz); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 334 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 335 | QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 336 | struct wmi_lro_config_cmd_t *wmi_lro_cmd); |
| 337 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 338 | QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 339 | struct thermal_cmd_params *thermal_info); |
| 340 | |
Poddar, Siddarth | 794b996 | 2016-04-28 15:49:11 +0530 | [diff] [blame] | 341 | QDF_STATUS (*send_peer_rate_report_cmd)(wmi_unified_t wmi_handle, |
| 342 | struct wmi_peer_rate_report_params *rate_report_params); |
| 343 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 344 | QDF_STATUS (*send_set_mcc_channel_time_quota_cmd) |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 345 | (wmi_unified_t wmi_handle, |
| 346 | uint32_t adapter_1_chan_freq, |
| 347 | uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq); |
| 348 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 349 | QDF_STATUS (*send_set_mcc_channel_time_latency_cmd) |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 350 | (wmi_unified_t wmi_handle, |
| 351 | uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency); |
| 352 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 353 | QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)( |
Govind Singh | 608e889 | 2016-04-16 19:24:23 -0700 | [diff] [blame] | 354 | wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler, |
| 355 | uint32_t pdev_id); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 356 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 357 | QDF_STATUS (*send_p2p_go_set_beacon_ie_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 358 | A_UINT32 vdev_id, uint8_t *p2p_ie); |
| 359 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 360 | QDF_STATUS (*send_probe_rsp_tmpl_send_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 361 | uint8_t vdev_id, |
| 362 | struct wmi_probe_resp_params *probe_rsp_info, |
| 363 | uint8_t *frm); |
| 364 | |
Himanshu Agarwal | 9efd9bf | 2016-03-09 18:49:18 +0530 | [diff] [blame] | 365 | QDF_STATUS (*send_setup_install_key_cmd)(wmi_unified_t wmi_handle, |
| 366 | struct set_key_params *key_params); |
| 367 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 368 | QDF_STATUS (*send_vdev_set_gtx_cfg_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 369 | uint32_t if_id, |
| 370 | struct wmi_gtx_config *gtx_info); |
| 371 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 372 | QDF_STATUS (*send_set_sta_keep_alive_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 373 | struct sta_params *params); |
| 374 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 375 | QDF_STATUS (*send_set_sta_sa_query_param_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 376 | uint8_t vdev_id, uint32_t max_retries, |
| 377 | uint32_t retry_interval); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 378 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 379 | QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 380 | struct gateway_update_req_param *req); |
| 381 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 382 | QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 383 | struct rssi_monitor_param *req); |
| 384 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 385 | QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 386 | struct scan_mac_oui *psetoui); |
| 387 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 388 | QDF_STATUS (*send_reset_passpoint_network_list_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 389 | struct wifi_passpoint_req_param *req); |
Himanshu Agarwal | 5f2d048 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 390 | |
| 391 | QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle, |
| 392 | struct roam_offload_scan_rssi_params *roam_req); |
| 393 | |
| 394 | QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle, |
| 395 | struct roam_scan_filter_params *roam_req); |
| 396 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 397 | QDF_STATUS (*send_set_passpoint_network_list_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 398 | struct wifi_passpoint_req_param *req); |
| 399 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 400 | QDF_STATUS (*send_set_epno_network_list_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 401 | struct wifi_enhanched_pno_params *req); |
| 402 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 403 | QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 404 | struct extscan_capabilities_params *pgetcapab); |
| 405 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 406 | QDF_STATUS (*send_extscan_get_cached_results_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 407 | struct extscan_cached_result_params *pcached_results); |
| 408 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 409 | QDF_STATUS (*send_extscan_stop_change_monitor_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 410 | struct extscan_capabilities_reset_params *reset_req); |
| 411 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 412 | QDF_STATUS (*send_extscan_start_change_monitor_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 413 | struct extscan_set_sig_changereq_params * |
| 414 | psigchange); |
| 415 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 416 | QDF_STATUS (*send_extscan_stop_hotlist_monitor_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 417 | struct extscan_bssid_hotlist_reset_params *photlist_reset); |
| 418 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 419 | QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 420 | struct extscan_stop_req_params *pstopcmd); |
| 421 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 422 | QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 423 | struct wifi_scan_cmd_req_params *pstart); |
| 424 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 425 | QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 426 | const struct plm_req_params *plm); |
| 427 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 428 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 429 | QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 430 | const struct plm_req_params *plm, |
| 431 | uint32_t *gchannel_list); |
| 432 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 433 | QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 434 | uint8_t vdev_id); |
| 435 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 436 | QDF_STATUS (*send_pno_stop_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 437 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 438 | #ifdef FEATURE_WLAN_SCAN_PNO |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 439 | QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 440 | struct pno_scan_req_params *pno, |
| 441 | uint32_t *gchannel_freq_list); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 442 | #endif |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 443 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 444 | QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 445 | struct ipa_offload_control_params *ipa_offload); |
| 446 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 447 | QDF_STATUS (*send_set_ric_req_cmd)(wmi_unified_t wmi_handle, void *msg, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 448 | uint8_t is_add_ts); |
| 449 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 450 | QDF_STATUS (*send_process_ll_stats_clear_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 451 | (wmi_unified_t wmi_handle, |
| 452 | const struct ll_stats_clear_params *clear_req, |
| 453 | uint8_t addr[IEEE80211_ADDR_LEN]); |
| 454 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 455 | QDF_STATUS (*send_process_ll_stats_set_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 456 | (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req); |
| 457 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 458 | QDF_STATUS (*send_process_ll_stats_get_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 459 | (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req, |
| 460 | uint8_t addr[IEEE80211_ADDR_LEN]); |
| 461 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 462 | QDF_STATUS (*send_get_stats_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 463 | struct pe_stats_req *get_stats_param, |
| 464 | uint8_t addr[IEEE80211_ADDR_LEN]); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 465 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 466 | QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 467 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 468 | QDF_STATUS (*send_snr_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 469 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 470 | QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 471 | struct link_status_params *link_status); |
Govind Singh | fa201d9 | 2016-06-08 19:40:11 +0530 | [diff] [blame] | 472 | #ifdef CONFIG_MCL |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 473 | QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 474 | wmi_hb_set_enable_cmd_fixed_param *params); |
| 475 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 476 | QDF_STATUS (*send_lphb_config_tcp_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 477 | wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req); |
| 478 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 479 | QDF_STATUS (*send_lphb_config_tcp_pkt_filter_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 480 | wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp); |
| 481 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 482 | QDF_STATUS (*send_lphb_config_udp_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 483 | wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req); |
| 484 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 485 | QDF_STATUS (*send_lphb_config_udp_pkt_filter_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 486 | wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req); |
| 487 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 488 | QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 489 | wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind); |
| 490 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 491 | QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 492 | wmi_mac_addr peer_macaddr); |
| 493 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 494 | QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 495 | wmi_ap_ps_egap_param_cmd_fixed_param *egap_params); |
Govind Singh | fa201d9 | 2016-06-08 19:40:11 +0530 | [diff] [blame] | 496 | |
| 497 | QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle, |
| 498 | uint8_t vdev_id, |
| 499 | wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]); |
| 500 | |
| 501 | QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle, |
| 502 | wmi_bcn_send_from_host_cmd_fixed_param * param); |
| 503 | |
| 504 | QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle, |
| 505 | wmi_start_scan_cmd_fixed_param * scan_cmd_fp, |
| 506 | struct roam_offload_scan_params *roam_req); |
| 507 | |
| 508 | QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle, |
| 509 | wmi_ap_profile * ap_profile_p, |
| 510 | uint32_t vdev_id); |
| 511 | |
| 512 | QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle, |
| 513 | WMI_PKTLOG_EVENT pktlog_event, |
Nirav Shah | 9d1f1ac | 2016-07-27 19:06:13 +0530 | [diff] [blame] | 514 | WMI_CMD_ID cmd_id, uint8_t user_triggered); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 515 | #endif |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 516 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 517 | QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 518 | uint32_t cmd, uint32_t value1, uint32_t value2); |
| 519 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 520 | QDF_STATUS (*send_wow_sta_ra_filter_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 521 | uint8_t vdev_id, uint8_t default_pattern, |
| 522 | uint16_t rate_limit_interval); |
| 523 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 524 | QDF_STATUS (*send_nat_keepalive_en_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 525 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 526 | QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle, |
Krishna Kumaar Natarajan | 7a59ca0 | 2016-07-21 15:02:44 -0700 | [diff] [blame] | 527 | uint32_t data_len, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 528 | uint8_t *data); |
| 529 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 530 | QDF_STATUS |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 531 | (*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle, |
| 532 | bool dfs_phyerr_filter_offload); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 533 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 534 | QDF_STATUS (*send_add_wow_wakeup_event_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 535 | uint32_t vdev_id, |
| 536 | uint32_t bitmap, |
| 537 | bool enable); |
| 538 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 539 | QDF_STATUS (*send_wow_patterns_to_fw_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 540 | uint8_t vdev_id, uint8_t ptrn_id, |
| 541 | const uint8_t *ptrn, uint8_t ptrn_len, |
| 542 | uint8_t ptrn_offset, const uint8_t *mask, |
| 543 | uint8_t mask_len, bool user, |
| 544 | uint8_t default_patterns); |
| 545 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 546 | QDF_STATUS (*send_wow_delete_pattern_cmd)(wmi_unified_t wmi_handle, uint8_t ptrn_id, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 547 | uint8_t vdev_id); |
| 548 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 549 | QDF_STATUS (*send_host_wakeup_ind_to_fw_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 550 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 551 | QDF_STATUS (*send_del_ts_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 552 | uint8_t ac); |
| 553 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 554 | QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 555 | struct aggr_add_ts_param *aggr_qos_rsp_msg); |
| 556 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 557 | QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 558 | struct add_ts_param *msg); |
| 559 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 560 | QDF_STATUS (*send_enable_disable_packet_filter_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 561 | uint8_t vdev_id, bool enable); |
| 562 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 563 | QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 564 | uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param, |
| 565 | uint8_t filter_id, bool enable); |
| 566 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 567 | QDF_STATUS (*send_add_clear_mcbc_filter_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 568 | uint8_t vdev_id, |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 569 | struct qdf_mac_addr multicast_addr, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 570 | bool clearList); |
| 571 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 572 | QDF_STATUS (*send_gtk_offload_cmd)(wmi_unified_t wmi_handle, uint8_t vdev_id, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 573 | struct gtk_offload_params *params, |
| 574 | bool enable_offload, |
| 575 | uint32_t gtk_offload_opcode); |
| 576 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 577 | QDF_STATUS (*send_process_gtk_offload_getinfo_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 578 | uint8_t vdev_id, |
| 579 | uint64_t offload_req_opcode); |
| 580 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 581 | QDF_STATUS (*send_process_add_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 582 | struct periodic_tx_pattern * |
| 583 | pAddPeriodicTxPtrnParams, |
| 584 | uint8_t vdev_id); |
| 585 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 586 | QDF_STATUS (*send_process_del_periodic_tx_ptrn_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 587 | uint8_t vdev_id, |
| 588 | uint8_t pattern_id); |
| 589 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 590 | QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 591 | struct stats_ext_params *preq); |
| 592 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 593 | QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 594 | struct ext_wow_params *params); |
| 595 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 596 | QDF_STATUS (*send_set_app_type2_params_in_fw_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 597 | struct app_type2_params *appType2Params); |
| 598 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 599 | QDF_STATUS (*send_set_auto_shutdown_timer_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 600 | uint32_t timer_val); |
| 601 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 602 | QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 603 | struct nan_req_params *nan_req); |
| 604 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 605 | QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 606 | struct dhcp_offload_info_params *pDhcpSrvOffloadInfo); |
| 607 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 608 | QDF_STATUS (*send_process_ch_avoid_update_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 609 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 610 | QDF_STATUS (*send_regdomain_info_to_fw_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 611 | uint32_t reg_dmn, uint16_t regdmn2G, |
| 612 | uint16_t regdmn5G, int8_t ctl2G, |
| 613 | int8_t ctl5G); |
| 614 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 615 | QDF_STATUS (*send_set_tdls_offchan_mode_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 616 | struct tdls_channel_switch_params *chan_switch_params); |
| 617 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 618 | QDF_STATUS (*send_update_fw_tdls_state_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 619 | void *tdls_param, uint8_t tdls_state); |
| 620 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 621 | QDF_STATUS (*send_update_tdls_peer_state_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 622 | struct tdls_peer_state_params *peerStateParams, |
| 623 | uint32_t *ch_mhz); |
| 624 | |
| 625 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 626 | QDF_STATUS (*send_process_fw_mem_dump_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 627 | struct fw_dump_req_param *mem_dump_req); |
| 628 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 629 | QDF_STATUS (*send_process_set_ie_info_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 630 | struct vdev_ie_info_param *ie_info); |
Govind Singh | 71ee2d7 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 631 | |
Himanshu Agarwal | 56c292f | 2016-07-19 15:41:51 +0530 | [diff] [blame] | 632 | #ifdef CONFIG_MCL |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 633 | QDF_STATUS (*send_init_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 71ee2d7 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 634 | wmi_resource_config *res_cfg, |
| 635 | uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk, |
| 636 | bool action); |
Himanshu Agarwal | 56c292f | 2016-07-19 15:41:51 +0530 | [diff] [blame] | 637 | #endif |
Govind Singh | 71ee2d7 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 638 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 639 | QDF_STATUS (*save_fw_version_cmd)(wmi_unified_t wmi_handle, void *evt_buf); |
Govind Singh | 71ee2d7 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 640 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 641 | QDF_STATUS (*check_and_update_fw_version_cmd)(wmi_unified_t wmi_hdl, void *ev); |
Govind Singh | 71ee2d7 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 642 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 643 | QDF_STATUS (*send_saved_init_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 644 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 645 | QDF_STATUS (*send_set_base_macaddr_indicate_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 646 | uint8_t *custom_addr); |
| 647 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 648 | QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 649 | uint8_t *event, |
| 650 | uint32_t len); |
| 651 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 652 | QDF_STATUS (*send_enable_specific_fw_logs_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 653 | struct wmi_wifi_start_log *start_log); |
| 654 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 655 | QDF_STATUS (*send_flush_logs_to_fw_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 656 | |
Manishekar Chandrasekaran | b8c5938 | 2016-04-21 19:16:32 +0530 | [diff] [blame] | 657 | QDF_STATUS (*send_pdev_set_pcl_cmd)(wmi_unified_t wmi_handle, |
| 658 | struct wmi_pcl_chan_weights *msg); |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 659 | |
Manishekar Chandrasekaran | 68430d3 | 2016-04-27 12:29:16 +0530 | [diff] [blame] | 660 | QDF_STATUS (*send_pdev_set_hw_mode_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 661 | uint32_t hw_mode_index); |
| 662 | |
Manishekar Chandrasekaran | 81d7aaa | 2016-04-27 12:52:51 +0530 | [diff] [blame] | 663 | QDF_STATUS (*send_pdev_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 664 | struct wmi_dual_mac_config *msg); |
| 665 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 666 | QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle, |
Mukul Sharma | ac755cd | 2016-09-07 20:31:47 +0530 | [diff] [blame] | 667 | struct host_offload_req_param *arp_offload_req, |
| 668 | struct host_offload_req_param *ns_offload_req, |
| 669 | bool arp_only, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 670 | uint8_t vdev_id); |
| 671 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 672 | QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 673 | struct flashing_req_params *flashing); |
| 674 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 675 | QDF_STATUS (*send_app_type1_params_in_fw_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 676 | struct app_type1_params *app_type1_params); |
| 677 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 678 | QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 679 | struct ssid_hotlist_request_params *request); |
| 680 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 681 | QDF_STATUS (*send_process_roam_synch_complete_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 682 | uint8_t vdev_id); |
| 683 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 684 | QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle, |
Anurag Chouhan | 4d41be7 | 2016-07-22 20:19:54 +0530 | [diff] [blame] | 685 | struct wmi_unit_test_cmd *wmi_utest); |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 686 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 687 | QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 688 | struct wmi_roam_invoke_cmd *roaminvoke, |
| 689 | uint32_t ch_hz); |
| 690 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 691 | QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 692 | uint32_t command, uint32_t vdev_id); |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 693 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 694 | QDF_STATUS (*send_roam_scan_offload_scan_period_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 695 | uint32_t scan_period, |
| 696 | uint32_t scan_age, |
| 697 | uint32_t vdev_id); |
| 698 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 699 | QDF_STATUS (*send_roam_scan_offload_chan_list_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 700 | uint8_t chan_count, |
Varun Reddy Yeturu | b47fa40 | 2016-07-07 17:42:49 -0700 | [diff] [blame] | 701 | uint32_t *chan_list, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 702 | uint8_t list_type, uint32_t vdev_id); |
| 703 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 704 | QDF_STATUS (*send_roam_scan_offload_rssi_change_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 705 | 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 Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 710 | QDF_STATUS (*send_get_buf_extscan_hotlist_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 711 | struct ext_scan_setbssi_hotlist_params * |
| 712 | photlist, int *buf_len); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 713 | |
| 714 | QDF_STATUS (*send_pdev_get_tpc_config_cmd)(wmi_unified_t wmi_handle, |
| 715 | uint32_t param); |
| 716 | |
Sathish Kumar | 50232d7 | 2016-08-09 16:50:46 +0530 | [diff] [blame] | 717 | QDF_STATUS (*send_set_bwf_cmd)(wmi_unified_t wmi_handle, |
| 718 | struct set_bwf_params *param); |
| 719 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 720 | QDF_STATUS (*send_set_atf_cmd)(wmi_unified_t wmi_handle, |
| 721 | struct set_atf_params *param); |
| 722 | |
| 723 | QDF_STATUS (*send_pdev_fips_cmd)(wmi_unified_t wmi_handle, |
| 724 | struct fips_params *param); |
| 725 | |
| 726 | QDF_STATUS (*send_wlan_profile_enable_cmd)(wmi_unified_t wmi_handle, |
| 727 | struct wlan_profile_params *param); |
| 728 | |
| 729 | QDF_STATUS (*send_wlan_profile_trigger_cmd)(wmi_unified_t wmi_handle, |
| 730 | struct wlan_profile_params *param); |
| 731 | |
| 732 | QDF_STATUS (*send_pdev_set_chan_cmd)(wmi_unified_t wmi_handle, |
| 733 | struct channel_param *param); |
| 734 | |
| 735 | QDF_STATUS (*send_set_ht_ie_cmd)(wmi_unified_t wmi_handle, |
| 736 | struct ht_ie_params *param); |
| 737 | |
| 738 | QDF_STATUS (*send_set_vht_ie_cmd)(wmi_unified_t wmi_handle, |
| 739 | struct vht_ie_params *param); |
| 740 | |
| 741 | QDF_STATUS (*send_wmm_update_cmd)(wmi_unified_t wmi_handle, |
| 742 | struct wmm_update_params *param); |
| 743 | |
| 744 | QDF_STATUS (*send_set_ant_switch_tbl_cmd)(wmi_unified_t wmi_handle, |
| 745 | struct ant_switch_tbl_params *param); |
| 746 | |
| 747 | QDF_STATUS (*send_set_ratepwr_table_cmd)(wmi_unified_t wmi_handle, |
| 748 | struct ratepwr_table_params *param); |
| 749 | |
| 750 | QDF_STATUS (*send_get_ratepwr_table_cmd)(wmi_unified_t wmi_handle); |
| 751 | |
| 752 | QDF_STATUS (*send_set_ctl_table_cmd)(wmi_unified_t wmi_handle, |
| 753 | struct ctl_table_params *param); |
| 754 | |
| 755 | QDF_STATUS (*send_set_mimogain_table_cmd)(wmi_unified_t wmi_handle, |
| 756 | struct mimogain_table_params *param); |
| 757 | |
| 758 | QDF_STATUS (*send_set_ratepwr_chainmsk_cmd)(wmi_unified_t wmi_handle, |
| 759 | struct ratepwr_chainmsk_params *param); |
| 760 | |
| 761 | QDF_STATUS (*send_set_macaddr_cmd)(wmi_unified_t wmi_handle, |
| 762 | struct macaddr_params *param); |
| 763 | |
| 764 | QDF_STATUS (*send_pdev_scan_start_cmd)(wmi_unified_t wmi_handle); |
| 765 | |
| 766 | QDF_STATUS (*send_pdev_scan_end_cmd)(wmi_unified_t wmi_handle); |
| 767 | |
| 768 | QDF_STATUS (*send_set_acparams_cmd)(wmi_unified_t wmi_handle, |
| 769 | struct acparams_params *param); |
| 770 | |
| 771 | QDF_STATUS (*send_set_vap_dscp_tid_map_cmd)(wmi_unified_t wmi_handle, |
| 772 | struct vap_dscp_tid_map_params *param); |
| 773 | |
| 774 | QDF_STATUS (*send_proxy_ast_reserve_cmd)(wmi_unified_t wmi_handle, |
| 775 | struct proxy_ast_reserve_params *param); |
| 776 | |
| 777 | QDF_STATUS (*send_pdev_qvit_cmd)(wmi_unified_t wmi_handle, |
| 778 | struct pdev_qvit_params *param); |
| 779 | |
| 780 | QDF_STATUS (*send_mcast_group_update_cmd)(wmi_unified_t wmi_handle, |
| 781 | struct mcast_group_update_params *param); |
| 782 | |
| 783 | QDF_STATUS (*send_peer_add_wds_entry_cmd)(wmi_unified_t wmi_handle, |
| 784 | struct peer_add_wds_entry_params *param); |
| 785 | |
| 786 | QDF_STATUS (*send_peer_del_wds_entry_cmd)(wmi_unified_t wmi_handle, |
| 787 | struct peer_del_wds_entry_params *param); |
| 788 | |
| 789 | QDF_STATUS (*send_peer_update_wds_entry_cmd)(wmi_unified_t wmi_handle, |
| 790 | struct peer_update_wds_entry_params *param); |
| 791 | |
| 792 | QDF_STATUS (*send_phyerr_enable_cmd)(wmi_unified_t wmi_handle); |
| 793 | |
| 794 | QDF_STATUS (*send_phyerr_disable_cmd)(wmi_unified_t wmi_handle); |
| 795 | |
| 796 | QDF_STATUS (*send_smart_ant_enable_cmd)(wmi_unified_t wmi_handle, |
| 797 | struct smart_ant_enable_params *param); |
| 798 | |
| 799 | QDF_STATUS (*send_smart_ant_set_rx_ant_cmd)(wmi_unified_t wmi_handle, |
| 800 | struct smart_ant_rx_ant_params *param); |
| 801 | |
| 802 | QDF_STATUS (*send_smart_ant_set_tx_ant_cmd)(wmi_unified_t wmi_handle, |
| 803 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 804 | struct smart_ant_tx_ant_params *param); |
| 805 | |
| 806 | QDF_STATUS (*send_smart_ant_set_training_info_cmd)(wmi_unified_t wmi_handle, |
| 807 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 808 | struct smart_ant_training_info_params *param); |
| 809 | |
| 810 | QDF_STATUS (*send_smart_ant_set_node_config_cmd)(wmi_unified_t wmi_handle, |
| 811 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 812 | struct smart_ant_node_config_params *param); |
| 813 | |
| 814 | QDF_STATUS (*send_smart_ant_enable_tx_feedback_cmd)(wmi_unified_t wmi_handle, |
| 815 | struct smart_ant_enable_tx_feedback_params *param); |
| 816 | |
| 817 | QDF_STATUS (*send_vdev_spectral_configure_cmd)(wmi_unified_t wmi_handle, |
| 818 | struct vdev_spectral_configure_params *param); |
| 819 | |
| 820 | QDF_STATUS (*send_vdev_spectral_enable_cmd)(wmi_unified_t wmi_handle, |
| 821 | struct vdev_spectral_enable_params *param); |
| 822 | |
| 823 | QDF_STATUS (*send_bss_chan_info_request_cmd)(wmi_unified_t wmi_handle, |
| 824 | struct bss_chan_info_request_params *param); |
| 825 | |
| 826 | QDF_STATUS (*send_thermal_mitigation_param_cmd)(wmi_unified_t wmi_handle, |
| 827 | struct thermal_mitigation_params *param); |
| 828 | |
| 829 | QDF_STATUS (*send_vdev_set_neighbour_rx_cmd)(wmi_unified_t wmi_handle, |
| 830 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 831 | struct set_neighbour_rx_params *param); |
| 832 | |
| 833 | QDF_STATUS (*send_vdev_set_fwtest_param_cmd)(wmi_unified_t wmi_handle, |
| 834 | struct set_fwtest_params *param); |
| 835 | |
| 836 | QDF_STATUS (*send_vdev_config_ratemask_cmd)(wmi_unified_t wmi_handle, |
| 837 | struct config_ratemask_params *param); |
| 838 | |
| 839 | QDF_STATUS (*send_vdev_install_key_cmd)(wmi_unified_t wmi_handle, |
| 840 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 841 | struct vdev_install_key_params *param); |
| 842 | |
| 843 | QDF_STATUS (*send_wow_wakeup_cmd)(wmi_unified_t wmi_handle); |
| 844 | |
| 845 | QDF_STATUS (*send_wow_add_wakeup_event_cmd)(wmi_unified_t wmi_handle, |
| 846 | struct wow_add_wakeup_params *param); |
| 847 | |
| 848 | QDF_STATUS (*send_wow_add_wakeup_pattern_cmd)(wmi_unified_t wmi_handle, |
| 849 | struct wow_add_wakeup_pattern_params *param); |
| 850 | |
| 851 | QDF_STATUS (*send_wow_remove_wakeup_pattern_cmd)(wmi_unified_t wmi_handle, |
| 852 | struct wow_remove_wakeup_pattern_params *param); |
| 853 | |
| 854 | QDF_STATUS (*send_pdev_set_regdomain_cmd)(wmi_unified_t wmi_handle, |
| 855 | struct pdev_set_regdomain_params *param); |
| 856 | |
| 857 | QDF_STATUS (*send_set_quiet_mode_cmd)(wmi_unified_t wmi_handle, |
| 858 | struct set_quiet_mode_params *param); |
| 859 | |
| 860 | QDF_STATUS (*send_set_beacon_filter_cmd)(wmi_unified_t wmi_handle, |
| 861 | struct set_beacon_filter_params *param); |
| 862 | |
| 863 | QDF_STATUS (*send_remove_beacon_filter_cmd)(wmi_unified_t wmi_handle, |
| 864 | struct remove_beacon_filter_params *param); |
| 865 | /* |
| 866 | QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle, |
| 867 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 868 | struct mgmt_params *param); |
| 869 | */ |
| 870 | |
| 871 | QDF_STATUS (*send_addba_clearresponse_cmd)(wmi_unified_t wmi_handle, |
| 872 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 873 | struct addba_clearresponse_params *param); |
| 874 | |
| 875 | QDF_STATUS (*send_addba_send_cmd)(wmi_unified_t wmi_handle, |
| 876 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 877 | struct addba_send_params *param); |
| 878 | |
| 879 | QDF_STATUS (*send_delba_send_cmd)(wmi_unified_t wmi_handle, |
| 880 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 881 | struct delba_send_params *param); |
| 882 | |
| 883 | QDF_STATUS (*send_addba_setresponse_cmd)(wmi_unified_t wmi_handle, |
| 884 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 885 | struct addba_setresponse_params *param); |
| 886 | |
| 887 | QDF_STATUS (*send_singleamsdu_cmd)(wmi_unified_t wmi_handle, |
| 888 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 889 | struct singleamsdu_params *param); |
| 890 | |
| 891 | QDF_STATUS (*send_set_qboost_param_cmd)(wmi_unified_t wmi_handle, |
| 892 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 893 | struct set_qboost_params *param); |
| 894 | |
| 895 | QDF_STATUS (*send_mu_scan_cmd)(wmi_unified_t wmi_handle, |
| 896 | struct mu_scan_params *param); |
| 897 | |
| 898 | QDF_STATUS (*send_lteu_config_cmd)(wmi_unified_t wmi_handle, |
| 899 | struct lteu_config_params *param); |
| 900 | |
| 901 | QDF_STATUS (*send_set_ps_mode_cmd)(wmi_unified_t wmi_handle, |
| 902 | struct set_ps_mode_params *param); |
| 903 | void (*save_service_bitmap)(wmi_unified_t wmi_handle, |
| 904 | void *evt_buf); |
| 905 | bool (*is_service_enabled)(wmi_unified_t wmi_handle, |
| 906 | uint32_t service_id); |
| 907 | QDF_STATUS (*get_target_cap_from_service_ready)(wmi_unified_t wmi_handle, |
| 908 | void *evt_buf, target_capability_info *ev); |
| 909 | |
| 910 | QDF_STATUS (*extract_fw_version)(wmi_unified_t wmi_handle, |
| 911 | void *ev, struct wmi_host_fw_ver *fw_ver); |
| 912 | |
| 913 | QDF_STATUS (*extract_fw_abi_version)(wmi_unified_t wmi_handle, |
| 914 | void *ev, struct wmi_host_fw_abi_ver *fw_ver); |
| 915 | |
| 916 | QDF_STATUS (*extract_hal_reg_cap)(wmi_unified_t wmi_handle, void *evt_buf, |
| 917 | TARGET_HAL_REG_CAPABILITIES *hal_reg_cap); |
| 918 | |
| 919 | host_mem_req * (*extract_host_mem_req)(wmi_unified_t wmi_handle, |
| 920 | void *evt_buf, uint8_t *num_entries); |
| 921 | |
| 922 | QDF_STATUS (*init_cmd_send)(wmi_unified_t wmi_handle, |
| 923 | target_resource_config *res_cfg, |
| 924 | uint8_t num_mem_chunks, |
| 925 | struct wmi_host_mem_chunk *mem_chunk); |
| 926 | |
| 927 | QDF_STATUS (*save_fw_version)(wmi_unified_t wmi_handle, void *evt_buf); |
| 928 | uint32_t (*ready_extract_init_status)(wmi_unified_t wmi_hdl, void *ev); |
| 929 | QDF_STATUS (*ready_extract_mac_addr)(wmi_unified_t wmi_hdl, void *ev, |
| 930 | uint8_t *macaddr); |
| 931 | QDF_STATUS (*check_and_update_fw_version)(wmi_unified_t wmi_hdl, void *ev); |
| 932 | uint8_t* (*extract_dbglog_data_len)(wmi_unified_t wmi_handle, void *evt_buf, |
| 933 | uint16_t *len); |
| 934 | QDF_STATUS (*send_ext_resource_config)(wmi_unified_t wmi_handle, |
| 935 | wmi_host_ext_resource_config *ext_cfg); |
| 936 | |
| 937 | QDF_STATUS (*send_nf_dbr_dbm_info_get_cmd)(wmi_unified_t wmi_handle); |
| 938 | |
| 939 | QDF_STATUS (*send_packet_power_info_get_cmd)(wmi_unified_t wmi_handle, |
| 940 | struct packet_power_info_params *param); |
| 941 | |
| 942 | QDF_STATUS (*send_gpio_config_cmd)(wmi_unified_t wmi_handle, |
| 943 | struct gpio_config_params *param); |
| 944 | |
| 945 | QDF_STATUS (*send_gpio_output_cmd)(wmi_unified_t wmi_handle, |
| 946 | struct gpio_output_params *param); |
| 947 | |
| 948 | QDF_STATUS (*send_rtt_meas_req_test_cmd)(wmi_unified_t wmi_handle, |
| 949 | struct rtt_meas_req_test_params *param); |
| 950 | |
| 951 | QDF_STATUS (*send_rtt_meas_req_cmd)(wmi_unified_t wmi_handle, |
| 952 | struct rtt_meas_req_params *param); |
| 953 | |
| 954 | QDF_STATUS (*send_rtt_keepalive_req_cmd)(wmi_unified_t wmi_handle, |
| 955 | struct rtt_keepalive_req_params *param); |
| 956 | |
| 957 | QDF_STATUS (*send_lci_set_cmd)(wmi_unified_t wmi_handle, |
| 958 | struct lci_set_params *param); |
| 959 | |
| 960 | QDF_STATUS (*send_lcr_set_cmd)(wmi_unified_t wmi_handle, |
| 961 | struct lcr_set_params *param); |
| 962 | |
| 963 | QDF_STATUS (*send_periodic_chan_stats_config_cmd)(wmi_unified_t wmi_handle, |
| 964 | struct periodic_chan_stats_params *param); |
| 965 | |
| 966 | QDF_STATUS |
| 967 | (*send_atf_peer_request_cmd)(wmi_unified_t wmi_handle, |
| 968 | struct atf_peer_request_params *param); |
| 969 | |
| 970 | QDF_STATUS |
| 971 | (*send_set_atf_grouping_cmd)(wmi_unified_t wmi_handle, |
| 972 | struct atf_grouping_params *param); |
| 973 | |
Sathish Kumar | 7e2eaed | 2016-11-14 17:44:29 +0530 | [diff] [blame] | 974 | QDF_STATUS (*send_get_user_position_cmd)(wmi_unified_t wmi_handle, |
| 975 | uint32_t value); |
| 976 | |
| 977 | QDF_STATUS |
| 978 | (*send_reset_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle, |
| 979 | uint32_t value); |
| 980 | |
| 981 | QDF_STATUS (*send_get_peer_mumimo_tx_count_cmd)(wmi_unified_t wmi_handle, |
| 982 | uint32_t value); |
| 983 | |
| 984 | QDF_STATUS |
| 985 | (*send_pdev_caldata_version_check_cmd)(wmi_unified_t wmi_handle, |
| 986 | uint32_t value); |
| 987 | |
| 988 | QDF_STATUS |
Sathish Kumar | 7e566c5 | 2016-11-10 15:30:22 +0530 | [diff] [blame] | 989 | (*send_btcoex_wlan_priority_cmd)(wmi_unified_t wmi_handle, |
| 990 | struct btcoex_cfg_params *param); |
| 991 | |
| 992 | QDF_STATUS |
| 993 | (*send_btcoex_duty_cycle_cmd)(wmi_unified_t wmi_handle, |
| 994 | struct btcoex_cfg_params *param); |
Sathish Kumar | 7e2eaed | 2016-11-14 17:44:29 +0530 | [diff] [blame] | 995 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 996 | QDF_STATUS (*extract_wds_addr_event)(wmi_unified_t wmi_handle, |
| 997 | void *evt_buf, uint16_t len, wds_addr_event_t *wds_ev); |
| 998 | |
| 999 | QDF_STATUS (*extract_dcs_interference_type)(wmi_unified_t wmi_handle, |
| 1000 | void *evt_buf, uint32_t *interference_type); |
| 1001 | |
| 1002 | QDF_STATUS (*extract_dcs_cw_int)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1003 | wmi_host_ath_dcs_cw_int *cw_int); |
| 1004 | |
| 1005 | QDF_STATUS (*extract_dcs_im_tgt_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1006 | wmi_host_dcs_im_tgt_stats_t *wlan_stat); |
| 1007 | |
| 1008 | QDF_STATUS (*extract_fips_event_error_status)(wmi_unified_t wmi_handle, |
| 1009 | void *evt_buf, uint32_t *err_status); |
| 1010 | |
| 1011 | QDF_STATUS (*extract_fips_event_data)(wmi_unified_t wmi_handle, |
| 1012 | void *evt_buf, uint32_t *data_len, uint32_t **data); |
| 1013 | QDF_STATUS (*extract_vdev_start_resp)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1014 | wmi_host_vdev_start_resp *vdev_rsp); |
| 1015 | |
| 1016 | QDF_STATUS (*extract_tbttoffset_update_params)(void *wmi_hdl, void *evt_buf, |
| 1017 | uint32_t *vdev_map, uint32_t **tbttoffset_list); |
| 1018 | |
| 1019 | QDF_STATUS (*extract_mgmt_rx_params)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1020 | wmi_host_mgmt_rx_hdr *hdr, uint8_t **bufp); |
| 1021 | |
| 1022 | QDF_STATUS (*extract_vdev_stopped_param)(wmi_unified_t wmi_handle, |
| 1023 | void *evt_buf, uint32_t *vdev_id); |
| 1024 | |
| 1025 | QDF_STATUS (*extract_vdev_roam_param)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1026 | wmi_host_roam_event *param); |
| 1027 | |
| 1028 | QDF_STATUS (*extract_vdev_scan_ev_param)(wmi_unified_t wmi_handle, |
| 1029 | void *evt_buf, wmi_host_scan_event *param); |
| 1030 | |
| 1031 | QDF_STATUS (*extract_mu_ev_param)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1032 | wmi_host_mu_report_event *param); |
| 1033 | |
Sathish Kumar | 7e2eaed | 2016-11-14 17:44:29 +0530 | [diff] [blame] | 1034 | QDF_STATUS (*extract_mu_db_entry)(wmi_unified_t wmi_hdl, void *evt_buf, |
| 1035 | uint8_t idx, wmi_host_mu_db_entry *param); |
| 1036 | |
| 1037 | QDF_STATUS (*extract_mumimo_tx_count_ev_param)(wmi_unified_t wmi_handle, |
| 1038 | void *evt_buf, wmi_host_peer_txmu_cnt_event *param); |
| 1039 | |
| 1040 | QDF_STATUS (*extract_peer_gid_userpos_list_ev_param)(wmi_unified_t wmi_handle, |
| 1041 | void *evt_buf, wmi_host_peer_gid_userpos_list_event *param); |
| 1042 | |
| 1043 | QDF_STATUS (*extract_pdev_caldata_version_check_ev_param)( |
| 1044 | wmi_unified_t wmi_handle, |
| 1045 | void *evt_buf, wmi_host_pdev_check_cal_version_event *param); |
| 1046 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1047 | QDF_STATUS (*extract_pdev_tpc_config_ev_param)(wmi_unified_t wmi_handle, |
| 1048 | void *evt_buf, wmi_host_pdev_tpc_config_event *param); |
| 1049 | |
| 1050 | QDF_STATUS (*extract_gpio_input_ev_param)(wmi_unified_t wmi_handle, |
| 1051 | void *evt_buf, uint32_t *gpio_num); |
| 1052 | |
| 1053 | QDF_STATUS (*extract_pdev_reserve_ast_ev_param)(wmi_unified_t wmi_handle, |
| 1054 | void *evt_buf, uint32_t *result); |
| 1055 | |
| 1056 | QDF_STATUS (*extract_nfcal_power_ev_param)(wmi_unified_t wmi_handle, |
| 1057 | void *evt_buf, |
| 1058 | wmi_host_pdev_nfcal_power_all_channels_event *param); |
| 1059 | |
| 1060 | QDF_STATUS (*extract_pdev_tpc_ev_param)(wmi_unified_t wmi_handle, |
| 1061 | void *evt_buf, wmi_host_pdev_tpc_event *param); |
| 1062 | |
| 1063 | QDF_STATUS (*extract_pdev_generic_buffer_ev_param)(wmi_unified_t wmi_handle, |
| 1064 | void *evt_buf, wmi_host_pdev_generic_buffer_event *param); |
| 1065 | |
| 1066 | QDF_STATUS (*extract_mgmt_tx_compl_param)(wmi_unified_t wmi_handle, |
| 1067 | void *evt_buf, wmi_host_mgmt_tx_compl_event *param); |
| 1068 | |
| 1069 | QDF_STATUS (*extract_swba_vdev_map)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1070 | uint32_t *vdev_map); |
| 1071 | |
| 1072 | QDF_STATUS (*extract_swba_tim_info)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1073 | uint32_t idx, wmi_host_tim_info *tim_info); |
| 1074 | |
| 1075 | QDF_STATUS (*extract_swba_noa_info)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1076 | uint32_t idx, wmi_host_p2p_noa_info *p2p_desc); |
| 1077 | |
| 1078 | QDF_STATUS (*extract_peer_sta_ps_statechange_ev)(wmi_unified_t wmi_handle, |
| 1079 | void *evt_buf, wmi_host_peer_sta_ps_statechange_event *ev); |
| 1080 | |
| 1081 | QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle, |
| 1082 | void *evt_buf, wmi_host_peer_sta_kickout_event *ev); |
| 1083 | |
| 1084 | QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle, |
| 1085 | void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap); |
| 1086 | |
| 1087 | QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1088 | uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr); |
| 1089 | |
| 1090 | QDF_STATUS (*extract_single_phyerr)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1091 | uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr); |
| 1092 | |
| 1093 | QDF_STATUS (*extract_composite_phyerr)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1094 | uint16_t datalen, wmi_host_phyerr_t *phyerr); |
| 1095 | |
| 1096 | QDF_STATUS (*extract_rtt_hdr)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1097 | wmi_host_rtt_event_hdr *ev); |
| 1098 | |
| 1099 | QDF_STATUS (*extract_rtt_ev)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1100 | wmi_host_rtt_meas_event *ev, uint8_t *hdump, uint16_t hdump_len); |
| 1101 | |
| 1102 | QDF_STATUS (*extract_rtt_error_report_ev)(wmi_unified_t wmi_handle, |
| 1103 | void *evt_buf, wmi_host_rtt_error_report_event *ev); |
| 1104 | |
| 1105 | QDF_STATUS (*extract_all_stats_count)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1106 | wmi_host_stats_event *stats_param); |
| 1107 | |
| 1108 | QDF_STATUS (*extract_pdev_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1109 | uint32_t index, wmi_host_pdev_stats *pdev_stats); |
| 1110 | |
| 1111 | QDF_STATUS (*extract_pdev_ext_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1112 | uint32_t index, wmi_host_pdev_ext_stats *pdev_ext_stats); |
| 1113 | |
| 1114 | QDF_STATUS (*extract_vdev_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1115 | uint32_t index, wmi_host_vdev_stats *vdev_stats); |
| 1116 | |
| 1117 | QDF_STATUS (*extract_peer_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1118 | uint32_t index, wmi_host_peer_stats *peer_stats); |
| 1119 | |
| 1120 | QDF_STATUS (*extract_bcnflt_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1121 | uint32_t index, wmi_host_bcnflt_stats *bcnflt_stats); |
| 1122 | |
| 1123 | QDF_STATUS (*extract_peer_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1124 | uint32_t index, wmi_host_peer_extd_stats *peer_extd_stats); |
| 1125 | |
| 1126 | QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1127 | uint32_t index, wmi_host_chan_stats *chan_stats); |
| 1128 | |
| 1129 | QDF_STATUS (*extract_thermal_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1130 | uint32_t *temp, uint32_t *level); |
| 1131 | |
| 1132 | QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle, |
| 1133 | void *evt_buf, uint8_t idx, uint32_t *levelcount, |
| 1134 | uint32_t *dccount); |
| 1135 | |
| 1136 | QDF_STATUS (*extract_profile_ctx)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1137 | wmi_host_wlan_profile_ctx_t *profile_ctx); |
| 1138 | |
| 1139 | QDF_STATUS (*extract_profile_data)(wmi_unified_t wmi_handle, void *evt_buf, |
Govind Singh | 41da315 | 2016-05-06 20:20:25 +0530 | [diff] [blame] | 1140 | uint8_t idx, |
| 1141 | wmi_host_wlan_profile_t *profile_data); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1142 | |
| 1143 | QDF_STATUS (*extract_chan_info_event)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1144 | wmi_host_chan_info_event *chan_info); |
| 1145 | |
| 1146 | QDF_STATUS (*extract_channel_hopping_event)(wmi_unified_t wmi_handle, |
| 1147 | void *evt_buf, |
| 1148 | wmi_host_pdev_channel_hopping_event *ch_hopping); |
| 1149 | |
| 1150 | QDF_STATUS (*extract_bss_chan_info_event)(wmi_unified_t wmi_handle, |
| 1151 | void *evt_buf, |
| 1152 | wmi_host_pdev_bss_chan_info_event *bss_chan_info); |
| 1153 | |
| 1154 | QDF_STATUS (*extract_inst_rssi_stats_event)(wmi_unified_t wmi_handle, |
| 1155 | void *evt_buf, wmi_host_inst_stats_resp *inst_rssi_resp); |
| 1156 | |
| 1157 | QDF_STATUS (*extract_tx_data_traffic_ctrl_ev)(wmi_unified_t wmi_handle, |
| 1158 | void *evt_buf, wmi_host_tx_data_traffic_ctrl_event *ev); |
| 1159 | |
Sathish Kumar | 7e2eaed | 2016-11-14 17:44:29 +0530 | [diff] [blame] | 1160 | QDF_STATUS (*extract_atf_peer_stats_ev)(wmi_unified_t wmi_handle, |
| 1161 | void *evt_buf, wmi_host_atf_peer_stats_event *ev); |
| 1162 | |
| 1163 | QDF_STATUS (*extract_atf_token_info_ev)(wmi_unified_t wmi_handle, |
| 1164 | void *evt_buf, |
| 1165 | uint8_t idx, |
| 1166 | wmi_host_atf_peer_stats_info *atf_token_info); |
| 1167 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1168 | QDF_STATUS (*extract_vdev_extd_stats)(wmi_unified_t wmi_handle, void *evt_buf, |
| 1169 | uint32_t index, wmi_host_vdev_extd_stats *vdev_extd_stats); |
Govind Singh | c10bde8 | 2016-05-02 17:59:24 +0530 | [diff] [blame] | 1170 | |
| 1171 | QDF_STATUS (*send_power_dbg_cmd)(wmi_unified_t wmi_handle, |
| 1172 | struct wmi_power_dbg_params *param); |
Gupta, Kapil | 7b76800 | 2016-04-25 19:14:19 +0530 | [diff] [blame] | 1173 | |
| 1174 | QDF_STATUS (*send_adapt_dwelltime_params_cmd)(wmi_unified_t wmi_handle, |
| 1175 | struct wmi_adaptive_dwelltime_params *dwelltime_params); |
Anurag Chouhan | 4d41be7 | 2016-07-22 20:19:54 +0530 | [diff] [blame] | 1176 | |
| 1177 | QDF_STATUS (*send_fw_test_cmd)(wmi_unified_t wmi_handle, |
| 1178 | struct set_fwtest_params *wmi_fwtest); |
Padma, Santhosh Kumar | 7352405 | 2016-09-11 18:24:59 +0530 | [diff] [blame] | 1179 | |
| 1180 | QDF_STATUS (*send_encrypt_decrypt_send_cmd)(wmi_unified_t wmi_handle, |
| 1181 | struct encrypt_decrypt_req_params *params); |
Leo Chang | 8184e9c | 2016-09-28 13:43:36 -0700 | [diff] [blame] | 1182 | |
Manikandan Mohan | 7e5ad48 | 2016-12-13 13:14:06 -0800 | [diff] [blame] | 1183 | QDF_STATUS (*send_sar_limit_cmd)(wmi_unified_t wmi_handle, |
| 1184 | struct sar_limit_cmd_params *params); |
| 1185 | |
Leo Chang | 8184e9c | 2016-09-28 13:43:36 -0700 | [diff] [blame] | 1186 | QDF_STATUS (*send_peer_rx_reorder_queue_setup_cmd)(wmi_unified_t wmi_handle, |
| 1187 | struct rx_reorder_queue_setup_params *param); |
| 1188 | |
| 1189 | QDF_STATUS (*send_peer_rx_reorder_queue_remove_cmd)(wmi_unified_t wmi_handle, |
| 1190 | struct rx_reorder_queue_remove_params *param); |
Kiran Venkatappa | 9c71b36 | 2016-08-10 23:55:40 +0530 | [diff] [blame] | 1191 | |
| 1192 | QDF_STATUS (*extract_service_ready_ext)(wmi_unified_t wmi_handle, |
| 1193 | uint8_t *evt_buf, |
| 1194 | struct wmi_host_service_ext_param *param); |
| 1195 | |
| 1196 | QDF_STATUS (*extract_hw_mode_cap_service_ready_ext)( |
| 1197 | wmi_unified_t wmi_handle, |
| 1198 | uint8_t *evt_buf, uint8_t hw_mode_idx, |
| 1199 | struct wmi_host_hw_mode_caps *param); |
| 1200 | |
| 1201 | QDF_STATUS (*extract_mac_phy_cap_service_ready_ext)( |
| 1202 | wmi_unified_t wmi_handle, |
| 1203 | uint8_t *evt_buf, uint8_t hw_mode_idx, |
| 1204 | struct wmi_host_mac_phy_caps *param); |
| 1205 | |
| 1206 | QDF_STATUS (*extract_reg_cap_service_ready_ext)( |
| 1207 | wmi_unified_t wmi_handle, |
| 1208 | uint8_t *evt_buf, uint8_t phy_idx, |
| 1209 | struct WMI_HOST_HAL_REG_CAPABILITIES_EXT *param); |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1210 | }; |
| 1211 | |
| 1212 | struct target_abi_version { |
| 1213 | A_UINT32 abi_version_0; |
| 1214 | /** WMI Major and Minor versions */ |
| 1215 | A_UINT32 abi_version_1; |
| 1216 | /** WMI change revision */ |
| 1217 | A_UINT32 abi_version_ns_0; |
| 1218 | /** ABI version namespace first four dwords */ |
| 1219 | A_UINT32 abi_version_ns_1; |
| 1220 | /** ABI version namespace second four dwords */ |
| 1221 | A_UINT32 abi_version_ns_2; |
| 1222 | /** ABI version namespace third four dwords */ |
| 1223 | A_UINT32 abi_version_ns_3; |
| 1224 | /** ABI version namespace fourth four dwords */ |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 1225 | }; |
| 1226 | |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1227 | /** |
| 1228 | * struct wmi_init_cmd - Saved wmi INIT command |
| 1229 | * @buf: Buffer containing the wmi INIT command |
| 1230 | * @buf_len: Length of the buffer |
| 1231 | */ |
Govind Singh | ec0bdef | 2016-03-16 16:27:50 +0530 | [diff] [blame] | 1232 | struct wmi_cmd_init { |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1233 | wmi_buf_t buf; |
| 1234 | uint32_t buf_len; |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 1235 | }; |
| 1236 | |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1237 | struct wmi_unified { |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1238 | void *scn_handle; /* handle to device */ |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 1239 | osdev_t osdev; /* handle to use OS-independent services */ |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1240 | qdf_atomic_t pending_cmds; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1241 | HTC_ENDPOINT_ID wmi_endpoint_id; |
| 1242 | uint16_t max_msg_len; |
Himanshu Agarwal | 56c292f | 2016-07-19 15:41:51 +0530 | [diff] [blame] | 1243 | uint32_t event_id[WMI_UNIFIED_MAX_EVENT]; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1244 | wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT]; |
Govind Singh | 4ec6ff9 | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 1245 | enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT]; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1246 | uint32_t max_event_idx; |
| 1247 | void *htc_handle; |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1248 | qdf_spinlock_t eventq_lock; |
| 1249 | qdf_nbuf_queue_t event_queue; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1250 | struct work_struct rx_event_work; |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 1251 | int wmi_stop_in_progress; |
Kiran Venkatappa | 9da7e04 | 2016-08-09 22:52:35 +0530 | [diff] [blame] | 1252 | #ifdef CONFIG_MCL |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1253 | struct _wmi_abi_version fw_abi_version; |
| 1254 | struct _wmi_abi_version final_abi_vers; |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1255 | #endif |
Govind Singh | ec0bdef | 2016-03-16 16:27:50 +0530 | [diff] [blame] | 1256 | struct wmi_cmd_init saved_wmi_init_cmd; |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 1257 | uint32_t num_of_diag_events_logs; |
| 1258 | uint32_t *events_logs_list; |
| 1259 | struct host_offload_req_param arp_info; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1260 | #ifdef WLAN_OPEN_SOURCE |
| 1261 | struct fwdebug dbglog; |
| 1262 | struct dentry *debugfs_phy; |
| 1263 | #endif /* WLAN_OPEN_SOURCE */ |
| 1264 | |
| 1265 | #ifdef WMI_INTERFACE_EVENT_LOGGING |
Govind Singh | 5fed03b | 2016-05-12 12:45:51 +0530 | [diff] [blame] | 1266 | struct wmi_debug_log_info log_info; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1267 | #endif /*WMI_INTERFACE_EVENT_LOGGING */ |
| 1268 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1269 | qdf_atomic_t is_target_suspended; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1270 | |
| 1271 | #ifdef FEATURE_RUNTIME_PM |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 1272 | qdf_atomic_t runtime_pm_inprogress; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1273 | #endif |
| 1274 | |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1275 | enum wmi_target_type target_type; |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 1276 | struct wmi_rx_ops rx_ops; |
| 1277 | struct wmi_ops *ops; |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 1278 | bool use_cookie; |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1279 | bool wmi_stopinprogress; |
Govind Singh | f06948c | 2016-03-12 09:26:52 +0530 | [diff] [blame] | 1280 | qdf_spinlock_t ctx_lock; |
Kiran Venkatappa | 9da7e04 | 2016-08-09 22:52:35 +0530 | [diff] [blame] | 1281 | #ifndef CONFIG_MCL |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1282 | /* WMI service bitmap recieved from target */ |
| 1283 | uint32_t wmi_service_bitmap[wmi_services_max]; |
| 1284 | uint32_t wmi_events[wmi_events_max]; |
| 1285 | uint32_t pdev_param[wmi_pdev_param_max]; |
| 1286 | uint32_t vdev_param[wmi_vdev_param_max]; |
| 1287 | uint32_t services[wmi_services_max]; |
| 1288 | #endif |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1289 | }; |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1290 | #ifdef WMI_NON_TLV_SUPPORT |
Govind Singh | fa201d9 | 2016-06-08 19:40:11 +0530 | [diff] [blame] | 1291 | /* ONLY_NON_TLV_TARGET:TLV attach dummy function defintion for case when |
| 1292 | * driver supports only NON-TLV target (WIN mainline) */ |
Govind Singh | 8972788 | 2016-04-15 13:58:27 +0530 | [diff] [blame] | 1293 | #define wmi_tlv_attach(x) qdf_print("TLV Unavailable\n") |
| 1294 | #else |
| 1295 | void wmi_tlv_attach(wmi_unified_t wmi_handle); |
| 1296 | #endif |
| 1297 | void wmi_non_tlv_attach(wmi_unified_t wmi_handle); |
Govind Singh | 53c7ac8 | 2016-03-28 22:02:42 +0530 | [diff] [blame] | 1298 | |
| 1299 | /** |
| 1300 | * wmi_align() - provides word aligned parameter |
| 1301 | * @param: parameter to be aligned |
| 1302 | * |
| 1303 | * Return: word aligned parameter |
| 1304 | */ |
| 1305 | static inline uint32_t wmi_align(uint32_t param) |
| 1306 | { |
| 1307 | return roundup(param, sizeof(uint32_t)); |
| 1308 | } |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 1309 | #endif |