Yuanyuan Liu | d9f7a36 | 2016-01-22 14:27:12 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2016 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | |
| 22 | /* |
| 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
| 26 | */ |
| 27 | |
| 28 | #ifndef __PLD_SNOC_H__ |
| 29 | #define __PLD_SNOC_H__ |
| 30 | |
| 31 | #include "pld_common.h" |
| 32 | |
| 33 | #ifndef CONFIG_ICNSS |
| 34 | static inline int pld_snoc_register_driver(void) |
| 35 | { |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | static inline void pld_snoc_unregister_driver(void) |
| 40 | { |
| 41 | return; |
| 42 | } |
| 43 | static inline int pld_snoc_wlan_enable(struct pld_wlan_enable_cfg *config, |
| 44 | enum pld_driver_mode mode, const char *host_version) |
| 45 | { |
| 46 | return 0; |
| 47 | } |
| 48 | static inline int pld_snoc_wlan_disable(enum pld_driver_mode mode) |
| 49 | { |
| 50 | return 0; |
| 51 | } |
| 52 | static inline int icnss_ce_request_irq(unsigned int ce_id, |
| 53 | irqreturn_t (*handler)(int, void *), |
| 54 | unsigned long flags, const char *name, void *ctx) |
| 55 | { |
| 56 | return 0; |
| 57 | } |
| 58 | static inline int icnss_ce_free_irq(unsigned int ce_id, void *ctx) |
| 59 | { |
| 60 | return 0; |
| 61 | } |
| 62 | static inline void icnss_enable_irq(unsigned int ce_id) |
| 63 | { |
| 64 | return; |
| 65 | } |
| 66 | static inline void icnss_disable_irq(unsigned int ce_id) |
| 67 | { |
| 68 | return; |
| 69 | } |
| 70 | static inline int icnss_get_soc_info(struct pld_soc_info *info) |
| 71 | { |
| 72 | return 0; |
| 73 | } |
| 74 | static inline int icnss_get_ce_id(int irq) |
| 75 | { |
| 76 | return 0; |
| 77 | } |
| 78 | static inline int pld_snoc_get_soc_info(struct pld_soc_info *info) |
| 79 | { |
| 80 | return 0; |
| 81 | } |
| 82 | #else |
| 83 | int pld_snoc_register_driver(void); |
| 84 | void pld_snoc_unregister_driver(void); |
| 85 | int pld_snoc_wlan_enable(struct pld_wlan_enable_cfg *config, |
| 86 | enum pld_driver_mode mode, const char *host_version); |
| 87 | int pld_snoc_wlan_disable(enum pld_driver_mode mode); |
| 88 | int pld_snoc_get_soc_info(struct pld_soc_info *info); |
| 89 | #endif |
| 90 | |
| 91 | #endif |