1*5113495bSYour Name /* 2*5113495bSYour Name * Copyright (c) 2021, 2023 Qualcomm Innovation Center, Inc. All rights reserved. 3*5113495bSYour Name * 4*5113495bSYour Name * Permission to use, copy, modify, and/or distribute this software for any 5*5113495bSYour Name * purpose with or without fee is hereby granted, provided that the above 6*5113495bSYour Name * copyright notice and this permission notice appear in all copies. 7*5113495bSYour Name * 8*5113495bSYour Name * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*5113495bSYour Name * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*5113495bSYour Name * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*5113495bSYour Name * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*5113495bSYour Name * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*5113495bSYour Name * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*5113495bSYour Name * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*5113495bSYour Name */ 16*5113495bSYour Name 17*5113495bSYour Name /** 18*5113495bSYour Name * DOC: osif_vdev_mgr_util.h 19*5113495bSYour Name * 20*5113495bSYour Name * This header file maintains declarations of osif APIs corresponding to vdev 21*5113495bSYour Name * manager. 22*5113495bSYour Name */ 23*5113495bSYour Name 24*5113495bSYour Name #ifndef __OSIF_VDEV_MGR_UTIL_H 25*5113495bSYour Name #define __OSIF_VDEV_MGR_UTIL_H 26*5113495bSYour Name /** 27*5113495bSYour Name * struct osif_vdev_mgr_ops - VDEV mgr legacy callbacks 28*5113495bSYour Name * @osif_vdev_mgr_set_mac_addr_response: Callback to indicate set MAC address 29*5113495bSYour Name * response from FW 30*5113495bSYour Name * @osif_vdev_mgr_send_scan_done_complete_cb: send scan done indication to 31*5113495bSYour Name * upper layer 32*5113495bSYour Name */ 33*5113495bSYour Name struct osif_vdev_mgr_ops { 34*5113495bSYour Name #ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE 35*5113495bSYour Name void (*osif_vdev_mgr_set_mac_addr_response)(uint8_t vdev_id, 36*5113495bSYour Name uint8_t resp_status); 37*5113495bSYour Name #endif 38*5113495bSYour Name void (*osif_vdev_mgr_send_scan_done_complete_cb)(uint8_t vdev_id); 39*5113495bSYour Name }; 40*5113495bSYour Name 41*5113495bSYour Name /** 42*5113495bSYour Name * osif_vdev_mgr_set_legacy_cb() - Sets legacy callbacks to osif 43*5113495bSYour Name * @osif_legacy_ops: Function pointer to legacy ops structure 44*5113495bSYour Name * 45*5113495bSYour Name * API to set legacy callbacks to osif 46*5113495bSYour Name * Context: Any context. 47*5113495bSYour Name * 48*5113495bSYour Name * Return: void 49*5113495bSYour Name */ 50*5113495bSYour Name void osif_vdev_mgr_set_legacy_cb(struct osif_vdev_mgr_ops *osif_legacy_ops); 51*5113495bSYour Name 52*5113495bSYour Name /** 53*5113495bSYour Name * osif_vdev_mgr_reset_legacy_cb() - Resets legacy callbacks to osif 54*5113495bSYour Name * 55*5113495bSYour Name * API to reset legacy callbacks to osif 56*5113495bSYour Name * Context: Any context. 57*5113495bSYour Name * 58*5113495bSYour Name * Return: void 59*5113495bSYour Name */ 60*5113495bSYour Name void osif_vdev_mgr_reset_legacy_cb(void); 61*5113495bSYour Name 62*5113495bSYour Name /** 63*5113495bSYour Name * osif_vdev_mgr_register_cb() - Register VDEV manager legacy callbacks 64*5113495bSYour Name * 65*5113495bSYour Name * API to register legavy VDEV manager callbacks 66*5113495bSYour Name * 67*5113495bSYour Name * Return: QDF_STATUS 68*5113495bSYour Name */ 69*5113495bSYour Name QDF_STATUS osif_vdev_mgr_register_cb(void); 70*5113495bSYour Name #endif /* __OSIF_CM_UTIL_H */ 71