diff options
| author | is <is@NetBSD.org> | 1997-09-16 20:34:23 +0000 |
|---|---|---|
| committer | is <is@NetBSD.org> | 1997-09-16 20:34:23 +0000 |
| commit | 718fb97e11bfc33ec278b4c4a652aebf4dee181c (patch) | |
| tree | bfc07610400deb3fab2234c32e0299e506ca83c7 /sys/dev/ic/comvar.h | |
| parent | d1b4b492310958c0e1d2b8a94554becf97007a23 (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/ic/comvar.h')
| -rw-r--r-- | sys/dev/ic/comvar.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index 1ad170ea2cc..fa87123bbd0 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: comvar.h,v 1.14 1997/08/23 14:01:34 drochner Exp $ */ +/* $NetBSD: comvar.h,v 1.15 1997/09/16 20:34:29 is Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. @@ -30,10 +30,10 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -int comcnattach __P((bus_space_tag_t, int, int, tcflag_t)); +int comcnattach __P((bus_space_tag_t, int, int, int, tcflag_t)); #ifdef KGDB -int com_kgdb_attach __P((bus_space_tag_t, int, int, tcflag_t)); +int com_kgdb_attach __P((bus_space_tag_t, int, int, int, tcflag_t)); #endif int com_is_console __P((bus_space_tag_t, int, bus_space_handle_t *)); @@ -62,6 +62,7 @@ struct com_softc { int sc_errors; int sc_iobase; + int sc_frequency; bus_space_tag_t sc_iot; bus_space_handle_t sc_ioh; @@ -110,7 +111,8 @@ struct com_softc { int comprobe1 __P((bus_space_tag_t, bus_space_handle_t, int)); int comintr __P((void *)); void com_attach_subr __P((struct com_softc *)); -int cominit __P((bus_space_tag_t, int, int, tcflag_t, bus_space_handle_t *)); +int cominit __P((bus_space_tag_t, int, int, int, tcflag_t, + bus_space_handle_t *)); #ifndef __GENERIC_SOFT_INTERRUPTS #ifdef alpha |
