diff options
| author | matt <matt@NetBSD.org> | 1999-08-02 01:44:22 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 1999-08-02 01:44:22 +0000 |
| commit | 825e233d2e3c2ef1deba17efdca342e68c3e473f (patch) | |
| tree | e0135fa756ba8441cc550ef284b8820d3d7c7c5f /sys/dev/sun | |
| parent | bba687e9476204ce188274742534d177c3bf082e (diff) | |
Allow the mouse baud rate to be patched (rather than forcing a recompilation
of the kernel). Also, if the mouse baud rate is 0, say the mouse the isn't
there (so a terminal may be attached in its place). Make debugging mouse
problems much easier.
Diffstat (limited to 'sys/dev/sun')
| -rw-r--r-- | sys/dev/sun/ms_zs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/sun/ms_zs.c b/sys/dev/sun/ms_zs.c index c6a033be402..5d6ed0016e0 100644 --- a/sys/dev/sun/ms_zs.c +++ b/sys/dev/sun/ms_zs.c @@ -1,4 +1,4 @@ -/* $NetBSD: ms_zs.c,v 1.1 1999/05/14 06:42:02 mrg Exp $ */ +/* $NetBSD: ms_zs.c,v 1.2 1999/08/02 01:44:22 matt Exp $ */ /* * Copyright (c) 1992, 1993 @@ -87,6 +87,8 @@ struct zsops zsops_ms = { ms_zs_softint, /* process software interrupt */ }; +int ms_zs_bps = MS_BPS; + static int ms_zs_match(struct device *, struct cfdata *, void *); static void ms_zs_attach(struct device *, struct device *, void *); @@ -105,6 +107,9 @@ ms_zs_match(parent, cf, aux) { struct zsc_attach_args *args = aux; + if (ms_zs_bps == 0) + return 0; + /* Exact match required for keyboard. */ if (cf->cf_loc[ZSCCF_CHANNEL] == args->channel) return 2; @@ -145,7 +150,7 @@ ms_zs_attach(parent, self, aux) /* These are OK as set by zscc: WR3, WR4, WR5 */ /* We don't care about status or tx interrupts. */ cs->cs_preg[1] = ZSWR1_RIE; - (void) zs_set_speed(cs, MS_BPS); + (void) zs_set_speed(cs, ms_zs_bps); zs_loadchannelregs(cs); splx(s); |
