From: miod Date: Fri, 15 Aug 2008 22:44:12 +0000 (+0000) Subject: In dzcninit(), do not forget to enable the receiver in addition to the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b8b39aa8d49f85c4c32aba1ee8b97f72b29ed8cd;p=openbsd In dzcninit(), do not forget to enable the receiver in addition to the transmitter. On machines with glass console for which we do not have a driver yet, and fall back to serial console, the PROM might not have enabled it. --- diff --git a/sys/arch/vax/vsa/dz_ibus.c b/sys/arch/vax/vsa/dz_ibus.c index 5e8cdbdc28e..006ec51707e 100644 --- a/sys/arch/vax/vsa/dz_ibus.c +++ b/sys/arch/vax/vsa/dz_ibus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dz_ibus.c,v 1.24 2008/01/23 16:37:57 jsing Exp $ */ +/* $OpenBSD: dz_ibus.c,v 1.25 2008/08/15 22:44:12 miod Exp $ */ /* $NetBSD: dz_ibus.c,v 1.15 1999/08/27 17:50:42 ragge Exp $ */ /* * Copyright (c) 1998 Ludd, University of Lule}, Sweden. @@ -329,6 +329,8 @@ dzcninit(cndev) dz->csr = 0; /* Disable scanning until initting is done */ dz->tcr = (1 << minor(cndev->cn_dev)); /* Turn on xmitter */ dz->csr = DZ_CSR_MSE; /* Turn scanning back on */ + dz->rbuf = DZ_LPR_RX_ENABLE | (DZ_LPR_B9600 << 8) | + DZ_LPR_8_BIT_CHAR | minor(cndev->cn_dev) /* line */; } void