From b8b39aa8d49f85c4c32aba1ee8b97f72b29ed8cd Mon Sep 17 00:00:00 2001 From: miod Date: Fri, 15 Aug 2008 22:44:12 +0000 Subject: [PATCH] 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. --- sys/arch/vax/vsa/dz_ibus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1