print slave numbers on mba tapes
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Sat, 7 Mar 1981 02:29:28 +0000 (18:29 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Sat, 7 Mar 1981 02:29:28 +0000 (18:29 -0800)
SCCS-vsn: sys/vax/vax/autoconf.c 4.21

usr/src/sys/vax/vax/autoconf.c

index 4ead114..c769fe7 100644 (file)
@@ -1,4 +1,4 @@
-/*     autoconf.c      4.20    81/03/03        */
+/*     autoconf.c      4.21    81/03/06        */
 
 /*
  * Initialize the devices for the current machine.
 
 /*
  * Initialize the devices for the current machine.
@@ -36,6 +36,10 @@ caddr_t      umaddr780[4] = {
 };
 #endif
 
 };
 #endif
 
+#if VAX780
+char   nexflt_bits[] = NEXFLT_BITS;
+#endif
+
 #if VAX780
 int    c780();
 #endif
 #if VAX780
 int    c780();
 #endif
@@ -247,13 +251,12 @@ mbafind(nxv, nxp)
                                dt = mbd->mbd_dt;
                                if ((dt & MBDT_SPR) == 0)
                                        continue;
                                dt = mbd->mbd_dt;
                                if ((dt & MBDT_SPR) == 0)
                                        continue;
-                               dt &= MBDT_TYPE;
                                fnd.mi_slave = sn;
                                mbaconfig(&fnd, dt);
                        }
                } else {
                        fnd.mi_slave = -1;
                                fnd.mi_slave = sn;
                                mbaconfig(&fnd, dt);
                        }
                } else {
                        fnd.mi_slave = -1;
-                       mbaconfig(&fnd, dt&MBDT_TYPE);
+                       mbaconfig(&fnd, dt);
                }
        }
        mdp->mba_cr = MBAINIT;
                }
        }
        mdp->mba_cr = MBAINIT;
@@ -278,15 +281,18 @@ mbaconfig(ni, type)
                        continue;
                tp = mi->mi_driver->md_type;
                for (mi->mi_type = 0; *tp; tp++, mi->mi_type++)
                        continue;
                tp = mi->mi_driver->md_type;
                for (mi->mi_type = 0; *tp; tp++, mi->mi_type++)
-                       if (*tp == type)
+                       if (*tp == (type&MBDT_TYPE))
                                goto found;
                continue;
 found:
 #define        match(fld)      (ni->fld == mi->fld || mi->fld == '?')
                if (!match(mi_slave) || !match(mi_drive) || !match(mi_mbanum))
                        continue;
                                goto found;
                continue;
 found:
 #define        match(fld)      (ni->fld == mi->fld || mi->fld == '?')
                if (!match(mi_slave) || !match(mi_drive) || !match(mi_mbanum))
                        continue;
-               printf("%c%d at mba%d drive %d\n",
+               printf("%c%d at mba%d drive %d",
                    mi->mi_name, mi->mi_unit, ni->mi_mbanum, ni->mi_drive);
                    mi->mi_name, mi->mi_unit, ni->mi_mbanum, ni->mi_drive);
+               if (type & MBDT_TAP)
+                       printf(" slave %d", ni->ni_slave);
+               printf("\n");
                mi->mi_alive = 1;
                mh = &mba_hd[ni->mi_mbanum];
                mi->mi_hd = mh;
                mi->mi_alive = 1;
                mh = &mba_hd[ni->mi_mbanum];
                mi->mi_hd = mh;