summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2008-01-08 00:29:37 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2008-01-08 00:29:37 +0000
commitab62351c9aaddf0a4d008e24984ff99bcf12f60c (patch)
treec43ca8a5f0688ff404a53154f6ad2315af1078b0 /sys/arch/sparc64/dev
parent2c22c02a444b4c6b73ac30b557ac2687cca2ce93 (diff)
the rsc-console on the v880 operates at 115200, not the 9600 we think we
have to force all console devices to. this change passes the right speed to the com code, and continues to use it when the device is opened as the console device. figured out by kettenis@ ok kettenis@ miod@
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/com_ebus.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/com_ebus.c b/sys/arch/sparc64/dev/com_ebus.c
index edf008c990c..fc5483f9e5a 100644
--- a/sys/arch/sparc64/dev/com_ebus.c
+++ b/sys/arch/sparc64/dev/com_ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com_ebus.c,v 1.13 2007/11/15 20:39:45 kettenis Exp $ */
+/* $OpenBSD: com_ebus.c,v 1.14 2008/01/08 00:29:36 dlg Exp $ */
/* $NetBSD: com_ebus.c,v 1.6 2001/07/24 19:27:10 eeh Exp $ */
/*
@@ -153,11 +153,15 @@ com_ebus_attach(parent, self, aux)
if (com_is_input || com_is_output) {
struct consdev *cn_orig;
+ int speed = 9600;
+
+ if (strcmp(ea->ea_name, "rsc-console") == 0)
+ speed = 115200;
comconsioh = sc->sc_ioh;
cn_orig = cn_tab;
/* Attach com as the console. */
- if (comcnattach(sc->sc_iot, sc->sc_iobase, 9600,
+ if (comcnattach(sc->sc_iot, sc->sc_iobase, speed,
sc->sc_frequency,
((TTYDEF_CFLAG & ~(CSIZE | PARENB))|CREAD | CS8 | HUPCL))) {
printf("Error: comcnattach failed\n");