Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 1 | /* |
Jeff Johnson | b4c2996 | 2017-10-07 19:35:14 -0700 | [diff] [blame^] | 2 | * Copyright (c) 2017 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for |
| 5 | * any purpose with or without fee is hereby granted, provided that the |
| 6 | * above copyright notice and this permission notice appear in all |
| 7 | * copies. |
| 8 | * |
| 9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 10 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 11 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 12 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 13 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 14 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 15 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 16 | * PERFORMANCE OF THIS SOFTWARE. |
| 17 | */ |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 18 | /** |
| 19 | * DOC: Declare public API related to the pmo called by north bound HDD/OSIF |
| 20 | */ |
| 21 | |
| 22 | #ifndef _WLAN_PMO_UCFG_API_H_ |
| 23 | #define _WLAN_PMO_UCFG_API_H_ |
| 24 | |
| 25 | #include "wlan_pmo_arp_public_struct.h" |
| 26 | #include "wlan_pmo_ns_public_struct.h" |
| 27 | #include "wlan_pmo_gtk_public_struct.h" |
Dustin Brown | 8d8d9fe | 2017-07-18 16:01:25 -0700 | [diff] [blame] | 28 | #include "wlan_pmo_mc_addr_filtering.h" |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 29 | #include "wlan_pmo_mc_addr_filtering_public_struct.h" |
| 30 | #include "wlan_pmo_wow_public_struct.h" |
| 31 | #include "wlan_pmo_common_public_struct.h" |
| 32 | #include "wlan_pmo_obj_mgmt_api.h" |
| 33 | #include "wlan_pmo_pkt_filter_public_struct.h" |
| 34 | #include "wlan_pmo_hw_filter_public_struct.h" |
| 35 | |
| 36 | /** |
| 37 | * pmo_ucfg_is_ap_mode_supports_arp_ns() - Check ap mode support arp&ns offload |
| 38 | * @psoc: objmgr psoc |
| 39 | * @vdev_opmode: vdev opmode |
| 40 | * |
| 41 | * Return: true in case support else false |
| 42 | */ |
| 43 | bool pmo_ucfg_is_ap_mode_supports_arp_ns(struct wlan_objmgr_psoc *psoc, |
| 44 | enum tQDF_ADAPTER_MODE vdev_opmode); |
| 45 | |
| 46 | /** |
| 47 | * pmo_ucfg_is_vdev_connected() - to check whether peer is associated or not |
| 48 | * @vdev: objmgr vdev |
| 49 | * |
| 50 | * Return: true in case success else false |
| 51 | */ |
| 52 | bool pmo_ucfg_is_vdev_connected(struct wlan_objmgr_vdev *vdev); |
| 53 | |
| 54 | /** |
| 55 | * pmo_ucfg_is_vdev_supports_offload() - check offload is supported on vdev |
| 56 | * @vdev: objmgr vdev |
| 57 | * |
| 58 | * Return: true in case success else false |
| 59 | */ |
| 60 | bool pmo_ucfg_is_vdev_supports_offload(struct wlan_objmgr_vdev *vdev); |
| 61 | |
| 62 | /** |
| 63 | * pmo_ucfg_get_psoc_config(): API to get the psoc user configurations of pmo |
| 64 | * @psoc: objmgr psoc handle |
| 65 | * @psoc_cfg: fill the current psoc user configurations. |
| 66 | * |
| 67 | * Return pmo psoc configurations |
| 68 | */ |
| 69 | QDF_STATUS pmo_ucfg_get_psoc_config(struct wlan_objmgr_psoc *psoc, |
| 70 | struct pmo_psoc_cfg *psoc_cfg); |
| 71 | |
| 72 | /** |
| 73 | * pmo_ucfg_update_psoc_config(): API to update the psoc user configurations |
| 74 | * @psoc: objmgr psoc handle |
| 75 | * @psoc_cfg: pmo psoc configurations |
| 76 | * |
| 77 | * This api shall be used for soc config initialization as well update. |
| 78 | * In case of update caller must first call pmo_get_psoc_cfg to get |
| 79 | * current config and then apply changes on top of current config. |
| 80 | * |
| 81 | * Return QDF_STATUS -in case of success else return error |
| 82 | */ |
| 83 | QDF_STATUS pmo_ucfg_update_psoc_config(struct wlan_objmgr_psoc *psoc, |
| 84 | struct pmo_psoc_cfg *psoc_cfg); |
| 85 | |
| 86 | /** |
| 87 | * pmo_ucfg_enable_wakeup_event() - enable wow wakeup events |
| 88 | * @psoc: objmgr psoc |
| 89 | * @vdev_id: vdev id |
| 90 | * @bitmap: Event bitmap |
| 91 | * |
| 92 | * Return: none |
| 93 | */ |
| 94 | void pmo_ucfg_enable_wakeup_event(struct wlan_objmgr_psoc *psoc, |
| 95 | uint32_t vdev_id, uint32_t *bitmap); |
| 96 | |
| 97 | /** |
| 98 | * pmo_ucfg_disable_wakeup_event() - disable wow wakeup events |
| 99 | * @psoc: objmgr psoc |
| 100 | * @vdev_id: vdev id |
| 101 | * @bitmap: Event bitmap |
| 102 | * |
| 103 | * Return: none |
| 104 | */ |
| 105 | void pmo_ucfg_disable_wakeup_event(struct wlan_objmgr_psoc *psoc, |
| 106 | uint32_t vdev_id, uint32_t bitmap); |
| 107 | |
| 108 | /** |
| 109 | * pmo_ucfg_cache_arp_offload_req(): API to cache arp req in pmo vdev priv ctx |
| 110 | * @arp_req: pmo arp req param |
| 111 | * |
| 112 | * Return QDF_STATUS -in case of success else return error |
| 113 | */ |
| 114 | QDF_STATUS pmo_ucfg_cache_arp_offload_req(struct pmo_arp_req *arp_req); |
| 115 | |
| 116 | /** |
| 117 | * pmo_ucfg_flush_arp_offload_req(): API to flush arp req from pmo vdev priv ctx |
| 118 | * @vdev: objmgr vdev param |
| 119 | * |
| 120 | * Return QDF_STATUS -in case of success else return error |
| 121 | */ |
| 122 | QDF_STATUS pmo_ucfg_flush_arp_offload_req(struct wlan_objmgr_vdev *vdev); |
| 123 | |
| 124 | /** |
| 125 | * pmo_ucfg_enable_arp_offload_in_fwr(): API to enable arp req in fwr |
| 126 | * @vdev: objmgr vdev param |
| 127 | * @trigger: triger reason for enable arp offload |
| 128 | * |
| 129 | * API to enable cache arp req in fwr from pmo vdev priv ctx |
| 130 | * |
| 131 | * Return QDF_STATUS -in case of success else return error |
| 132 | */ |
| 133 | QDF_STATUS pmo_ucfg_enable_arp_offload_in_fwr(struct wlan_objmgr_vdev *vdev, |
| 134 | enum pmo_offload_trigger trigger); |
| 135 | |
| 136 | /** |
| 137 | * pmo_ucfg_disable_arp_offload_in_fwr(): API to disable arp req in fwr |
| 138 | * @vdev: objmgr vdev param |
| 139 | * @trigger: triger reason for disable arp offload |
| 140 | * API to disable cache arp req in fwr |
| 141 | * |
| 142 | * Return QDF_STATUS -in case of success else return error |
| 143 | */ |
| 144 | QDF_STATUS pmo_ucfg_disable_arp_offload_in_fwr(struct wlan_objmgr_vdev *vdev, |
| 145 | enum pmo_offload_trigger trigger); |
| 146 | |
| 147 | /** |
| 148 | * pmo_ucfg_cache_ns_offload_req(): API to cache ns req in pmo vdev priv ctx |
| 149 | * @ns_req: pmo ns req param |
| 150 | * |
| 151 | * Return QDF_STATUS -in case of success else return error |
| 152 | */ |
| 153 | QDF_STATUS pmo_ucfg_cache_ns_offload_req(struct pmo_ns_req *ns_req); |
| 154 | |
| 155 | /** |
| 156 | * pmo_ucfg_flush_ns_offload_req(): API to flush ns req from pmo vdev priv ctx |
| 157 | * @vdev: vdev ojbmgr handle |
| 158 | * |
| 159 | * Return QDF_STATUS -in case of success else return error |
| 160 | */ |
| 161 | QDF_STATUS pmo_ucfg_flush_ns_offload_req(struct wlan_objmgr_vdev *vdev); |
| 162 | |
| 163 | /** |
| 164 | * pmo_ucfg_enable_ns_offload_in_fwr(): API to enable ns req in fwr |
| 165 | * @arp_req: pmo arp req param |
| 166 | * @trigger: trigger reason to enable ns offload |
| 167 | * |
| 168 | * API to enable cache ns req in fwr from pmo vdev priv ctx |
| 169 | * |
| 170 | * Return QDF_STATUS -in case of success else return error |
| 171 | */ |
| 172 | QDF_STATUS pmo_ucfg_enable_ns_offload_in_fwr(struct wlan_objmgr_vdev *vdev, |
| 173 | enum pmo_offload_trigger trigger); |
| 174 | |
| 175 | /** |
| 176 | * pmo_ucfg_disable_ns_offload_in_fwr(): API to disable ns req in fwr |
| 177 | * @arp_req: pmo arp req param |
| 178 | * @trigger: trigger reason to disable ns offload |
| 179 | * |
| 180 | * API to disable ns req in fwr |
| 181 | * |
| 182 | * Return QDF_STATUS -in case of success else return error |
| 183 | */ |
| 184 | QDF_STATUS pmo_ucfg_disable_ns_offload_in_fwr(struct wlan_objmgr_vdev *vdev, |
| 185 | enum pmo_offload_trigger trigger); |
| 186 | |
| 187 | /** |
| 188 | * pmo_ucfg_enable_hw_filter_in_fwr() - enable previously configured hw filter |
| 189 | * @vdev: objmgr vdev to configure |
| 190 | * |
| 191 | * Return: QDF_STATUS |
| 192 | */ |
| 193 | QDF_STATUS pmo_ucfg_enable_hw_filter_in_fwr(struct wlan_objmgr_vdev *vdev); |
| 194 | |
| 195 | /** |
| 196 | * pmo_ucfg_disable_hw_filter_in_fwr() - disable previously configured hw filter |
| 197 | * @vdev: objmgr vdev to configure |
| 198 | * |
| 199 | * Return: QDF_STATUS |
| 200 | */ |
| 201 | QDF_STATUS pmo_ucfg_disable_hw_filter_in_fwr(struct wlan_objmgr_vdev *vdev); |
| 202 | |
| 203 | /** |
| 204 | * pmo_ucfg_max_mc_addr_supported() - to get max support mc address |
| 205 | * @psoc: objmgr psoc |
| 206 | * |
| 207 | * Return: max mc addr supported count for all vdev in corresponding psoc |
| 208 | */ |
| 209 | uint8_t pmo_ucfg_max_mc_addr_supported(struct wlan_objmgr_psoc *psoc); |
| 210 | |
| 211 | /** |
| 212 | * pmo_ucfg_cache_mc_addr_list(): API to cache mc addr list in pmo vdev priv obj |
| 213 | * @psoc: objmgr psoc handle |
| 214 | * @vdev_id: vdev id |
| 215 | * @gtk_req: pmo gtk req param |
| 216 | * |
| 217 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 218 | */ |
| 219 | QDF_STATUS pmo_ucfg_cache_mc_addr_list( |
| 220 | struct pmo_mc_addr_list_params *mc_list_config); |
| 221 | |
| 222 | /** |
| 223 | * pmo_ucfg_flush_mc_addr_list(): API to flush mc addr list in pmo vdev priv obj |
| 224 | * @psoc: objmgr psoc handle |
| 225 | * @vdev_id: vdev id |
| 226 | * |
| 227 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 228 | */ |
| 229 | QDF_STATUS pmo_ucfg_flush_mc_addr_list(struct wlan_objmgr_psoc *psoc, |
| 230 | uint8_t vdev_id); |
| 231 | |
| 232 | /** |
Dustin Brown | 8d8d9fe | 2017-07-18 16:01:25 -0700 | [diff] [blame] | 233 | * pmo_ucfg_enhance_mc_filter_enable() - enable enhanced multicast filtering |
| 234 | * @vdev: the vdev to enable enhanced multicast filtering for |
| 235 | * |
| 236 | * Return: QDF_STATUS |
| 237 | */ |
| 238 | static inline QDF_STATUS |
| 239 | pmo_ucfg_enhanced_mc_filter_enable(struct wlan_objmgr_vdev *vdev) |
| 240 | { |
| 241 | return pmo_core_enhanced_mc_filter_enable(vdev); |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * pmo_ucfg_enhance_mc_filter_disable() - disable enhanced multicast filtering |
| 246 | * @vdev: the vdev to disable enhanced multicast filtering for |
| 247 | * |
| 248 | * Return: QDF_STATUS |
| 249 | */ |
| 250 | static inline QDF_STATUS |
| 251 | pmo_ucfg_enhanced_mc_filter_disable(struct wlan_objmgr_vdev *vdev) |
| 252 | { |
| 253 | return pmo_core_enhanced_mc_filter_disable(vdev); |
| 254 | } |
| 255 | |
| 256 | /** |
Mukul Sharma | d75a667 | 2017-06-22 15:40:53 +0530 | [diff] [blame] | 257 | * pmo_ucfg_enable_mc_addr_filtering_in_fwr(): Enable cached mc add list in fwr |
| 258 | * @psoc: objmgr psoc handle |
| 259 | * @vdev_id: vdev id |
| 260 | * @gtk_req: pmo gtk req param |
| 261 | * @action: true for enable els false |
| 262 | * |
| 263 | * API to enable cached mc add list in fwr |
| 264 | * |
| 265 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 266 | */ |
| 267 | QDF_STATUS pmo_ucfg_enable_mc_addr_filtering_in_fwr( |
| 268 | struct wlan_objmgr_psoc *psoc, |
| 269 | uint8_t vdev_id, |
| 270 | enum pmo_offload_trigger trigger); |
| 271 | |
| 272 | /** |
| 273 | * pmo_ucfg_disable_mc_addr_filtering_in_fwr(): Disable cached mc addr list |
| 274 | * @psoc: objmgr psoc handle |
| 275 | * @vdev_id: vdev id |
| 276 | * @gtk_req: pmo gtk req param |
| 277 | * @action: true for enable els false |
| 278 | * |
| 279 | * API to disable cached mc add list in fwr |
| 280 | * |
| 281 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 282 | */ |
| 283 | QDF_STATUS pmo_ucfg_disable_mc_addr_filtering_in_fwr( |
| 284 | struct wlan_objmgr_psoc *psoc, |
| 285 | uint8_t vdev_id, |
| 286 | enum pmo_offload_trigger trigger); |
| 287 | |
| 288 | /** |
| 289 | * pmo_ucfg_cache_gtk_offload_req(): API to cache gtk req in pmo vdev priv obj |
| 290 | * @vdev: objmgr vdev handle |
| 291 | * @gtk_req: pmo gtk req param |
| 292 | * |
| 293 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 294 | */ |
| 295 | QDF_STATUS pmo_ucfg_cache_gtk_offload_req(struct wlan_objmgr_vdev *vdev, |
| 296 | struct pmo_gtk_req *gtk_req); |
| 297 | |
| 298 | /** |
| 299 | * pmo_ucfg_flush_gtk_offload_req(): Flush saved gtk req from pmo vdev priv obj |
| 300 | * @vdev: objmgr vdev handle |
| 301 | * |
| 302 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 303 | */ |
| 304 | QDF_STATUS pmo_ucfg_flush_gtk_offload_req(struct wlan_objmgr_vdev *vdev); |
| 305 | |
| 306 | /** |
| 307 | * pmo_ucfg_enable_gtk_offload_in_fwr(): enable cached gtk request in fwr |
| 308 | * @vdev: objmgr vdev handle |
| 309 | * |
| 310 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 311 | */ |
| 312 | QDF_STATUS pmo_ucfg_enable_gtk_offload_in_fwr(struct wlan_objmgr_vdev *vdev); |
| 313 | |
| 314 | /** |
| 315 | * pmo_ucfg_disable_gtk_offload_in_fwr(): disable cached gtk request in fwr |
| 316 | * @vdev: objmgr vdev handle |
| 317 | * |
| 318 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 319 | */ |
| 320 | QDF_STATUS pmo_ucfg_disable_gtk_offload_in_fwr(struct wlan_objmgr_vdev *vdev); |
| 321 | |
| 322 | /** |
| 323 | * pmo_ucfg_set_pkt_filter() - Set packet filter |
| 324 | * @psoc: objmgr psoc handle |
| 325 | * @pmo_set_pkt_fltr_req: |
| 326 | * @vdev_id: vdev id |
| 327 | * |
| 328 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 329 | */ |
| 330 | QDF_STATUS pmo_ucfg_set_pkt_filter(struct wlan_objmgr_psoc *psoc, |
| 331 | struct pmo_rcv_pkt_fltr_cfg *pmo_set_pkt_fltr_req, |
| 332 | uint8_t vdev_id); |
| 333 | |
| 334 | /** |
| 335 | * pmo_ucfg_clear_pkt_filter() - Clear packet filter |
| 336 | * @psoc: objmgr psoc handle |
| 337 | * @pmo_clr_pkt_fltr_req: |
| 338 | * @vdev_id: vdev id |
| 339 | * |
| 340 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 341 | */ |
| 342 | QDF_STATUS pmo_ucfg_clear_pkt_filter(struct wlan_objmgr_psoc *psoc, |
| 343 | struct pmo_rcv_pkt_fltr_clear_param *pmo_clr_pkt_fltr_param, |
| 344 | uint8_t vdev_id); |
| 345 | |
| 346 | /** |
| 347 | * pmo_ucfg_get_gtk_rsp(): API to send gtk response request to fwr |
| 348 | * @vdev: objmgr vdev handle |
| 349 | * @gtk_rsp: pmo gtk response request |
| 350 | * |
| 351 | * This api will send gtk response request to fwr |
| 352 | * |
| 353 | * Return QDF_STATUS_SUCCESS -in case of success else return error |
| 354 | */ |
| 355 | QDF_STATUS pmo_ucfg_get_gtk_rsp(struct wlan_objmgr_vdev *vdev, |
| 356 | struct pmo_gtk_rsp_req *gtk_rsp_req); |
| 357 | |
| 358 | /** |
| 359 | * pmo_ucfg_update_extscan_in_progress(): update extscan is in progress flags |
| 360 | * @vdev: objmgr vdev handle |
| 361 | * @value:true if extscan is in progress else false |
| 362 | * |
| 363 | * Return: TRUE/FALSE |
| 364 | */ |
| 365 | void pmo_ucfg_update_extscan_in_progress(struct wlan_objmgr_vdev *vdev, |
| 366 | bool value); |
| 367 | |
| 368 | /** |
| 369 | * pmo_ucfg_update_p2plo_in_progress(): update p2plo is in progress flags |
| 370 | * @vdev: objmgr vdev handle |
| 371 | * @value:true if p2plo is in progress else false |
| 372 | * |
| 373 | * Return: TRUE/FALSE |
| 374 | */ |
| 375 | void pmo_ucfg_update_p2plo_in_progress(struct wlan_objmgr_vdev *vdev, |
| 376 | bool value); |
| 377 | |
| 378 | /** |
| 379 | * pmo_ucfg_lphb_config_req() - Handles lphb config request for psoc |
| 380 | * @psoc: objmgr psoc handle |
| 381 | * @lphb_req: low power heart beat request |
| 382 | * @lphb_cb_ctx: Context which needs to pass to soif when lphb callback called |
| 383 | * @callback: upon receiving of lphb indication from fwr call lphb callback |
| 384 | * |
| 385 | * Return: QDF status |
| 386 | */ |
| 387 | QDF_STATUS pmo_ucfg_lphb_config_req(struct wlan_objmgr_psoc *psoc, |
| 388 | struct pmo_lphb_req *lphb_req, void *lphb_cb_ctx, |
| 389 | pmo_lphb_callback callback); |
| 390 | |
| 391 | /** |
| 392 | * pmo_ucfg_update_alt_modulated_dtim_enable() - update alt modulatate dtim |
| 393 | * @vdev: objmgr vdev handle |
| 394 | * @value: true for alt_modulated_dtim enable else false |
| 395 | * |
| 396 | * Return: QDF status |
| 397 | */ |
| 398 | void pmo_ucfg_update_alt_modulated_dtim_enable(struct wlan_objmgr_vdev *vdev, |
| 399 | bool value); |
| 400 | |
| 401 | /** |
| 402 | * pmo_ucfg_psoc_update_power_save_mode() - update power save mode |
| 403 | * @vdev: objmgr vdev handle |
| 404 | * @value:vdev power save mode |
| 405 | * |
| 406 | * Return: None |
| 407 | */ |
| 408 | void pmo_ucfg_psoc_update_power_save_mode(struct wlan_objmgr_psoc *psoc, |
| 409 | uint8_t value); |
| 410 | |
| 411 | /** |
| 412 | * pmo_ucfg_psoc_update_dp_handle() - update psoc data path handle |
| 413 | * @psoc: objmgr psoc handle |
| 414 | * @dp_hdl: psoc data path handle |
| 415 | * |
| 416 | * Return: None |
| 417 | */ |
| 418 | void pmo_ucfg_psoc_update_dp_handle(struct wlan_objmgr_psoc *psoc, |
| 419 | void *dp_hdl); |
| 420 | |
| 421 | /** |
| 422 | * pmo_ucfg_vdev_update_dp_handle() - update vdev data path handle |
| 423 | * @vdev: objmgr vdev handle |
| 424 | * @dp_hdl: vdev data path handle |
| 425 | * |
| 426 | * Return: None |
| 427 | */ |
| 428 | void pmo_ucfg_vdev_update_dp_handle(struct wlan_objmgr_vdev *vdev, |
| 429 | void *dp_hdl); |
| 430 | |
| 431 | /** |
| 432 | * pmo_ucfg_psoc_update_htc_handle() - update psoc htc layer handle |
| 433 | * @psoc: objmgr psoc handle |
| 434 | * @htc_handle: psoc host-to-tagret layer (htc) handle |
| 435 | * |
| 436 | * Return: None |
| 437 | */ |
| 438 | void pmo_ucfg_psoc_update_htc_handle(struct wlan_objmgr_psoc *psoc, |
| 439 | void *htc_handle); |
| 440 | |
| 441 | /** |
| 442 | * pmo_ucfg_psoc_set_hif_handle() - Set psoc hif layer handle |
| 443 | * @psoc: objmgr psoc handle |
| 444 | * @hif_handle: hif context handle |
| 445 | * |
| 446 | * Return: None |
| 447 | */ |
| 448 | void pmo_ucfg_psoc_set_hif_handle(struct wlan_objmgr_psoc *psoc, |
| 449 | void *hif_handle); |
| 450 | |
| 451 | /** |
| 452 | * pmo_ucfg_psoc_set_txrx_handle() - Set psoc pdev txrx layer handle |
| 453 | * @psoc: objmgr psoc handle |
| 454 | * @txrx_handle: pdev txrx context handle |
| 455 | * |
| 456 | * Return: None |
| 457 | */ |
| 458 | void pmo_ucfg_psoc_set_txrx_handle(struct wlan_objmgr_psoc *psoc, |
| 459 | void *txrx_handle); |
| 460 | |
| 461 | /** |
| 462 | * pmo_ucfg_psoc_user_space_suspend_req() - Handles user space suspend req |
| 463 | * @psoc: objmgr psoc handle |
| 464 | * @type: type of suspend |
| 465 | * |
| 466 | * Handles user space suspend indication for psoc |
| 467 | * |
| 468 | * Return: QDF status |
| 469 | */ |
| 470 | QDF_STATUS pmo_ucfg_psoc_user_space_suspend_req(struct wlan_objmgr_psoc *psoc, |
| 471 | enum qdf_suspend_type type); |
| 472 | |
| 473 | /** |
| 474 | * pmo_ucfg_psoc_user_space_resume_req() - Handles user space resume req |
| 475 | * @psoc: objmgr psoc handle |
| 476 | * @type: type of suspend from which resume needed |
| 477 | * |
| 478 | * Handles user space resume indication for psoc |
| 479 | * |
| 480 | * Return: QDF status |
| 481 | */ |
| 482 | QDF_STATUS pmo_ucfg_psoc_user_space_resume_req(struct wlan_objmgr_psoc *psoc, |
| 483 | enum qdf_suspend_type type); |
| 484 | |
| 485 | /** |
| 486 | * pmo_ucfg_psoc_bus_suspend_req(): handles bus suspend for psoc |
| 487 | * @psoc: objmgr psoc |
| 488 | * @type: is this suspend part of runtime suspend or system suspend? |
| 489 | * @wow_params: collection of wow enable override parameters |
| 490 | * |
| 491 | * Bails if a scan is in progress. |
| 492 | * Calls the appropriate handlers based on configuration and event. |
| 493 | * |
| 494 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 495 | */ |
| 496 | QDF_STATUS pmo_ucfg_psoc_bus_suspend_req(struct wlan_objmgr_psoc *psoc, |
| 497 | enum qdf_suspend_type type, |
| 498 | struct pmo_wow_enable_params *wow_params); |
| 499 | |
| 500 | #ifdef FEATURE_RUNTIME_PM |
| 501 | /** |
| 502 | * pmo_ucfg_psoc_bus_runtime_suspend(): handles bus runtime suspend for psoc |
| 503 | * @psoc: objmgr psoc |
| 504 | * @pld_cb: callback to call link auto suspend |
| 505 | * |
| 506 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 507 | */ |
| 508 | QDF_STATUS pmo_ucfg_psoc_bus_runtime_suspend(struct wlan_objmgr_psoc *psoc, |
| 509 | pmo_pld_auto_suspend_cb pld_cb); |
| 510 | |
| 511 | /** |
| 512 | * pmo_ucfg_psoc_bus_runtime_resume(): handles bus runtime resume for psoc |
| 513 | * @psoc: objmgr psoc |
| 514 | * @pld_cb: callback to call link auto resume |
| 515 | * |
| 516 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 517 | */ |
| 518 | QDF_STATUS pmo_ucfg_psoc_bus_runtime_resume(struct wlan_objmgr_psoc *psoc, |
| 519 | pmo_pld_auto_resume_cb pld_cb); |
| 520 | #endif |
| 521 | |
| 522 | /** |
| 523 | * pmo_ucfg_psoc_suspend_target() -Send suspend target command |
| 524 | * @psoc: objmgr psoc handle |
| 525 | * @disable_target_intr: disable target interrupt |
| 526 | * |
| 527 | * Return: QDF_STATUS_SUCCESS for success or error code |
| 528 | */ |
| 529 | QDF_STATUS pmo_ucfg_psoc_suspend_target(struct wlan_objmgr_psoc *psoc, |
| 530 | int disable_target_intr); |
| 531 | |
| 532 | /** |
| 533 | * pmo_ucfg_psoc_bus_resume() -handle bus resume request for psoc |
| 534 | * @psoc: objmgr psoc handle |
| 535 | * @type: is this suspend part of runtime suspend or system suspend? |
| 536 | * |
| 537 | * Return:QDF_STATUS_SUCCESS on success else error code |
| 538 | */ |
| 539 | QDF_STATUS pmo_ucfg_psoc_bus_resume_req(struct wlan_objmgr_psoc *psoc, |
| 540 | enum qdf_suspend_type type); |
| 541 | |
| 542 | /** |
| 543 | * pmo_ucfg_get_wow_bus_suspend(): API to check if wow bus is suspended or not |
| 544 | * @psoc: objmgr psoc handle |
| 545 | * |
| 546 | * Return: True if bus suspende else false |
| 547 | */ |
| 548 | bool pmo_ucfg_get_wow_bus_suspend(struct wlan_objmgr_psoc *psoc); |
| 549 | |
| 550 | /** |
| 551 | * pmo_ucfg_psoc_handle_initial_wake_up() - update initial wake up |
| 552 | * @cb_ctx: objmgr psoc handle as void * due to htc layer is not aware psoc |
| 553 | * |
| 554 | * Return: None |
| 555 | */ |
| 556 | void pmo_ucfg_psoc_handle_initial_wake_up(void *cb_ctx); |
| 557 | |
| 558 | /** |
| 559 | * pmo_ucfg_psoc_is_target_wake_up_received() - Get initial wake up status |
| 560 | * @psoc: objmgr psoc handle |
| 561 | * |
| 562 | * Return: 0 on success else error code |
| 563 | */ |
| 564 | int pmo_ucfg_psoc_is_target_wake_up_received(struct wlan_objmgr_psoc *psoc); |
| 565 | |
| 566 | /** |
| 567 | * pmo_ucfg_psoc_is_target_wake_up_received() - Clear initial wake up status |
| 568 | * @psoc: objmgr psoc handle |
| 569 | * |
| 570 | * Return: 0 on success else error code |
| 571 | */ |
| 572 | int pmo_ucfg_psoc_clear_target_wake_up(struct wlan_objmgr_psoc *psoc); |
| 573 | |
| 574 | /** |
| 575 | * pmo_ucfg_psoc_target_suspend_acknowledge() - Clear initial wake up status |
| 576 | * @psoc: objmgr psoc handle |
| 577 | * |
| 578 | * Return: None |
| 579 | */ |
| 580 | void pmo_ucfg_psoc_target_suspend_acknowledge(void *context, bool wow_nack); |
| 581 | |
| 582 | /** |
| 583 | * pmo_ucfg_psoc_wakeup_host_event_received() - got host wake up evennt from fwr |
| 584 | * @psoc: objmgr psoc handle |
| 585 | * |
| 586 | * Return: None |
| 587 | */ |
| 588 | void pmo_ucfg_psoc_wakeup_host_event_received(struct wlan_objmgr_psoc *psoc); |
| 589 | |
| 590 | #endif /* end of _WLAN_PMO_UCFG_API_H_ */ |