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" |
| 36 | #include "wmi.h" |
| 37 | #include "wmi_unified.h" |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 38 | #include "qdf_atomic.h" |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 39 | |
| 40 | #define WMI_UNIFIED_MAX_EVENT 0x100 |
| 41 | #define WMI_MAX_CMDS 1024 |
| 42 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 43 | typedef qdf_nbuf_t wmi_buf_t; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 44 | |
| 45 | #ifdef WMI_INTERFACE_EVENT_LOGGING |
| 46 | |
| 47 | #define WMI_EVENT_DEBUG_MAX_ENTRY (1024) |
| 48 | |
| 49 | struct wmi_command_debug { |
| 50 | uint32_t command; |
Govind Singh | 4ec6ff9 | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 51 | uint32_t data[4]; /*16 bytes of WMI cmd excluding TLV and WMI headers */ |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 52 | uint64_t time; |
| 53 | }; |
| 54 | |
| 55 | struct wmi_event_debug { |
| 56 | uint32_t event; |
Govind Singh | 4ec6ff9 | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 57 | uint32_t data[4]; /*16 bytes of WMI event data excluding TLV header */ |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 58 | uint64_t time; |
| 59 | }; |
| 60 | |
| 61 | #endif /*WMI_INTERFACE_EVENT_LOGGING */ |
| 62 | |
| 63 | #ifdef WLAN_OPEN_SOURCE |
| 64 | struct fwdebug { |
| 65 | struct sk_buff_head fwlog_queue; |
| 66 | struct completion fwlog_completion; |
| 67 | A_BOOL fwlog_open; |
| 68 | }; |
| 69 | #endif /* WLAN_OPEN_SOURCE */ |
| 70 | |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 71 | struct wmi_ops { |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 72 | QDF_STATUS (*send_vdev_create_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 73 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 74 | struct vdev_create_params *param); |
| 75 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 76 | QDF_STATUS (*send_vdev_delete_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 77 | uint8_t if_id); |
| 78 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 79 | QDF_STATUS (*send_vdev_stop_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 80 | uint8_t vdev_id); |
| 81 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 82 | QDF_STATUS (*send_vdev_down_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 83 | uint8_t vdev_id); |
| 84 | |
Himanshu Agarwal | 7e4f4bc | 2016-03-09 16:49:38 +0530 | [diff] [blame] | 85 | QDF_STATUS (*send_vdev_start_cmd)(wmi_unified_t wmi, |
| 86 | struct vdev_start_params *req); |
| 87 | |
| 88 | QDF_STATUS (*send_hidden_ssid_vdev_restart_cmd)(wmi_unified_t wmi_handle, |
| 89 | struct hidden_ssid_vdev_restart_params *restart_params); |
| 90 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 91 | QDF_STATUS (*send_peer_flush_tids_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 92 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 93 | struct peer_flush_params *param); |
| 94 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 95 | QDF_STATUS (*send_peer_delete_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 96 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 97 | uint8_t vdev_id); |
| 98 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 99 | QDF_STATUS (*send_peer_param_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 100 | uint8_t peer_addr[IEEE80211_ADDR_LEN], |
| 101 | struct peer_set_params *param); |
| 102 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 103 | QDF_STATUS (*send_vdev_up_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 104 | uint8_t bssid[IEEE80211_ADDR_LEN], |
| 105 | struct vdev_up_params *params); |
| 106 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 107 | QDF_STATUS (*send_peer_create_cmd)(wmi_unified_t wmi, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 108 | struct peer_create_params *param); |
| 109 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 110 | QDF_STATUS (*send_green_ap_ps_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 111 | uint32_t value, uint8_t mac_id); |
| 112 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 113 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 114 | (*send_pdev_utf_cmd)(wmi_unified_t wmi_handle, |
| 115 | struct pdev_utf_params *param, |
| 116 | uint8_t mac_id); |
| 117 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 118 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 119 | (*send_pdev_param_cmd)(wmi_unified_t wmi_handle, |
| 120 | struct pdev_params *param, |
| 121 | uint8_t mac_id); |
| 122 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 123 | QDF_STATUS (*send_suspend_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 124 | struct suspend_params *param, |
| 125 | uint8_t mac_id); |
| 126 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 127 | QDF_STATUS (*send_resume_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 128 | uint8_t mac_id); |
| 129 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 130 | QDF_STATUS (*send_wow_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 131 | struct wow_cmd_params *param, |
| 132 | uint8_t mac_id); |
| 133 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 134 | 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] | 135 | uint8_t *peer_addr, |
| 136 | struct ap_ps_params *param); |
| 137 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 138 | 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] | 139 | struct sta_ps_params *param); |
| 140 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 141 | QDF_STATUS (*send_crash_inject_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 142 | struct crash_inject *param); |
| 143 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 144 | QDF_STATUS |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 145 | (*send_dbglog_cmd)(wmi_unified_t wmi_handle, |
| 146 | struct dbglog_params *dbglog_param); |
| 147 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 148 | QDF_STATUS (*send_vdev_set_param_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 149 | struct vdev_set_params *param); |
| 150 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 151 | QDF_STATUS (*send_stats_request_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 152 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 153 | struct stats_request_params *param); |
| 154 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 155 | QDF_STATUS (*send_packet_log_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 156 | uint8_t macaddr[IEEE80211_ADDR_LEN], |
| 157 | struct packet_enable_params *param); |
| 158 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 159 | QDF_STATUS (*send_beacon_send_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 160 | struct beacon_params *param); |
| 161 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 162 | QDF_STATUS (*send_peer_assoc_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 163 | struct peer_assoc_params *param); |
| 164 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 165 | QDF_STATUS (*send_scan_start_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 166 | struct scan_start_params *param); |
| 167 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 168 | QDF_STATUS (*send_scan_stop_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 169 | struct scan_stop_params *param); |
| 170 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 171 | QDF_STATUS (*send_scan_chan_list_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 172 | struct scan_chan_list_params *param); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 173 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 174 | QDF_STATUS (*send_mgmt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 175 | struct wmi_mgmt_params *param); |
| 176 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 177 | QDF_STATUS (*send_modem_power_state_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 178 | uint32_t param_value); |
| 179 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 180 | 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] | 181 | uint32_t vdev_id, uint8_t val); |
| 182 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 183 | QDF_STATUS (*send_get_temperature_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 184 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 185 | 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] | 186 | struct p2p_ps_params *oppps); |
| 187 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 188 | 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] | 189 | struct p2p_ps_params *noa); |
| 190 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 191 | QDF_STATUS (*send_set_smps_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 192 | uint8_t vdev_id, |
| 193 | int value); |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 194 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 195 | QDF_STATUS (*send_set_mimops_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 50988cc | 2016-02-26 18:09:36 +0530 | [diff] [blame] | 196 | uint8_t vdev_id, int value); |
| 197 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 198 | 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] | 199 | struct sta_uapsd_trig_params *param); |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 200 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 201 | 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] | 202 | struct ocb_utc_param *utc); |
| 203 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 204 | 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] | 205 | uint8_t vdev_id); |
| 206 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 207 | 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] | 208 | struct ocb_timing_advert_param *timing_advert); |
| 209 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 210 | 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] | 211 | struct ocb_timing_advert_param *timing_advert); |
| 212 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 213 | QDF_STATUS (*send_dcc_get_stats_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 214 | struct dcc_get_stats_param *get_stats_param); |
| 215 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 216 | QDF_STATUS (*send_dcc_clear_stats_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 217 | uint32_t vdev_id, uint32_t dcc_stats_bitmap); |
| 218 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 219 | QDF_STATUS (*send_dcc_update_ndl_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 220 | struct dcc_update_ndl_param *update_ndl_param); |
| 221 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 222 | QDF_STATUS (*send_ocb_set_config_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | e7b800c | 2016-03-01 15:30:53 +0530 | [diff] [blame] | 223 | struct ocb_config_param *config, uint32_t *ch_mhz); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 224 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 225 | QDF_STATUS (*send_lro_config_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 226 | struct wmi_lro_config_cmd_t *wmi_lro_cmd); |
| 227 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 228 | QDF_STATUS (*send_set_thermal_mgmt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 229 | struct thermal_cmd_params *thermal_info); |
| 230 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 231 | QDF_STATUS (*send_set_mcc_channel_time_quota_cmd) |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 232 | (wmi_unified_t wmi_handle, |
| 233 | uint32_t adapter_1_chan_freq, |
| 234 | uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq); |
| 235 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 236 | QDF_STATUS (*send_set_mcc_channel_time_latency_cmd) |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 237 | (wmi_unified_t wmi_handle, |
| 238 | uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency); |
| 239 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 240 | QDF_STATUS (*send_set_enable_disable_mcc_adaptive_scheduler_cmd)( |
Govind Singh | 9bad000 | 2016-03-01 15:54:59 +0530 | [diff] [blame] | 241 | wmi_unified_t wmi_handle, uint32_t mcc_adaptive_scheduler); |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 242 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 243 | 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] | 244 | A_UINT32 vdev_id, uint8_t *p2p_ie); |
| 245 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 246 | 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] | 247 | uint8_t vdev_id, |
| 248 | struct wmi_probe_resp_params *probe_rsp_info, |
| 249 | uint8_t *frm); |
| 250 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 251 | QDF_STATUS (*send_process_update_edca_param_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 252 | uint8_t vdev_id, |
| 253 | wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC]); |
| 254 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 255 | 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] | 256 | uint32_t if_id, |
| 257 | struct wmi_gtx_config *gtx_info); |
| 258 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 259 | 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] | 260 | struct sta_params *params); |
| 261 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 262 | 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] | 263 | uint8_t vdev_id, uint32_t max_retries, |
| 264 | uint32_t retry_interval); |
| 265 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 266 | QDF_STATUS (*send_bcn_buf_ll_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 267 | wmi_bcn_send_from_host_cmd_fixed_param *param); |
| 268 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 269 | QDF_STATUS (*send_set_gateway_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 270 | struct gateway_update_req_param *req); |
| 271 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 272 | QDF_STATUS (*send_set_rssi_monitoring_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 273 | struct rssi_monitor_param *req); |
| 274 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 275 | QDF_STATUS (*send_scan_probe_setoui_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 276 | struct scan_mac_oui *psetoui); |
| 277 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 278 | 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] | 279 | struct wifi_passpoint_req_param *req); |
| 280 | |
Himanshu Agarwal | 5f2d048 | 2016-03-09 15:25:44 +0530 | [diff] [blame] | 281 | QDF_STATUS (*send_roam_scan_offload_mode_cmd)(wmi_unified_t wmi_handle, |
| 282 | wmi_start_scan_cmd_fixed_param *scan_cmd_fp, |
| 283 | struct roam_offload_scan_params *roam_req); |
| 284 | |
| 285 | QDF_STATUS (*send_roam_scan_offload_rssi_thresh_cmd)(wmi_unified_t wmi_handle, |
| 286 | struct roam_offload_scan_rssi_params *roam_req); |
| 287 | |
| 288 | QDF_STATUS (*send_roam_scan_filter_cmd)(wmi_unified_t wmi_handle, |
| 289 | struct roam_scan_filter_params *roam_req); |
| 290 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 291 | 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] | 292 | struct wifi_passpoint_req_param *req); |
| 293 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 294 | 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] | 295 | struct wifi_enhanched_pno_params *req); |
| 296 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 297 | QDF_STATUS (*send_extscan_get_capabilities_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 298 | struct extscan_capabilities_params *pgetcapab); |
| 299 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 300 | 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] | 301 | struct extscan_cached_result_params *pcached_results); |
| 302 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 303 | 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] | 304 | struct extscan_capabilities_reset_params *reset_req); |
| 305 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 306 | 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] | 307 | struct extscan_set_sig_changereq_params * |
| 308 | psigchange); |
| 309 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 310 | 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] | 311 | struct extscan_bssid_hotlist_reset_params *photlist_reset); |
| 312 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 313 | QDF_STATUS (*send_stop_extscan_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 314 | struct extscan_stop_req_params *pstopcmd); |
| 315 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 316 | QDF_STATUS (*send_start_extscan_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 317 | struct wifi_scan_cmd_req_params *pstart); |
| 318 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 319 | QDF_STATUS (*send_plm_stop_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 320 | const struct plm_req_params *plm); |
| 321 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 322 | QDF_STATUS (*send_plm_start_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 323 | const struct plm_req_params *plm, |
| 324 | uint32_t *gchannel_list); |
| 325 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 326 | QDF_STATUS (*send_csa_offload_enable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 327 | uint8_t vdev_id); |
| 328 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 329 | 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] | 330 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 331 | QDF_STATUS (*send_pno_start_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 332 | struct pno_scan_req_params *pno, |
| 333 | uint32_t *gchannel_freq_list); |
| 334 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 335 | QDF_STATUS (*send_ipa_offload_control_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 336 | struct ipa_offload_control_params *ipa_offload); |
| 337 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 338 | 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] | 339 | uint8_t is_add_ts); |
| 340 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 341 | QDF_STATUS (*send_process_ll_stats_clear_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 342 | (wmi_unified_t wmi_handle, |
| 343 | const struct ll_stats_clear_params *clear_req, |
| 344 | uint8_t addr[IEEE80211_ADDR_LEN]); |
| 345 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 346 | QDF_STATUS (*send_process_ll_stats_set_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 347 | (wmi_unified_t wmi_handle, const struct ll_stats_set_params *set_req); |
| 348 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 349 | QDF_STATUS (*send_process_ll_stats_get_cmd) |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 350 | (wmi_unified_t wmi_handle, const struct ll_stats_get_params *get_req, |
| 351 | uint8_t addr[IEEE80211_ADDR_LEN]); |
| 352 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 353 | QDF_STATUS (*send_get_stats_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | ae85536 | 2016-03-07 14:24:22 +0530 | [diff] [blame] | 354 | struct pe_stats_req *get_stats_param, |
| 355 | uint8_t addr[IEEE80211_ADDR_LEN]); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 356 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 357 | QDF_STATUS (*send_snr_request_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 358 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 359 | 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] | 360 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 361 | QDF_STATUS (*send_link_status_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 362 | struct link_status_params *link_status); |
| 363 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 364 | QDF_STATUS (*send_lphb_config_hbenable_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 365 | wmi_hb_set_enable_cmd_fixed_param *params); |
| 366 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 367 | 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] | 368 | wmi_hb_set_tcp_params_cmd_fixed_param *lphb_conf_req); |
| 369 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 370 | 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] | 371 | wmi_hb_set_tcp_pkt_filter_cmd_fixed_param *g_hb_tcp_filter_fp); |
| 372 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 373 | 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] | 374 | wmi_hb_set_udp_params_cmd_fixed_param *lphb_conf_req); |
| 375 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 376 | 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] | 377 | wmi_hb_set_udp_pkt_filter_cmd_fixed_param *lphb_conf_req); |
| 378 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 379 | QDF_STATUS (*send_process_dhcp_ind_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 380 | wmi_peer_set_param_cmd_fixed_param *ta_dhcp_ind); |
| 381 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 382 | QDF_STATUS (*send_get_link_speed_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 383 | wmi_mac_addr peer_macaddr); |
| 384 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 385 | QDF_STATUS (*send_egap_conf_params_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 386 | wmi_ap_ps_egap_param_cmd_fixed_param *egap_params); |
| 387 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 388 | QDF_STATUS (*send_fw_profiling_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 389 | uint32_t cmd, uint32_t value1, uint32_t value2); |
| 390 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 391 | 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] | 392 | uint8_t vdev_id, uint8_t default_pattern, |
| 393 | uint16_t rate_limit_interval); |
| 394 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 395 | 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] | 396 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 397 | QDF_STATUS (*send_start_oem_data_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 398 | uint8_t data_len, |
| 399 | uint8_t *data); |
| 400 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 401 | QDF_STATUS |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 402 | (*send_dfs_phyerr_filter_offload_en_cmd)(wmi_unified_t wmi_handle, |
| 403 | bool dfs_phyerr_filter_offload); |
| 404 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 405 | QDF_STATUS (*send_pktlog_wmi_send_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 406 | WMI_PKTLOG_EVENT pktlog_event, |
| 407 | WMI_CMD_ID cmd_id); |
| 408 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 409 | 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] | 410 | uint32_t vdev_id, |
| 411 | uint32_t bitmap, |
| 412 | bool enable); |
| 413 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 414 | 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] | 415 | uint8_t vdev_id, uint8_t ptrn_id, |
| 416 | const uint8_t *ptrn, uint8_t ptrn_len, |
| 417 | uint8_t ptrn_offset, const uint8_t *mask, |
| 418 | uint8_t mask_len, bool user, |
| 419 | uint8_t default_patterns); |
| 420 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 421 | 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] | 422 | uint8_t vdev_id); |
| 423 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 424 | 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] | 425 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 426 | 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] | 427 | uint8_t ac); |
| 428 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 429 | QDF_STATUS (*send_aggr_qos_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 430 | struct aggr_add_ts_param *aggr_qos_rsp_msg); |
| 431 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 432 | QDF_STATUS (*send_add_ts_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 433 | struct add_ts_param *msg); |
| 434 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 435 | 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] | 436 | uint8_t vdev_id, bool enable); |
| 437 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 438 | QDF_STATUS (*send_config_packet_filter_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 439 | uint8_t vdev_id, struct rcv_pkt_filter_config *rcv_filter_param, |
| 440 | uint8_t filter_id, bool enable); |
| 441 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 442 | 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] | 443 | uint8_t vdev_id, |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 444 | struct qdf_mac_addr multicast_addr, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 445 | bool clearList); |
| 446 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 447 | 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] | 448 | struct gtk_offload_params *params, |
| 449 | bool enable_offload, |
| 450 | uint32_t gtk_offload_opcode); |
| 451 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 452 | 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] | 453 | uint8_t vdev_id, |
| 454 | uint64_t offload_req_opcode); |
| 455 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 456 | 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] | 457 | struct periodic_tx_pattern * |
| 458 | pAddPeriodicTxPtrnParams, |
| 459 | uint8_t vdev_id); |
| 460 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 461 | 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] | 462 | uint8_t vdev_id, |
| 463 | uint8_t pattern_id); |
| 464 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 465 | QDF_STATUS (*send_stats_ext_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 466 | struct stats_ext_params *preq); |
| 467 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 468 | QDF_STATUS (*send_enable_ext_wow_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 469 | struct ext_wow_params *params); |
| 470 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 471 | 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] | 472 | struct app_type2_params *appType2Params); |
| 473 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 474 | 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] | 475 | uint32_t timer_val); |
| 476 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 477 | QDF_STATUS (*send_nan_req_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 478 | struct nan_req_params *nan_req); |
| 479 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 480 | QDF_STATUS (*send_process_dhcpserver_offload_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 481 | struct dhcp_offload_info_params *pDhcpSrvOffloadInfo); |
| 482 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 483 | 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] | 484 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 485 | 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] | 486 | uint32_t reg_dmn, uint16_t regdmn2G, |
| 487 | uint16_t regdmn5G, int8_t ctl2G, |
| 488 | int8_t ctl5G); |
| 489 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 490 | 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] | 491 | struct tdls_channel_switch_params *chan_switch_params); |
| 492 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 493 | 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] | 494 | void *tdls_param, uint8_t tdls_state); |
| 495 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 496 | 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] | 497 | struct tdls_peer_state_params *peerStateParams, |
| 498 | uint32_t *ch_mhz); |
| 499 | |
| 500 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 501 | 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] | 502 | struct fw_dump_req_param *mem_dump_req); |
| 503 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 504 | 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] | 505 | struct vdev_ie_info_param *ie_info); |
Govind Singh | 71ee2d7 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 506 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 507 | QDF_STATUS (*send_init_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 71ee2d7 | 2016-03-07 16:30:32 +0530 | [diff] [blame] | 508 | wmi_resource_config *res_cfg, |
| 509 | uint8_t num_mem_chunks, struct wmi_host_mem_chunk *mem_chunk, |
| 510 | bool action); |
| 511 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 512 | 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] | 513 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 514 | 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] | 515 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 516 | QDF_STATUS (*send_saved_init_cmd)(wmi_unified_t wmi_handle); |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 517 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 518 | 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] | 519 | uint8_t *custom_addr); |
| 520 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 521 | QDF_STATUS (*send_log_supported_evt_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 522 | uint8_t *event, |
| 523 | uint32_t len); |
| 524 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 525 | 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] | 526 | struct wmi_wifi_start_log *start_log); |
| 527 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 528 | 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] | 529 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 530 | QDF_STATUS (*send_soc_set_pcl_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 531 | struct wmi_pcl_list *msg); |
| 532 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 533 | QDF_STATUS (*send_soc_set_hw_mode_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 534 | uint32_t hw_mode_index); |
| 535 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 536 | QDF_STATUS (*send_soc_set_dual_mac_config_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 537 | struct wmi_dual_mac_config *msg); |
| 538 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 539 | QDF_STATUS (*send_enable_arp_ns_offload_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 540 | struct host_offload_req_param *param, bool arp_only, |
| 541 | uint8_t vdev_id); |
| 542 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 543 | QDF_STATUS (*send_set_led_flashing_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 544 | struct flashing_req_params *flashing); |
| 545 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 546 | 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] | 547 | struct app_type1_params *app_type1_params); |
| 548 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 549 | QDF_STATUS (*send_set_ssid_hotlist_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 550 | struct ssid_hotlist_request_params *request); |
| 551 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 552 | 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] | 553 | uint8_t vdev_id); |
| 554 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 555 | QDF_STATUS (*send_unit_test_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 556 | struct wmi_unit_test_cmd *wmi_utest); |
| 557 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 558 | QDF_STATUS (*send_roam_invoke_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 559 | struct wmi_roam_invoke_cmd *roaminvoke, |
| 560 | uint32_t ch_hz); |
| 561 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 562 | QDF_STATUS (*send_roam_scan_offload_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 563 | uint32_t command, uint32_t vdev_id); |
| 564 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 565 | QDF_STATUS (*send_roam_scan_offload_ap_profile_cmd)(wmi_unified_t wmi_handle, |
Govind Singh | 2ae9437 | 2016-03-07 16:45:38 +0530 | [diff] [blame] | 566 | wmi_ap_profile *ap_profile_p, |
| 567 | uint32_t vdev_id); |
| 568 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 569 | 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] | 570 | uint32_t scan_period, |
| 571 | uint32_t scan_age, |
| 572 | uint32_t vdev_id); |
| 573 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 574 | 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] | 575 | uint8_t chan_count, |
| 576 | uint8_t *chan_list, |
| 577 | uint8_t list_type, uint32_t vdev_id); |
| 578 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 579 | 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] | 580 | uint32_t vdev_id, |
| 581 | int32_t rssi_change_thresh, |
| 582 | uint32_t bcn_rssi_weight, |
| 583 | uint32_t hirssi_delay_btw_scans); |
| 584 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 585 | 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] | 586 | struct ext_scan_setbssi_hotlist_params * |
| 587 | photlist, int *buf_len); |
| 588 | }; |
| 589 | |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 590 | /** |
| 591 | * struct wmi_init_cmd - Saved wmi INIT command |
| 592 | * @buf: Buffer containing the wmi INIT command |
| 593 | * @buf_len: Length of the buffer |
| 594 | */ |
Govind Singh | ec0bdef | 2016-03-16 16:27:50 +0530 | [diff] [blame] | 595 | struct wmi_cmd_init { |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 596 | wmi_buf_t buf; |
| 597 | uint32_t buf_len; |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 598 | }; |
| 599 | |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 600 | struct wmi_unified { |
| 601 | ol_scn_t scn_handle; /* handle to device */ |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 602 | osdev_t osdev; /* handle to use OS-independent services */ |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 603 | qdf_atomic_t pending_cmds; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 604 | HTC_ENDPOINT_ID wmi_endpoint_id; |
| 605 | uint16_t max_msg_len; |
| 606 | WMI_EVT_ID event_id[WMI_UNIFIED_MAX_EVENT]; |
| 607 | wmi_unified_event_handler event_handler[WMI_UNIFIED_MAX_EVENT]; |
Govind Singh | 4ec6ff9 | 2016-03-09 12:03:29 +0530 | [diff] [blame] | 608 | enum wmi_rx_exec_ctx ctx[WMI_UNIFIED_MAX_EVENT]; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 609 | uint32_t max_event_idx; |
| 610 | void *htc_handle; |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 611 | qdf_spinlock_t eventq_lock; |
| 612 | qdf_nbuf_queue_t event_queue; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 613 | struct work_struct rx_event_work; |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 614 | int wmi_stop_in_progress; |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 615 | struct _wmi_abi_version fw_abi_version; |
| 616 | struct _wmi_abi_version final_abi_vers; |
Govind Singh | ec0bdef | 2016-03-16 16:27:50 +0530 | [diff] [blame] | 617 | struct wmi_cmd_init saved_wmi_init_cmd; |
Govind Singh | 229bc0d | 2016-03-07 15:33:31 +0530 | [diff] [blame] | 618 | uint32_t num_of_diag_events_logs; |
| 619 | uint32_t *events_logs_list; |
| 620 | struct host_offload_req_param arp_info; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 621 | #ifdef WLAN_OPEN_SOURCE |
| 622 | struct fwdebug dbglog; |
| 623 | struct dentry *debugfs_phy; |
| 624 | #endif /* WLAN_OPEN_SOURCE */ |
| 625 | |
| 626 | #ifdef WMI_INTERFACE_EVENT_LOGGING |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 627 | qdf_spinlock_t wmi_record_lock; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 628 | #endif /*WMI_INTERFACE_EVENT_LOGGING */ |
| 629 | |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 630 | qdf_atomic_t is_target_suspended; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 631 | |
| 632 | #ifdef FEATURE_RUNTIME_PM |
Govind Singh | d7468a5 | 2016-03-09 14:32:57 +0530 | [diff] [blame] | 633 | qdf_atomic_t runtime_pm_inprogress; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 634 | #endif |
| 635 | |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 636 | struct wmi_rx_ops rx_ops; |
| 637 | struct wmi_ops *ops; |
Govind Singh | 6ad6ada | 2016-02-04 18:42:30 +0530 | [diff] [blame] | 638 | void *event_handler_cookie[WMI_UNIFIED_MAX_EVENT]; |
| 639 | bool use_cookie; |
Govind Singh | f06948c | 2016-03-12 09:26:52 +0530 | [diff] [blame] | 640 | qdf_spinlock_t ctx_lock; |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 641 | }; |
Govind Singh | 3ddda1f | 2016-03-09 11:34:12 +0530 | [diff] [blame] | 642 | struct wmi_ops *wmi_get_tlv_ops(void); |
| 643 | struct wmi_ops *wmi_get_non_tlv_ops(void); |
Govind Singh | 53c7ac8 | 2016-03-28 22:02:42 +0530 | [diff] [blame^] | 644 | |
| 645 | /** |
| 646 | * wmi_align() - provides word aligned parameter |
| 647 | * @param: parameter to be aligned |
| 648 | * |
| 649 | * Return: word aligned parameter |
| 650 | */ |
| 651 | static inline uint32_t wmi_align(uint32_t param) |
| 652 | { |
| 653 | return roundup(param, sizeof(uint32_t)); |
| 654 | } |
Govind Singh | d475ea9 | 2016-03-06 19:55:02 +0530 | [diff] [blame] | 655 | #endif |