summaryrefslogtreecommitdiff
path: root/sys/dev/isa/com_multi.c
diff options
context:
space:
mode:
authoris <is@NetBSD.org>1997-09-16 20:34:23 +0000
committeris <is@NetBSD.org>1997-09-16 20:34:23 +0000
commit718fb97e11bfc33ec278b4c4a652aebf4dee181c (patch)
treebfc07610400deb3fab2234c32e0299e506ca83c7 /sys/dev/isa/com_multi.c
parentd1b4b492310958c0e1d2b8a94554becf97007a23 (diff)
Support for the upcoming NetBSD/Amiga Hypercom driver family:
* support chip clocks != COM_FREQ, by introducing sc_frequency (for the mainline code) and adding a frequency parameter right after the rate parameter to comcnattach() and com_kgdb_attach(). - Make com_isa and com_multi initialize sc_frequency to COM_FREQ. - Make i386/machdep.c and alpha/dec_xxx.c call com*attach() with the freq. parameter. * supio_attach_args get two more fields: a sc_ipl and a sc_arg, both ints. - com_supio uses the first for interupt establishment (all childs will, as soon as they exist) and the 2nd for sc_frequency. - drsupio passes sc_ipl alway as 5, and for the "com"s, sc_arg as 16*115200 - hyper will pass sc_ipl as 6, and sc_arg as 16 * 460800
Diffstat (limited to 'sys/dev/isa/com_multi.c')
-rw-r--r--sys/dev/isa/com_multi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isa/com_multi.c b/sys/dev/isa/com_multi.c
index 787ee747ed9..959deb34d64 100644
--- a/sys/dev/isa/com_multi.c
+++ b/sys/dev/isa/com_multi.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com_multi.c,v 1.5 1997/08/23 14:03:55 drochner Exp $ */
+/* $NetBSD: com_multi.c,v 1.6 1997/09/16 20:34:28 is Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1996
@@ -106,6 +106,7 @@ com_multi_attach(parent, self, aux)
sc->sc_iot = ca->ca_iot;
sc->sc_ioh = ca->ca_ioh;
sc->sc_iobase = ca->ca_iobase;
+ sc->sc_frequency = 115200 * 16;
if (ca->ca_noien)
sc->sc_hwflags |= COM_HW_NOIEN;