[PATCH 07/10] tty: new PPS line discipline.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Cc: Andrew Morton <akpm@...>, David Woodhouse <dwmw2@...>, Dave Jones <davej@...>, Sam Ravnborg <sam@...>, Greg KH <greg@...>, Randy Dunlap <randy.dunlap@...>, Kay Sievers <kay.sievers@...>, Alan Cox <alan@...>, H. Peter Anvin <hpa@...>, Ingo Molnar <mingo@...>, Rodolfo Giometti <giometti@...>
Date: Wednesday, September 10, 2008 - 3:52 am

Add a new line discipline for "pulse per second" devices connected to
a serial port.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
---
 include/linux/tty.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/tty.h b/include/linux/tty.h
index 826d695..1857db2 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -24,7 +24,7 @@
  */
 #define NR_UNIX98_PTY_DEFAULT	4096      /* Default maximum for Unix98 ptys */
 #define NR_UNIX98_PTY_MAX	(1 << MINORBITS) /* Absolute limit */
-#define NR_LDISCS		18
+#define NR_LDISCS		19
 
 /* line disciplines */
 #define N_TTY		0
@@ -46,6 +46,7 @@
 #define N_HCI		15	/* Bluetooth HCI UART */
 #define N_GIGASET_M101	16	/* Siemens Gigaset M101 serial DECT adapter */
 #define N_SLCAN		17	/* Serial / USB serial CAN Adaptors */
+#define N_PPS		18	/* Pulse per Second */
 
 /*
  * This character is the same as _POSIX_VDISABLE: it cannot be used as
-- 
1.5.4.3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
LinuxPPS (RESUBMIT 7): the PPS Linux implementation., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 01/10] LinuxPPS core support., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 02/10] PPS: userland header file for PPS API., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 03/10] PPS: documentation programs and examples., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 04/10] PPS: LinuxPPS clients support., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 06/10] ldisc n_tty: export all N_TTY ldisc methods., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 07/10] tty: new PPS line discipline., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 08/10] PPS: serial clients support., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 09/10] PPS: parallel port clients support., Rodolfo Giometti, (Wed Sep 10, 3:52 am)
[PATCH 10/10] PPS: low level IRQ timestamps recording., Rodolfo Giometti, (Wed Sep 10, 3:52 am)