Naga | f3a70ce | 2019-01-18 13:14:49 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2019 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 | */ |
| 18 | |
| 19 | /** |
| 20 | * DOC: target_if_vdev_mgr_rx_ops.h |
| 21 | * |
| 22 | * This file provides declarations for APIs registered for wmi events |
| 23 | */ |
| 24 | |
| 25 | #ifndef __TARGET_IF_VDEV_MGR_RX_OPS_H__ |
| 26 | #define __TARGET_IF_VDEV_MGR_RX_OPS_H__ |
| 27 | |
| 28 | #include <wmi_unified_param.h> |
| 29 | #include <wlan_objmgr_psoc_obj.h> |
| 30 | #include <wlan_lmac_if_def.h> |
| 31 | |
| 32 | /** |
| 33 | * target_if_vdev_mgr_get_rx_ops() - get rx ops |
| 34 | * @psoc: pointer to psoc object |
| 35 | * |
| 36 | * Return: pointer to rx ops |
| 37 | */ |
| 38 | static inline struct wlan_lmac_if_mlme_rx_ops * |
| 39 | target_if_vdev_mgr_get_rx_ops(struct wlan_objmgr_psoc *psoc) |
| 40 | { |
| 41 | return &psoc->soc_cb.rx_ops.mops; |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * target_if_vdev_mgr_rsp_timer_mgmt_cb() - function to handle response timer |
| 46 | * @arg: pointer to argument |
| 47 | * |
| 48 | * Callback timer triggered when response timer expires which pass |
| 49 | * vdev as argument |
| 50 | * |
| 51 | * Return: status of operation. |
| 52 | */ |
| 53 | void target_if_vdev_mgr_rsp_timer_mgmt_cb(void *arg); |
| 54 | |
| 55 | /** |
| 56 | * target_if_vdev_mgr_wmi_event_register() - function to handle register |
| 57 | * events from WMI |
| 58 | * @psoc: pointer to psoc object |
| 59 | * |
| 60 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 61 | */ |
| 62 | QDF_STATUS target_if_vdev_mgr_wmi_event_register( |
| 63 | struct wlan_objmgr_psoc *psoc); |
| 64 | |
| 65 | /** |
| 66 | * target_if_vdev_mgr_wmi_event_unregister() - function to handle unregister |
| 67 | * events from WMI |
| 68 | * @psoc: pointer to psoc object |
| 69 | * |
| 70 | * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error |
| 71 | */ |
| 72 | QDF_STATUS target_if_vdev_mgr_wmi_event_unregister( |
| 73 | struct wlan_objmgr_psoc *psoc); |
| 74 | |
| 75 | #endif /* __TARGET_IF_VDEV_MGR_RX_OPS_H__ */ |