Sravan Kumar Kairam | 4af61cf | 2018-02-22 17:53:44 +0530 | [diff] [blame^] | 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 | * DOC: Declare public API related to the wlan ipa called by north bound |
| 20 | */ |
| 21 | |
| 22 | #ifndef _WLAN_IPA_UCFG_API_H_ |
| 23 | #define _WLAN_IPA_UCFG_API_H_ |
| 24 | |
| 25 | #include "wlan_ipa_public_struct.h" |
| 26 | #include "wlan_ipa_obj_mgmt_api.h" |
| 27 | #include "wlan_objmgr_pdev_obj.h" |
| 28 | |
| 29 | #ifdef IPA_OFFLOAD |
| 30 | |
| 31 | /** |
| 32 | * ucfg_ipa_is_present() - get IPA hw status |
| 33 | * |
| 34 | * ipa_uc_reg_rdyCB is not directly designed to check |
| 35 | * ipa hw status. This is an undocumented function which |
| 36 | * has confirmed with IPA team. |
| 37 | * |
| 38 | * Return: true - ipa hw present |
| 39 | * false - ipa hw not present |
| 40 | */ |
| 41 | bool ucfg_ipa_is_present(void); |
| 42 | #else |
| 43 | |
| 44 | static inline bool ucfg_ipa_is_present(void) |
| 45 | { |
| 46 | return false; |
| 47 | } |
| 48 | |
| 49 | #endif /* IPA_OFFLOAD */ |
| 50 | #endif /* _WLAN_IPA_UCFG_API_H_ */ |