blob: 321710680cf27cca461fca444a34bf33fde1abd5 [file] [log] [blame]
Yuanyuan Liud9f7a362016-01-22 14:27:12 -08001/*
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
34static inline int pld_snoc_register_driver(void)
35{
36 return 0;
37}
38
39static inline void pld_snoc_unregister_driver(void)
40{
41 return;
42}
43static 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}
48static inline int pld_snoc_wlan_disable(enum pld_driver_mode mode)
49{
50 return 0;
51}
52static 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}
58static inline int icnss_ce_free_irq(unsigned int ce_id, void *ctx)
59{
60 return 0;
61}
62static inline void icnss_enable_irq(unsigned int ce_id)
63{
64 return;
65}
66static inline void icnss_disable_irq(unsigned int ce_id)
67{
68 return;
69}
70static inline int icnss_get_soc_info(struct pld_soc_info *info)
71{
72 return 0;
73}
74static inline int icnss_get_ce_id(int irq)
75{
76 return 0;
77}
78static inline int pld_snoc_get_soc_info(struct pld_soc_info *info)
79{
80 return 0;
81}
82#else
83int pld_snoc_register_driver(void);
84void pld_snoc_unregister_driver(void);
85int pld_snoc_wlan_enable(struct pld_wlan_enable_cfg *config,
86 enum pld_driver_mode mode, const char *host_version);
87int pld_snoc_wlan_disable(enum pld_driver_mode mode);
88int pld_snoc_get_soc_info(struct pld_soc_info *info);
89#endif
90
91#endif