htc_debug.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Copyright (c) 2013-2014 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. * This file was originally distributed by Qualcomm Atheros, Inc.
  23. * under proprietary terms before Copyright ownership was assigned
  24. * to the Linux Foundation.
  25. */
  26. #ifndef HTC_DEBUG_H_
  27. #define HTC_DEBUG_H_
  28. #define ATH_MODULE_NAME htc
  29. #include "a_debug.h"
  30. #include "qdf_trace.h"
  31. /* ------- Debug related stuff ------- */
  32. #define ATH_DEBUG_SEND ATH_DEBUG_MAKE_MODULE_MASK(0)
  33. #define ATH_DEBUG_RECV ATH_DEBUG_MAKE_MODULE_MASK(1)
  34. #define ATH_DEBUG_SYNC ATH_DEBUG_MAKE_MODULE_MASK(2)
  35. #define ATH_DEBUG_DUMP ATH_DEBUG_MAKE_MODULE_MASK(3)
  36. #define ATH_DEBUG_SETUP ATH_DEBUG_MAKE_MODULE_MASK(4)
  37. #define HTC_ERROR(args ...) \
  38. QDF_TRACE(QDF_MODULE_ID_HTC, QDF_TRACE_LEVEL_ERROR, ## args)
  39. #define HTC_WARN(args ...) \
  40. QDF_TRACE(QDF_MODULE_ID_HTC, QDF_TRACE_LEVEL_WARN, ## args)
  41. #define HTC_INFO(args ...) \
  42. QDF_TRACE(QDF_MODULE_ID_HTC, QDF_TRACE_LEVEL_INFO, ## args)
  43. #define HTC_TRACE(args ...) \
  44. QDF_TRACE(QDF_MODULE_ID_HTC, QDF_TRACE_LEVEL_DEBUG, ## args)
  45. #endif /*HTC_DEBUG_H_ */