From: miod Date: Sun, 24 Aug 2008 14:49:35 +0000 (+0000) Subject: Correct dmesg, do not mention dz is the console device if running with X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cdd0e9814a133aa8db3c693119483713a33d8e6f;p=openbsd Correct dmesg, do not mention dz is the console device if running with glass console. --- diff --git a/sys/arch/vax/mbus/dz_fwio.c b/sys/arch/vax/mbus/dz_fwio.c index 678d833bac0..42cc31ebd6f 100644 --- a/sys/arch/vax/mbus/dz_fwio.c +++ b/sys/arch/vax/mbus/dz_fwio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dz_fwio.c,v 1.1 2008/08/18 23:19:25 miod Exp $ */ +/* $OpenBSD: dz_fwio.c,v 1.2 2008/08/24 14:49:35 miod Exp $ */ /* * Copyright (c) 2008 Miodrag Vallat. @@ -52,6 +52,7 @@ #include #include +#include #include #include @@ -123,7 +124,7 @@ dz_fwio_attach(struct device *parent, struct device *self, void *aux) if (dz_console_regs != 0 && faa->faa_mid == mbus_ioslot) { dz_regs = dz_console_regs; console = 1; - serial_console = 1; /* XXX forced for now */ + serial_console = (vax_confdata & 0x60) == 0; if (serial_console) printf("console, "); } else { @@ -150,7 +151,7 @@ dz_fwio_attach(struct device *parent, struct device *self, void *aux) sc->sc_type = DZ_DZV; - /* no modem ctrl bits except on line 2 */ + /* no modem control bits except on line 2 */ sc->sc_dsr = (1 << 0) | (1 << 1) | (1 << 3); printf("4 lines");