1 /* 2 * Copyright (c) 2020 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_cfr_6490.h 21 * 22 * Target interface of CFR for QCA6490 implementation 23 * 24 */ 25 26 #ifndef _TARGET_IF_CFR_6490_H 27 #define _TARGET_IF_CFR_6490_H 28 29 #ifdef QCA_WIFI_QCA6490 30 #define CFR_MAC_ID_24G 1 31 #define CFR_MAC_ID_5G 0 32 #endif /* QCA_WIFI_QCA6490 */ 33 34 /** 35 * target_if_cfr_subscribe_ppdu_desc() - subscribe ppdu description 36 * for CFR component 37 * 38 * @pdev: pointer to pdev object 39 * @is_subscribe: subscribe or unsubscribe 40 * 41 * Return: QDF_STATUS 42 */ 43 QDF_STATUS 44 target_if_cfr_subscribe_ppdu_desc(struct wlan_objmgr_pdev *pdev, 45 bool is_subscribe); 46 47 /** 48 * cfr_6490_init_pdev() - Init pdev cfr for QCA6490 49 * @psoc: pointer to psoc object 50 * @pdev: pointer to pdev object 51 * 52 * Registers to DBR component and init pdev cfr parameters 53 * 54 * Return: QDF status 55 */ 56 QDF_STATUS cfr_6490_init_pdev(struct wlan_objmgr_psoc *psoc, 57 struct wlan_objmgr_pdev *pdev); 58 59 /** 60 * cfr_6490_deinit_pdev() - De-inits pdev cfr for QCA6490 61 * @pdev: pointer to pdev object 62 * 63 * Unregister to DBR and deinit pdev cfr parameters 64 * 65 * Return: QDF status 66 */ 67 QDF_STATUS cfr_6490_deinit_pdev(struct wlan_objmgr_psoc *psoc, 68 struct wlan_objmgr_pdev *pdev); 69 70 #endif /* _TARGET_IF_CFR_6490_H */ 71