From: deraadt Date: Sat, 18 Nov 1995 01:05:45 +0000 (+0000) Subject: 4/100: let the scsi controller number be N. if N=0, we are on swN, else X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=af2873594423255ad95183ae0e52e08114e71d8f;p=openbsd 4/100: let the scsi controller number be N. if N=0, we are on swN, else we are on siN-1 --- diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c index a26f122b7fe..b66f5e0c0e4 100644 --- a/sys/arch/sparc/sparc/autoconf.c +++ b/sys/arch/sparc/sparc/autoconf.c @@ -479,8 +479,13 @@ bootpath_fake(bp, cp) BP_APPEND(bp,tmpname,v0val[1],v0val[2]); return; case SUN4_100: - BP_APPEND(bp,"obio",-1,0); - BP_APPEND(bp,"sw",-1,v0val[0]); + if (v0val[0] == 0) { + BP_APPEND(bp,"obio",-1,0); + BP_APPEND(bp,"sw",-1,v0val[0]); + } else { + BP_APPEND(bp,"obio",-1,0); + BP_APPEND(bp,"si",-1,v0val[0]-1); + } sprintf(tmpname,"%c%c", cp[0], cp[1]); BP_APPEND(bp,tmpname,v0val[1],v0val[2]); return;