From baf51d608a21989226a34772f1e9cf3a1a3d4dff Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 19 Jul 2006 20:22:13 +0000 Subject: Honour L3 switch on VS4k/90, even if we don't support glass console yet; from NetBSD. --- sys/arch/vax/vsa/dz_ibus.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/vax/vsa/dz_ibus.c b/sys/arch/vax/vsa/dz_ibus.c index f7830ea7f74..b40f50bf2ba 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.14 2006/01/17 20:26:16 miod Exp $ */ +/* $OpenBSD: dz_ibus.c,v 1.15 2006/07/19 20:22: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. @@ -52,6 +52,7 @@ #include #include #include +#include #include @@ -257,7 +258,7 @@ dzcnprobe(cndev) case VAX_BTYP_410: case VAX_BTYP_420: case VAX_BTYP_43: - diagcons = (vax_confdata & 0x20 ? 3 : 0); + diagcons = (vax_confdata & KA420_CFG_L3CON ? 3 : 0); break; case VAX_BTYP_46: @@ -266,6 +267,10 @@ dzcnprobe(cndev) break; case VAX_BTYP_49: + ioaddr = 0x25000000; + diagcons = (vax_confdata & 8 ? 3 : 0); + break; + case VAX_BTYP_1303: ioaddr = 0x25000000; diagcons = 3; @@ -278,12 +283,9 @@ dzcnprobe(cndev) cndev->cn_pri = CN_REMOTE; else cndev->cn_pri = CN_NORMAL; -#if 0 - cndev->cn_dev = makedev(DZMAJOR, diagcons); - dz_regs = iospace; -#endif cndev->cn_dev = makedev(getmajor(dzopen), diagcons); - (vaddr_t)dz = dz_regs = iospace; + dz_regs = iospace; + dz = (void *)dz_regs; ioaccess(iospace, ioaddr, 1); } -- cgit v1.2.3