From 17c5f7bed5947b94da31e6d1be99c7f6550a0584 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 2 Jan 2004 23:48:02 +0000 Subject: Mention that, on most 187 and 197, if the SCSI controller is not the boot device and no boot from it has been attempted at the prom, it will not get detected. Unfortunately, right now I don't know how to ``warm'' the chip. This also will need to be documented in the insallation notes at some point... --- sys/arch/mvme88k/dev/ssh.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/arch/mvme88k/dev/ssh.c b/sys/arch/mvme88k/dev/ssh.c index 3ae79532dd7..d9b6bc732b5 100644 --- a/sys/arch/mvme88k/dev/ssh.c +++ b/sys/arch/mvme88k/dev/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.20 2003/12/26 10:41:43 miod Exp $ */ +/* $OpenBSD: ssh.c,v 1.21 2004/01/02 23:48:01 miod Exp $ */ /* * Copyright (c) 1994 Michael L. Hitch @@ -209,11 +209,19 @@ sshmatch(pdp, vcf, args) { struct confargs *ca = args; - if (badvaddr((vaddr_t)IIOV(ca->ca_vaddr), 4)) { - return(0); + if (badvaddr((vaddr_t)IIOV(ca->ca_vaddr), 4) == 0) + return (1); + + /* + * For some reason, if the SCSI hardware is not ``warmed'' by the + * BUG (netboot or boot from external SCSI controller), badvaddr() + * will always fail, although the hardware is there. + */ + if (brdtyp == BRD_187 || brdtyp == BRD_197) { + /* do something to enable the controller??? */ } - return (1); + return (0); } void -- cgit v1.2.3