Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dec allow to wildcard the serial channel



details:   https://anonhg.NetBSD.org/src/rev/ecddac74ba60
branches:  trunk
changeset: 477658:ecddac74ba60
user:      drochner <drochner%NetBSD.org@localhost>
date:      Tue Oct 26 18:20:44 1999 +0000

description:
allow to wildcard the serial channel

diffstat:

 sys/dev/dec/zsms.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 7c1ab1c2a09c -r ecddac74ba60 sys/dev/dec/zsms.c
--- a/sys/dev/dec/zsms.c        Tue Oct 26 12:35:14 1999 +0000
+++ b/sys/dev/dec/zsms.c        Tue Oct 26 18:20:44 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zsms.c,v 1.4 1999/09/19 14:45:47 drochner Exp $        */
+/*     $NetBSD: zsms.c,v 1.5 1999/10/26 18:20:44 drochner Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -135,10 +135,14 @@
 {
        struct zsc_attach_args *args = aux;
 
-       /* Exact match required for keyboard. */
+       /* Exact match is better than wildcard. */
        if (cf->cf_loc[ZSCCF_CHANNEL] == args->channel)
                return 2;
 
+       /* This driver accepts wildcard. */
+       if (cf->cf_loc[ZSCCF_CHANNEL] == ZSCCF_CHANNEL_DEFAULT)
+               return 1;
+
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index