From: tholo Date: Thu, 6 Mar 1997 07:06:45 +0000 (+0000) Subject: Add control flag to call hardpps() on carrier change X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=73960472bfce7644479dc5aec916e3ef3a7f1fa4;p=openbsd Add control flag to call hardpps() on carrier change --- diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index 2a044c66ed5..c0da882608b 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: comvar.h,v 1.7 1997/01/29 17:56:35 niklas Exp $ */ +/* $OpenBSD: comvar.h,v 1.8 1997/03/06 07:06:45 tholo Exp $ */ /* $NetBSD: comvar.h,v 1.5 1996/05/05 19:50:47 christos Exp $ */ /* @@ -77,6 +77,7 @@ struct com_softc { #define COM_SW_CLOCAL 0x02 #define COM_SW_CRTSCTS 0x04 #define COM_SW_MDMBUF 0x08 +#define COM_SW_PPS 0x10 u_char sc_msr, sc_mcr, sc_lcr, sc_ier; u_char sc_dtr; diff --git a/sys/sys/ttycom.h b/sys/sys/ttycom.h index 4f72bd4fcaf..c08bc8a94b1 100644 --- a/sys/sys/ttycom.h +++ b/sys/sys/ttycom.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ttycom.h,v 1.4 1996/09/09 23:35:17 downsj Exp $ */ +/* $OpenBSD: ttycom.h,v 1.5 1997/03/06 07:06:47 tholo Exp $ */ /* $NetBSD: ttycom.h,v 1.4 1996/05/19 17:17:53 jonathan Exp $ */ /*- @@ -128,6 +128,7 @@ struct winsize { #define TIOCFLAG_CLOCAL 0x02 /* set clocal on open */ #define TIOCFLAG_CRTSCTS 0x04 /* set crtscts on open */ #define TIOCFLAG_MDMBUF 0x08 /* set mdmbuf on open */ +#define TIOCFLAG_PPS 0x10 /* call hardpps on carrier up */ /* Backwards compatibility */ #define TIOCMODG TIOCMGET