diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/isa/pccom.c | 34 | ||||
-rw-r--r-- | sys/arch/i386/isa/pccomvar.h | 9 | ||||
-rw-r--r-- | sys/dev/ic/comvar.h | 8 | ||||
-rw-r--r-- | sys/dev/isa/com_isa.c | 7 |
4 files changed, 21 insertions, 37 deletions
diff --git a/sys/arch/i386/isa/pccom.c b/sys/arch/i386/isa/pccom.c index 157eec9135c..8d3e7770da7 100644 --- a/sys/arch/i386/isa/pccom.c +++ b/sys/arch/i386/isa/pccom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccom.c,v 1.47 2005/09/26 22:32:05 miod Exp $ */ +/* $OpenBSD: pccom.c,v 1.48 2005/10/24 14:22:34 fgsch Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -144,7 +144,7 @@ int comdefaultrate = CONSPEED; /* XXX why set default? */ #else int comdefaultrate = TTYDEF_SPEED; #endif -int comconsaddr; +bus_addr_t comconsaddr; int comconsinit; int comconsattached; bus_space_tag_t comconsiot; @@ -158,10 +158,9 @@ int comevents = 0; #ifdef KGDB #include <sys/kgdb.h> -static int com_kgdb_addr; -static bus_space_tag_t com_kgdb_iot; -static bus_space_handle_t com_kgdb_ioh; -static int com_kgdb_attached; +bus_addr_t com_kgdb_addr; +bus_space_tag_t com_kgdb_iot; +bus_space_handle_t com_kgdb_ioh; int com_kgdb_getc(void *); void com_kgdb_putc(void *, int); @@ -319,9 +318,10 @@ comattach(parent, self, aux) void *aux; { struct com_softc *sc = (void *)self; - int iobase, irq; + bus_addr_t iobase; bus_space_tag_t iot; bus_space_handle_t ioh; + int irq; /* * XXX should be broken out into functions for isa attach and @@ -422,24 +422,6 @@ comattach(parent, self, aux) com_attach_subr(sc); } -#ifdef KGDB -void -com_enable_debugport(sc) - struct com_softc *sc; -{ - int s; - - /* Turn on line break interrupt, set carrier. */ - s = splhigh(); - SET(sc->sc_ier, IER_ERXRDY); - bus_space_write_1(sc->sc_iot, sc->sc_ioh, com_ier, sc->sc_ier); - SET(sc->sc_mcr, MCR_DTR | MCR_RTS | MCR_IENABLE); - bus_space_write_1(sc->sc_iot, sc->sc_ioh, com_mcr, sc->sc_mcr); - - splx(s); -} -#endif /* KGDB */ - int com_detach(self, flags) struct device *self; @@ -1718,7 +1700,7 @@ comcnpollc(dev, on) int com_kgdb_attach(iot, iobase, rate, frequency, cflag) bus_space_tag_t iot; - int iobase; + bus_addr_t iobase; int rate, frequency; tcflag_t cflag; { diff --git a/sys/arch/i386/isa/pccomvar.h b/sys/arch/i386/isa/pccomvar.h index 95f8adb6631..dc98de2b4c9 100644 --- a/sys/arch/i386/isa/pccomvar.h +++ b/sys/arch/i386/isa/pccomvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pccomvar.h,v 1.15 2005/09/26 22:32:05 miod Exp $ */ +/* $OpenBSD: pccomvar.h,v 1.16 2005/10/24 14:22:34 fgsch Exp $ */ /* $NetBSD: comvar.h,v 1.5 1996/05/05 19:50:47 christos Exp $ */ /* @@ -135,13 +135,16 @@ void com_enable_debugport(struct com_softc *); #endif /* DDB || KGDB */ #ifdef KGDB -int com_kgdb_attach(bus_space_tag_t, int, int, int, tcflag_t); +extern bus_space_tag_t com_kgdb_iot; +extern bus_addr_t com_kgdb_addr; + +int com_kgdb_attach(bus_space_tag_t, bus_addr_t, int, int, tcflag_t); int kgdbintr(void *); #endif /* KGDB */ void com_attach_subr(struct com_softc *); -extern int comconsaddr; +extern bus_addr_t comconsaddr; extern int comconsinit; extern int comconsattached; extern bus_space_tag_t comconsiot; diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index e54172dda18..3cbb457be78 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: comvar.h,v 1.36 2005/05/27 18:42:15 uwe Exp $ */ +/* $OpenBSD: comvar.h,v 1.37 2005/10/24 14:22:34 fgsch Exp $ */ /* $NetBSD: comvar.h,v 1.5 1996/05/05 19:50:47 christos Exp $ */ /* @@ -159,7 +159,11 @@ void com_common_putc(bus_space_tag_t, bus_space_handle_t, int); void com_raisedtr(void *); #ifdef KGDB -int com_kgdb_attach(bus_space_tag_t, int, int, int, tcflag_t); +extern bus_addr_t com_kgdb_addr; +extern bus_space_tag_t com_kgdb_iot; +extern bus_space_handle_t com_kgdb_ioh; + +int com_kgdb_attach(bus_space_tag_t, bus_addr_t, int, int, tcflag_t); int kgdbintr(void *); #endif diff --git a/sys/dev/isa/com_isa.c b/sys/dev/isa/com_isa.c index d456baf214e..f1adf2e7790 100644 --- a/sys/dev/isa/com_isa.c +++ b/sys/dev/isa/com_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_isa.c,v 1.3 2003/06/02 23:28:02 millert Exp $ */ +/* $OpenBSD: com_isa.c,v 1.4 2005/10/24 14:22:34 fgsch Exp $ */ /* * Copyright (c) 1997 - 1999, Jason Downs. All rights reserved. * @@ -72,11 +72,6 @@ #include <dev/isa/isavar.h> -#ifdef KGDB -extern int com_kgdb_addr; -static bus_space_handle_t com_kgdb_ioh; -#endif - int com_isa_probe(struct device *, void *, void *); void com_isa_attach(struct device *, struct device *, void *); |