summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>1999-10-26 18:20:44 +0000
committerdrochner <drochner@NetBSD.org>1999-10-26 18:20:44 +0000
commit29dd0803ebee55fc1a1027bf1cca24b936ef3624 (patch)
treea275f6c25cbc706ef211c38d77552f11d38b203d /sys/dev
parent0247fe44f63a961d3785b2d809387d3a8c33619c (diff)
allow to wildcard the serial channel
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/dec/zsms.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/dec/zsms.c b/sys/dev/dec/zsms.c
index 79eed90bc42..5f168405679 100644
--- a/sys/dev/dec/zsms.c
+++ b/sys/dev/dec/zsms.c
@@ -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 @@ zsms_match(parent, cf, aux)
{
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;
}