aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJ Freyensee <james_p_freyensee@linux.intel.com>2010-12-09 10:37:34 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:34 +0000
commit0f39fe99d877cbabafaa2045ee9a7cac1fa7822f (patch)
tree55cda6dd40fd9cd8a847a18637ffaeb68a311643 /include
parent2cc0000dc9be0474722fb805a6bf986004c97ce1 (diff)
downloadmrst-s0i3-test-0f39fe99d877cbabafaa2045ee9a7cac1fa7822f.tar.gz
mrst-s0i3-test-0f39fe99d877cbabafaa2045ee9a7cac1fa7822f.tar.xz
mrst-s0i3-test-0f39fe99d877cbabafaa2045ee9a7cac1fa7822f.zip
The goal of this change is to:
1. simplify the n_tracesink and n_tracerouter designs, making them more generic for general Linux tree (Alan Cox deliverable) 2. Still meet customer requirements and needs (customer deliverable for Meego) 3. Push any and all specific PTI implementation to one place, drivers/misc/pti.c This patch is for a code review and feedback and it not expected to pass first time (past experiences ;-)). Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/n_tracesink.h32
-rw-r--r--include/linux/pti.h3
2 files changed, 32 insertions, 3 deletions
diff --git a/include/linux/n_tracesink.h b/include/linux/n_tracesink.h
new file mode 100644
index 00000000000..b1a3ad88762
--- /dev/null
+++ b/include/linux/n_tracesink.h
@@ -0,0 +1,32 @@
+/*
+ * n_tracesink.h - Kernel driver API to route trace data in kernel space.
+ *
+ * Copyright (C) Intel 2010
+ *
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA
+ *
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ * The implementation of the function seen in this file can be found in
+ * char/n_tracesink.c
+ */
+
+#ifndef N_TRACESINK_H_
+#define N_TRACESINK_H_
+
+void n_tracesink_datadrain(u8 *cp, int count);
+
+#endif
diff --git a/include/linux/pti.h b/include/linux/pti.h
index 5ca3fa94c26..c7727b2db08 100644
--- a/include/linux/pti.h
+++ b/include/linux/pti.h
@@ -32,9 +32,6 @@ void mipi_pti_writedata(struct masterchannel *mc, u8 *cp, int count);
struct masterchannel *mipi_request_masterchannel(u8 kerneluser);
void mipi_release_masterchannel(struct masterchannel *mc);
-/* the following function is defined in char/n_tracesink.c */
-void mipi_pti_sinkdata(struct masterchannel *mc, u8 *cp, int count);
-
#define APERTURE_14 0x3800000
#define APERTURE_LEN 0x400000