summaryrefslogtreecommitdiff
path: root/uapi/linux/debug_linux.h
diff options
context:
space:
mode:
authorPrakash Dhavali <pdhavali@codeaurora.org>2016-02-25 23:29:32 -0800
committerPrakash Dhavali <pdhavali@codeaurora.org>2016-02-25 23:45:07 -0800
commit65b41c171a1bbe02fa9bcbbc92006f1a5744c043 (patch)
tree7d73c47aa8f903fd12f20ada14e0270f5d1a27f9 /uapi/linux/debug_linux.h
parent30268731cd9433b7a16ae91b6f490d700ef7d784 (diff)
parentc12479078c1a4b0b30f6790d0a7eaa5ea6a478a3 (diff)
Merge remote-tracking branch 'origin/caf/caf-wlan/master' into wlan-cmn.driver.lnx.1.0-dev
Sync-up wlan-cmn.driver.lnx.1.0-dev branch to caf master version of host-common driver that is exactly same as qcacld-3.0 driver version 5.0.0.149 * origin/caf/caf-wlan/master: (294 commits) qcacld-3.0: Lower the log level for unhandled Action frame logs qcacld-3.0: Add disconnect to the head of sme pending command list Release 5.0.0.149 QCACLD3 WLAN Driver qcacld-3.0: Enable emergency reaping for wmi pipe. qcacld-3.0: add retry logic if htc_issue_packets fails qcacld-3.0: Ignore HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND from FW qcacld-3.0: Do not reserve mgmt descriptors qcacld-3.0: Use appropriate list API qcacld-3.0: Remove per vdev tx descriptor pool qcacld-3.0: Enable enahnced flow control qcacld-3.0: Add support for telescopic PNO ... Release 5.0.0.140 ... Initial readme for WLAN Host Driver for iHelium Change-Id: I36e7222946f442159390bd78a65ee5dc6876b582 CRs-Fixed: 688141
Diffstat (limited to 'uapi/linux/debug_linux.h')
-rw-r--r--uapi/linux/debug_linux.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/uapi/linux/debug_linux.h b/uapi/linux/debug_linux.h
new file mode 100644
index 000000000000..57c3590efba4
--- /dev/null
+++ b/uapi/linux/debug_linux.h
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2013-2015 The Linux Foundation. All rights reserved.
+ *
+ * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
+ *
+ *
+ * Permission to use, copy, modify, and/or distribute this software for
+ * any purpose with or without fee is hereby granted, provided that the
+ * above copyright notice and this permission notice appear in all
+ * copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
+ * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+ * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+ * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/*
+ * This file was originally distributed by Qualcomm Atheros, Inc.
+ * under proprietary terms before Copyright ownership was assigned
+ * to the Linux Foundation.
+ */
+
+#ifndef _DEBUG_LINUX_H_
+#define _DEBUG_LINUX_H_
+
+/* macro to remove parens */
+#define ATH_PRINTX_ARG(arg ...) arg
+
+#ifdef DEBUG
+/* NOTE: the AR_DEBUG_PRINTF macro is defined here to handle special handling of variable arg macros
+ * which may be compiler dependent. */
+#define AR_DEBUG_PRINTF(mask, args) do { \
+ if (GET_ATH_MODULE_DEBUG_VAR_MASK(ATH_MODULE_NAME) & (mask)) { \
+ A_LOGGER(mask, ATH_MODULE_NAME, ATH_PRINTX_ARG args); \
+ } \
+} while (0)
+#else
+/* on non-debug builds, keep in error and warning messages in the driver, all other
+ * message tracing will get compiled out */
+#define AR_DEBUG_PRINTF(mask, args) \
+ if ((mask) & (ATH_DEBUG_ERR | ATH_DEBUG_WARN)) { A_PRINTF(ATH_PRINTX_ARG args); }
+
+#endif
+
+#endif /* _DEBUG_LINUX_H_ */