1 /*
2  * Copyright (c) 2013-2014, 2021 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 HTC_DEBUG_H_
20 #define HTC_DEBUG_H_
21 
22 #define ATH_MODULE_NAME htc
23 #include "a_debug.h"
24 #include "qdf_trace.h"
25 
26 /* ------- Debug related stuff ------- */
27 
28 #define  ATH_DEBUG_SEND ATH_DEBUG_MAKE_MODULE_MASK(0)
29 #define  ATH_DEBUG_RECV ATH_DEBUG_MAKE_MODULE_MASK(1)
30 #define  ATH_DEBUG_SYNC ATH_DEBUG_MAKE_MODULE_MASK(2)
31 #define  ATH_DEBUG_DUMP ATH_DEBUG_MAKE_MODULE_MASK(3)
32 #define  ATH_DEBUG_SETUP  ATH_DEBUG_MAKE_MODULE_MASK(4)
33 #define HTC_ERROR(args ...) \
34 	QDF_TRACE(QDF_MODULE_ID_HTC, QDF_TRACE_LEVEL_ERROR, ## args)
35 #define HTC_WARN(args ...) \
36 	QDF_TRACE(QDF_MODULE_ID_HTC, QDF_TRACE_LEVEL_WARN, ## args)
37 #define HTC_INFO(args ...) \
38 	QDF_TRACE(QDF_MODULE_ID_HTC, QDF_TRACE_LEVEL_INFO, ## args)
39 #define HTC_TRACE(args ...) \
40 	QDF_TRACE(QDF_MODULE_ID_HTC, QDF_TRACE_LEVEL_DEBUG, ## args)
41 #define HTC_NOFL_INFO(args...) \
42 	QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_HTC, ## args)
43 #endif /*HTC_DEBUG_H_ */
44