- /*** we should check device type (return 0 if we don't like it) ***/
- /*** and set type index in ui->ui_type, but we KNOW all we are ***/
- /*** going to see at the minute is a 9300, and the index for a ***/
- /*** 9300 is 0, which is the value already in ui->ui_type, so ..***/
-
- um = &up_minfo[0];
- for (sc21 = 0; sc21 < NSC21; sc21++) {
- if (um->um_alive == 0) { /* this is a new ctrlr */
- um->um_addr = reg;
- um->um_ubanum = uban;
- um->um_num = sc21; /* not needed after up_softc
- combined with um ??? */
- um->um_alive = 1;
- upminfo[sc21] = um; /* just till upminfo vanishes */
- goto found;
- }
- if (um->um_addr == reg && um->um_ubanum == uban)
- goto found;
- um++;
- }
- return(0); /* too many sc21's */
-
- found:
- ui->ui_mi = um;
-