Re: [PATCH 7/7] Documentation/ABI: for N_TI_SHARED ldisc

Previous thread: Re: [PATCH 0/2] arm: add a /proc/cpuinfo platform extension by Ryan Mallon on Tuesday, March 23, 2010 - 1:30 pm. (6 messages)

Next thread: [PATCH 2/7] drivers:staging: Kconfig, Makefile for TI's ST ldisc by pavan_savoy on Tuesday, March 23, 2010 - 1:41 pm. (6 messages)
From: pavan_savoy
Date: Tuesday, March 23, 2010 - 1:41 pm

From: Pavan Savoy <pavan_savoy@ti.com>

Texas Instruments BT, FM and GPS combo chips/drivers
make use of a single TTY to communicate with the chip.
This is the common header file for both the ST driver and the
protocol drivers which intend to use ST as their mode of
transport.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
---
 drivers/staging/ti-st/fm.h |   13 +++++++
 drivers/staging/ti-st/st.h |   85 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 98 insertions(+), 0 deletions(-)
 create mode 100644 drivers/staging/ti-st/fm.h
 create mode 100644 drivers/staging/ti-st/st.h

diff --git a/drivers/staging/ti-st/fm.h b/drivers/staging/ti-st/fm.h
new file mode 100644
index 0000000..be41453
--- /dev/null
+++ b/drivers/staging/ti-st/fm.h
@@ -0,0 +1,13 @@
+struct fm_event_hdr {
+	unsigned char plen;
+} __attribute__ ((packed));
+
+#define FM_MAX_FRAME_SIZE 0xFF	/* TODO: */
+#define FM_EVENT_HDR_SIZE 1	/* size of fm_event_hdr */
+#define ST_FM_CH8_PKT 0x8
+
+/* gps stuff */
+struct gps_event_hdr {
+unsigned char opcode;
+unsigned short plen;
+} __attribute__ ((packed));
diff --git a/drivers/staging/ti-st/st.h b/drivers/staging/ti-st/st.h
new file mode 100644
index 0000000..ec821d2
--- /dev/null
+++ b/drivers/staging/ti-st/st.h
@@ -0,0 +1,85 @@
+/*
+ *  Shared Transport Header file
+ *	To be included by the protocol stack drivers for
+ *	Texas Instruments BT,FM and GPS combo chip drivers
+ *
+ *  Copyright (C) 2009 Texas Instruments
+ *
+ *  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 ...
From: pavan_savoy
Date: Tuesday, March 23, 2010 - 1:41 pm

From: Pavan Savoy <pavan_savoy@ti.com>

N_TI_SHARED creates a sysfs entry to communicate
with the application/daemon which would want to install/
un-install the line discipline, it's documentation
now exists in testing/ subdirectory.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
---
 Documentation/ABI/testing/sysfs-uim |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-uim

diff --git a/Documentation/ABI/testing/sysfs-uim b/Documentation/ABI/testing/sysfs-uim
new file mode 100644
index 0000000..899aa4d
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-uim
@@ -0,0 +1,24 @@
+What:           /sys/uim
+Date:           March 22
+Contact:        Pavan Savoy <pavan_savoy@ti.com>
+Description:
+                Create a new kobject to pass information about the
+		N_TI_SHARED line discipline created to application/daemon
+		which would install/un-install line discipline.
+
+What:           /sys/uim/pid
+Date:           March 22
+Contact:        Pavan Savoy <pavan_savoy@ti.com>
+Description:
+		The daemon/application wanting to use the line discipline
+		N_TI_SHARED will write in it's process Id, for the LDISC
+		driver to send SIGUSR2 signal to the process whenever a
+		upper layer protocol driver wants to make use of the LDISC
+		driver.
+
+What:           /sys/uim/protocols
+Date:           March 22
+Contact:        Pavan Savoy <pavan_savoy@ti.com>
+Description:
+		List the protocols currently making use of the LDISC to ensure
+		LDISC is not un-installed when BT/FM or GPS is making use of it.
-- 
1.5.4.3

--

From: Greg KH
Date: Tuesday, March 23, 2010 - 7:29 pm

Again, staging drivers need to be self-contained. Please keep this in
the staging driver directory for now.

thanks,

greg k-h
--

Previous thread: Re: [PATCH 0/2] arm: add a /proc/cpuinfo platform extension by Ryan Mallon on Tuesday, March 23, 2010 - 1:30 pm. (6 messages)

Next thread: [PATCH 2/7] drivers:staging: Kconfig, Makefile for TI's ST ldisc by pavan_savoy on Tuesday, March 23, 2010 - 1:41 pm. (6 messages)