epping_main.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #ifndef EPPING_MAIN_H
  19. #define EPPING_MAIN_H
  20. /**===========================================================================
  21. \file epping_main.h
  22. \brief Linux epping head file
  23. ==========================================================================*/
  24. /*---------------------------------------------------------------------------
  25. Include files
  26. -------------------------------------------------------------------------*/
  27. #include <qdf_lock.h>
  28. #include <qdf_types.h>
  29. /* epping_main signatures */
  30. #ifdef WLAN_FEATURE_EPPING
  31. int epping_open(void);
  32. void epping_close(void);
  33. void epping_disable(void);
  34. int epping_enable(struct device *parent_dev);
  35. #else
  36. static inline int epping_open(void)
  37. {
  38. return QDF_STATUS_E_INVAL;
  39. }
  40. static inline int epping_enable(struct device *parent_dev)
  41. {
  42. return QDF_STATUS_E_INVAL;
  43. }
  44. static inline void epping_close(void) {}
  45. static inline void epping_disable(void) {}
  46. #endif
  47. #endif /* end #ifndef EPPING_MAIN_H */