Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Add pps support. Only enable pps if CLOCAL & !MDMBUF.



details:   https://anonhg.NetBSD.org/src/rev/8d5df53d374c
branches:  trunk
changeset: 467662:8d5df53d374c
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Sat Mar 27 01:21:36 1999 +0000

description:
Add pps support. Only enable pps if CLOCAL & !MDMBUF.

diffstat:

 sys/arch/mvme68k/dev/zs.c  |  9 ++++++---
 sys/arch/newsmips/dev/zs.c |  9 ++++++---
 sys/arch/next68k/dev/zs.c  |  9 ++++++---
 sys/arch/sparc/dev/zs.c    |  9 ++++++---
 sys/arch/sparc64/dev/zs.c  |  9 ++++++---
 sys/arch/sun3/dev/zs.c     |  9 ++++++---
 sys/arch/x68k/dev/zs.c     |  9 ++++++---
 7 files changed, 42 insertions(+), 21 deletions(-)

diffs (168 lines):

diff -r 787b9e8ed9c1 -r 8d5df53d374c sys/arch/mvme68k/dev/zs.c
--- a/sys/arch/mvme68k/dev/zs.c Sat Mar 27 01:17:03 1999 +0000
+++ b/sys/arch/mvme68k/dev/zs.c Sat Mar 27 01:21:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.17 1999/02/11 15:28:04 mycroft Exp $  */
+/*     $NetBSD: zs.c,v 1.18 1999/03/27 01:21:36 wrstuden Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -350,9 +350,12 @@
         * status interrupt to detect CTS changes.
         */
        s = splzs();
-       if ((cflag & (CLOCAL | MDMBUF)) != 0)
+       cs->cs_rr0_pps = 0;
+       if ((cflag & (CLOCAL | MDMBUF)) != 0) {
                cs->cs_rr0_dcd = 0;
-       else
+               if ((cflag & MDMBUF) == 0)
+                       cs->cs_rr0_pps = ZSRR0_DCD;
+       } else
                cs->cs_rr0_dcd = ZSRR0_DCD;
        if ((cflag & CRTSCTS) != 0) {
                cs->cs_wr5_dtr = ZSWR5_DTR;
diff -r 787b9e8ed9c1 -r 8d5df53d374c sys/arch/newsmips/dev/zs.c
--- a/sys/arch/newsmips/dev/zs.c        Sat Mar 27 01:17:03 1999 +0000
+++ b/sys/arch/newsmips/dev/zs.c        Sat Mar 27 01:21:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.6 1999/02/11 15:28:05 mycroft Exp $   */
+/*     $NetBSD: zs.c,v 1.7 1999/03/27 01:21:36 wrstuden Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -466,9 +466,12 @@
         * status interrupt to detect CTS changes.
         */
        s = splzs();
-       if ((cflag & (CLOCAL | MDMBUF)) != 0)
+       cs->cs_rr0_pps = 0;
+       if ((cflag & (CLOCAL | MDMBUF)) != 0) {
                cs->cs_rr0_dcd = 0;
-       else
+               if ((cflag & MDMBUF) == 0)
+                       cs->cs_rr0_pps = ZSRR0_DCD;
+       } else
                cs->cs_rr0_dcd = ZSRR0_DCD;
        if ((cflag & CRTSCTS) != 0) {
                cs->cs_wr5_dtr = ZSWR5_DTR;
diff -r 787b9e8ed9c1 -r 8d5df53d374c sys/arch/next68k/dev/zs.c
--- a/sys/arch/next68k/dev/zs.c Sat Mar 27 01:17:03 1999 +0000
+++ b/sys/arch/next68k/dev/zs.c Sat Mar 27 01:21:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.8 1999/03/26 04:42:59 dbj Exp $       */
+/*     $NetBSD: zs.c,v 1.9 1999/03/27 01:21:36 wrstuden Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -461,9 +461,12 @@
         * status interrupt to detect CTS changes.
         */
        s = splzs();
-       if ((cflag & (CLOCAL | MDMBUF)) != 0)
+       cs->cs_rr0_pps = 0;
+       if ((cflag & (CLOCAL | MDMBUF)) != 0) {
                cs->cs_rr0_dcd = 0;
-       else
+               if ((cflag & MDMBUF) == 0)
+                       cs->cs_rr0_pps = ZSRR0_DCD;
+       } else
                cs->cs_rr0_dcd = ZSRR0_DCD;
        if ((cflag & CRTSCTS) != 0) {
                cs->cs_wr5_dtr = ZSWR5_DTR;
diff -r 787b9e8ed9c1 -r 8d5df53d374c sys/arch/sparc/dev/zs.c
--- a/sys/arch/sparc/dev/zs.c   Sat Mar 27 01:17:03 1999 +0000
+++ b/sys/arch/sparc/dev/zs.c   Sat Mar 27 01:21:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.68 1999/03/05 08:30:33 pk Exp $       */
+/*     $NetBSD: zs.c,v 1.69 1999/03/27 01:21:36 wrstuden Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -577,9 +577,12 @@
         * status interrupt to detect CTS changes.
         */
        s = splzs();
-       if ((cflag & (CLOCAL | MDMBUF)) != 0)
+       cs->cs_rr0_pps = 0;
+       if ((cflag & (CLOCAL | MDMBUF)) != 0) {
                cs->cs_rr0_dcd = 0;
-       else
+               if ((cflag & MDMBUF) == 0)
+                       cs->cs_rr0_pps = ZSRR0_DCD;
+       } else
                cs->cs_rr0_dcd = ZSRR0_DCD;
        if ((cflag & CRTSCTS) != 0) {
                cs->cs_wr5_dtr = ZSWR5_DTR;
diff -r 787b9e8ed9c1 -r 8d5df53d374c sys/arch/sparc64/dev/zs.c
--- a/sys/arch/sparc64/dev/zs.c Sat Mar 27 01:17:03 1999 +0000
+++ b/sys/arch/sparc64/dev/zs.c Sat Mar 27 01:21:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.8 1999/02/28 00:29:24 eeh Exp $       */
+/*     $NetBSD: zs.c,v 1.9 1999/03/27 01:21:36 wrstuden Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -627,9 +627,12 @@
         * status interrupt to detect CTS changes.
         */
        s = splzs();
-       if ((cflag & (CLOCAL | MDMBUF)) != 0)
+       cs->cs_rr0_pps = 0;
+       if ((cflag & (CLOCAL | MDMBUF)) != 0) {
                cs->cs_rr0_dcd = 0;
-       else
+               if ((cflag & MDMBUF) == 0)
+                       cs->cs_rr0_pps = ZSRR0_DCD;
+       } else
                cs->cs_rr0_dcd = ZSRR0_DCD;
        if ((cflag & CRTSCTS) != 0) {
                cs->cs_wr5_dtr = ZSWR5_DTR;
diff -r 787b9e8ed9c1 -r 8d5df53d374c sys/arch/sun3/dev/zs.c
--- a/sys/arch/sun3/dev/zs.c    Sat Mar 27 01:17:03 1999 +0000
+++ b/sys/arch/sun3/dev/zs.c    Sat Mar 27 01:21:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.56 1999/02/11 15:28:06 mycroft Exp $  */
+/*     $NetBSD: zs.c,v 1.57 1999/03/27 01:21:36 wrstuden Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -516,9 +516,12 @@
         * status interrupt to detect CTS changes.
         */
        s = splzs();
-       if ((cflag & (CLOCAL | MDMBUF)) != 0)
+       cs->cs_rr0_pps = 0;
+       if ((cflag & (CLOCAL | MDMBUF)) != 0) {
                cs->cs_rr0_dcd = 0;
-       else
+               if ((cflag & MDMBUF) == 0)
+                       cs->cs_rr0_pps = ZSRR0_DCD;
+       } else
                cs->cs_rr0_dcd = ZSRR0_DCD;
        if ((cflag & CRTSCTS) != 0) {
                cs->cs_wr5_dtr = ZSWR5_DTR;
diff -r 787b9e8ed9c1 -r 8d5df53d374c sys/arch/x68k/dev/zs.c
--- a/sys/arch/x68k/dev/zs.c    Sat Mar 27 01:17:03 1999 +0000
+++ b/sys/arch/x68k/dev/zs.c    Sat Mar 27 01:21:36 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.16 1999/03/24 14:07:39 minoura Exp $  */
+/*     $NetBSD: zs.c,v 1.17 1999/03/27 01:21:37 wrstuden Exp $ */
 
 /*-
  * Copyright (c) 1998 Minoura Makoto
@@ -439,9 +439,12 @@
         * status interrupt to detect CTS changes.
         */
        s = splzs();
-       if ((cflag & (CLOCAL | MDMBUF)) != 0)
+       cs->cs_rr0_pps = 0;
+       if ((cflag & (CLOCAL | MDMBUF)) != 0) {
                cs->cs_rr0_dcd = 0;
-       else
+               if ((cflag & MDMBUF) == 0)
+                       cs->cs_rr0_pps = ZSRR0_DCD;
+       } else
                cs->cs_rr0_dcd = ZSRR0_DCD;
        if ((cflag & CRTSCTS) != 0) {
                cs->cs_wr5_dtr = ZSWR5_DTR;



Home | Main Index | Thread Index | Old Index