xref: /wlan-driver/qca-wifi-host-cmn/utils/epping/inc/epping_main.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name #ifndef EPPING_MAIN_H
20*5113495bSYour Name #define EPPING_MAIN_H
21*5113495bSYour Name /**===========================================================================
22*5113495bSYour Name 
23*5113495bSYour Name    \file  epping_main.h
24*5113495bSYour Name 
25*5113495bSYour Name    \brief Linux epping head file
26*5113495bSYour Name 
27*5113495bSYour Name    ==========================================================================*/
28*5113495bSYour Name 
29*5113495bSYour Name /*---------------------------------------------------------------------------
30*5113495bSYour Name    Include files
31*5113495bSYour Name    -------------------------------------------------------------------------*/
32*5113495bSYour Name #include <qdf_lock.h>
33*5113495bSYour Name #include <qdf_types.h>
34*5113495bSYour Name 
35*5113495bSYour Name /* epping_main signatures */
36*5113495bSYour Name #ifdef WLAN_FEATURE_EPPING
37*5113495bSYour Name int epping_open(void);
38*5113495bSYour Name void epping_close(void);
39*5113495bSYour Name void epping_disable(void);
40*5113495bSYour Name int epping_enable(struct device *parent_dev, bool rtnl_held);
41*5113495bSYour Name void epping_enable_adapter(void);
42*5113495bSYour Name #else
epping_open(void)43*5113495bSYour Name static inline int epping_open(void)
44*5113495bSYour Name {
45*5113495bSYour Name 	return QDF_STATUS_E_INVAL;
46*5113495bSYour Name }
47*5113495bSYour Name 
epping_enable(struct device * parent_dev,bool rtnl_held)48*5113495bSYour Name static inline int epping_enable(struct device *parent_dev, bool rtnl_held)
49*5113495bSYour Name {
50*5113495bSYour Name 	return QDF_STATUS_E_INVAL;
51*5113495bSYour Name }
52*5113495bSYour Name 
epping_close(void)53*5113495bSYour Name static inline void epping_close(void) {}
epping_disable(void)54*5113495bSYour Name static inline void epping_disable(void) {}
epping_enable_adapter(void)55*5113495bSYour Name static inline void epping_enable_adapter(void) {}
56*5113495bSYour Name #endif
57*5113495bSYour Name #endif /* end #ifndef EPPING_MAIN_H */
58