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_cmn_api_i.h 21 * 22 * This header filed declare APIs which have separate definition for both mc 23 * and ic 24 */ 25 #ifndef __WLAN_CP_STATS_CMN_API_I_H__ 26 #define __WLAN_CP_STATS_CMN_API_I_H__ 27 #ifdef QCA_SUPPORT_CP_STATS 28 #include "wlan_cp_stats_defs.h" 29 30 /** 31 * wlan_cp_stats_psoc_cs_init() - common psoc obj initialization 32 * @psoc: pointer to psoc object 33 * 34 * Return: QDF_STATUS - Success or Failure 35 */ 36 QDF_STATUS wlan_cp_stats_psoc_cs_init(struct psoc_cp_stats *psoc_cs); 37 38 /** 39 * wlan_cp_stats_psoc_cs_deinit() - common psoc obj deinitialization 40 * @psoc: pointer to psoc object 41 * 42 * Return: QDF_STATUS - Success or Failure 43 */ 44 QDF_STATUS wlan_cp_stats_psoc_cs_deinit(struct psoc_cp_stats *psoc_cs); 45 46 /** 47 * wlan_cp_stats_pdev_cs_init() - common pdev obj initialization 48 * @pdev: pointer to pdev object 49 * 50 * Return: QDF_STATUS - Success or Failure 51 */ 52 QDF_STATUS wlan_cp_stats_pdev_cs_init(struct pdev_cp_stats *pdev_cs); 53 54 /** 55 * wlan_cp_stats_pdev_cs_deinit() - common pdev obj deinitialization 56 * @pdev: pointer to pdev object 57 * 58 * Return: QDF_STATUS - Success or Failure 59 */ 60 QDF_STATUS wlan_cp_stats_pdev_cs_deinit(struct pdev_cp_stats *pdev_cs); 61 62 /** 63 * wlan_cp_stats_vdev_cs_init() - common vdev obj initialization 64 * @vdev: pointer to vdev object 65 * 66 * Return: QDF_STATUS - Success or Failure 67 */ 68 QDF_STATUS wlan_cp_stats_vdev_cs_init(struct vdev_cp_stats *vdev_cs); 69 70 /** 71 * wlan_cp_stats_vdev_cs_deinit() - common vdev obj deinitialization 72 * @vdev: pointer to vdev object 73 * 74 * Return: QDF_STATUS - Success or Failure 75 */ 76 QDF_STATUS wlan_cp_stats_vdev_cs_deinit(struct vdev_cp_stats *vdev_cs); 77 78 /** 79 * wlan_cp_stats_peer_cs_init() - common peer obj initialization 80 * @peer: pointer to peer object 81 * 82 * Return: QDF_STATUS - Success or Failure 83 */ 84 QDF_STATUS wlan_cp_stats_peer_cs_init(struct peer_cp_stats *peer_cs); 85 86 /** 87 * wlan_cp_stats_peer_cs_deinit() - common peer obj deinitialization 88 * @peer: pointer to peer object 89 * 90 * Return: QDF_STATUS - Success or Failure 91 */ 92 QDF_STATUS wlan_cp_stats_peer_cs_deinit(struct peer_cp_stats *peer_cs); 93 94 #endif /* QCA_SUPPORT_CP_STATS */ 95 #endif /* __WLAN_CP_STATS_CMN_API_I_H__ */ 96