1 /* 2 * Copyright (c) 2018 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: wlan_cp_stats_comp_handler.h 21 * 22 * This header file API declarations required to attach/detach and 23 * enable/disable other UMAC component specific control plane statitics 24 * to cp stats component object 25 */ 26 27 #ifndef __WLAN_CP_STATS_COMP_HANDLER_H__ 28 #define __WLAN_CP_STATS_COMP_HANDLER_H__ 29 30 #ifdef QCA_SUPPORT_CP_STATS 31 #include "wlan_cp_stats_defs.h" 32 33 /** 34 * wlan_cp_stats_comp_obj_config() - attach/detach component specific stats 35 * callback function 36 * @obj_type: common object type 37 * @cfg_state: config state either to attach of detach 38 * @comp_id: cpstats component id 39 * @cmn_obj: pointer to common object 40 * @comp_priv_obj: pointer to component specific cp stats object 41 * 42 * Return: QDF_STATUS_SUCCESS on success, QDF_STATUS_E_** on error 43 */ 44 QDF_STATUS wlan_cp_stats_comp_obj_config( 45 enum wlan_objmgr_obj_type obj_type, 46 enum wlan_cp_stats_cfg_state cfg_state, 47 enum wlan_cp_stats_comp_id comp_id, 48 void *cmn_obj, 49 void *comp_priv_obj); 50 51 #endif /* QCA_SUPPORT_CP_STATS */ 52 #endif /* __WLAN_CP_STATS_COMP_HANDLER_H__ */ 53