Skip to contentSkip to conversation

PTI header file.

PATCH In review [email protected] 2 participants 2 messages Feb 24, 2011 – Feb 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 5/10 PTI header file.

From: J Freyensee <[email protected]>

This adds PTI header information for the PTI project.

---
 include/linux/pti.h |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/pti.h
include/linux/pti.h new file +39 -0
new file mode 100644
index 0000000..94d05bc
@@ -0,0 +1,39 @@
+/*
+ *  Copyright (C) Intel 2011
+ *
+ * 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.
+ *
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ *
+ * The PTI (Parallel Trace Interface) driver directs trace data routed from
+ * various parts in the system out through the Intel Penwell PTI port and
+ * out of the mobile device for analysis with a debugging tool
+ * (Lauterbach, Fido). This is part of a solution for the MIPI P1149.7,
+ * compact JTAG, standard.
+ *
+ * This header file will allow other parts of the OS to use the
+ * interface to write out it's contents for debugging a mobile system.
+ */
+
+#ifndef PTI_H_
+#define PTI_H_
+
+/* basic structure used as a write address to the PTI HW */
+struct pti_masterchannel {
+	u8 master;
+	u8 channel;
+};
+
+/* the following functions are defined in misc/pti.c */
+void pti_writedata(struct pti_masterchannel *mc, u8 *buf, int count);
+struct pti_masterchannel *pti_request_masterchannel(u8 type);
+void pti_release_masterchannel(struct pti_masterchannel *mc);
+
+#endif /*PTI_H_*/
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 6 lines · On Thursday 24 February 2011, [email protected] wrote:

From: J Freyensee <[email protected]>

This adds PTI header information for the PTI project.

Don't split the changes by file, but by functionality.

The header file belongs with the code whose interfaces it exports, so merge it into that patch.

Just make sure that the patch order is right, so you introduce the file before you use it.

Arnd