4/100: let the scsi controller number be N. if N=0, we are on swN, else
authorderaadt <deraadt@openbsd.org>
Sat, 18 Nov 1995 01:05:45 +0000 (01:05 +0000)
committerderaadt <deraadt@openbsd.org>
Sat, 18 Nov 1995 01:05:45 +0000 (01:05 +0000)
we are on siN-1

sys/arch/sparc/sparc/autoconf.c

index a26f122..b66f5e0 100644 (file)
@@ -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;