path: root/include
diff options
authorJ Freyensee <james_p_freyensee@linux.intel.com>2010-12-08 10:57:43 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-08 10:57:43 +0000
commit0753ba66d824c89a1a174cb74190208f05d4e46b (patch)
treea82b3c370e86422d18291104c09c67d09b2d3c09 /include
parent5f251e92d16b5b46b9d54b69dfe9b4af0d598c7e (diff)
Modem trace capture solution for mobile platforms.
This gives the ability to capture modem trace data on multiple MID platforms that do not necessarily have PTI HW on the platform. It allows the ability to route modem trace data from one tty (where the modem trace debug data is coming) to another tty (output port) for later analysis in lab or on a product in the field. Since these are line discipline drivers, it relies on a userspace application to configure the drivers to the desired tty ports. This is a re-submisison. It is believed this patch was acceptable (due to lack of feedback from the last submission) but was not applied due to the missing ptirouter_ldisc->n_tracerouter rename patch. This patch needs this rename patch which was re-submitted. Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com>
Diffstat (limited to 'include')
2 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/pti.h b/include/linux/pti.h
index 07c73b70529..5ca3fa94c26 100644
--- a/include/linux/pti.h
+++ b/include/linux/pti.h
@@ -21,17 +21,20 @@
#ifndef PTI_H_
#define PTI_H_
+/* basic structure used as a write address to the PTI HW */
struct masterchannel {
u8 master;
u8 channel;
+/* the following functions are defined in misc/pti.c */
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
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 8c3be65bc5e..1ebceca9a3d 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -51,6 +51,7 @@
#define N_GSM0710 21 /* GSM 0710 Mux */
#define N_TI_WL 22 /* for TI's WL BT, FM, GPS combo chips */
#define N_TRACEROUTER 23 /* Trace data routing for MIPI P1149.7 */
+#define N_TRACESINK 23 /* Trace data routing for MIPI P1149.7 */
* This character is the same as _POSIX_VDISABLE: it cannot be used as