summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2003-06-14 17:01:06 +0000
committerthorpej <thorpej@NetBSD.org>2003-06-14 17:01:06 +0000
commit0eff67182063296fdff3cc65b22d4e2bd37b026d (patch)
treee6e84834f7446c89ef5e4ae39168ef621ebf247f /sys/arch/sparc/dev
parentfee392c19711a257212390df1c60829c45e46e8c (diff)
Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/com_ebus.c5
-rw-r--r--sys/arch/sparc/dev/com_obio.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/com_ebus.c b/sys/arch/sparc/dev/com_ebus.c
index c30b3500136..f70d9673335 100644
--- a/sys/arch/sparc/dev/com_ebus.c
+++ b/sys/arch/sparc/dev/com_ebus.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com_ebus.c,v 1.9 2002/12/10 13:44:49 pk Exp $ */
+/* $NetBSD: com_ebus.c,v 1.10 2003/06/14 17:01:15 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -108,7 +108,8 @@ com_ebus_attach(parent, self, aux)
*/
if (prom_instance_to_package(prom_stdin()) == ea->ea_node)
comcnattach(sc->sc_iot, sc->sc_iobase,
- B9600, sc->sc_frequency, (CLOCAL | CREAD | CS8));
+ B9600, sc->sc_frequency, COM_TYPE_NORMAL,
+ (CLOCAL | CREAD | CS8));
if (!com_is_console(sc->sc_iot, sc->sc_iobase, &sc->sc_ioh)
&& bus_space_map(sc->sc_iot, sc->sc_iobase, ea->ea_reg[0].size,
diff --git a/sys/arch/sparc/dev/com_obio.c b/sys/arch/sparc/dev/com_obio.c
index e3cea7b1561..bd97b26d82f 100644
--- a/sys/arch/sparc/dev/com_obio.c
+++ b/sys/arch/sparc/dev/com_obio.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com_obio.c,v 1.13 2002/12/10 13:44:49 pk Exp $ */
+/* $NetBSD: com_obio.c,v 1.14 2003/06/14 17:01:15 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -196,7 +196,8 @@ com_obio_attach(parent, self, aux)
*/
if (prom_instance_to_package(prom_stdin()) == sa->sa_node)
comcnattach(sc->sc_iot, sc->sc_iobase,
- B9600, sc->sc_frequency, (CLOCAL | CREAD | CS8));
+ B9600, sc->sc_frequency, COM_TYPE_NORMAL,
+ (CLOCAL | CREAD | CS8));
if (!com_is_console(sc->sc_iot, sc->sc_iobase, &sc->sc_ioh) &&
sbus_bus_map(sc->sc_iot,