xref: /wlan-dirver/qca-wifi-host-cmn/utils/epping/inc/epping_main.h (revision 4865edfd190c086bbe2c69aae12a8226f877b91e)
1 /*
2  * Copyright (c) 2014-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 #ifndef EPPING_MAIN_H
20 #define EPPING_MAIN_H
21 /**===========================================================================
22 
23    \file  epping_main.h
24 
25    \brief Linux epping head file
26 
27    ==========================================================================*/
28 
29 /*---------------------------------------------------------------------------
30    Include files
31    -------------------------------------------------------------------------*/
32 #include <qdf_lock.h>
33 #include <qdf_types.h>
34 
35 /* epping_main signatures */
36 #ifdef WLAN_FEATURE_EPPING
37 int epping_open(void);
38 void epping_close(void);
39 void epping_disable(void);
40 int epping_enable(struct device *parent_dev);
41 #else
42 static inline int epping_open(void)
43 {
44 	return QDF_STATUS_E_INVAL;
45 }
46 
47 static inline int epping_enable(struct device *parent_dev)
48 {
49 	return QDF_STATUS_E_INVAL;
50 }
51 
52 static inline void epping_close(void) {}
53 static inline void epping_disable(void) {}
54 #endif
55 #endif /* end #ifndef EPPING_MAIN_H */
56