1*29537Ssam #ifndef lint 2*29537Ssam static char sccsid[] = "@(#)start.c 1.1 (Berkeley/CCI) 07/05/86"; 3*29537Ssam #endif 4*29537Ssam 5*29537Ssam #include "vdfmt.h" 6*29537Ssam 7*29537Ssam /* 8*29537Ssam ** 9*29537Ssam */ 10*29537Ssam 11*29537Ssam start_commands() 12*29537Ssam { 13*29537Ssam register int ctlr, drive, cur_op; 14*29537Ssam 15*29537Ssam indent(); 16*29537Ssam for(ctlr=0; ctlr<MAXCTLR; ctlr++) 17*29537Ssam for(drive=0; drive<MAXDRIVE; drive++) { 18*29537Ssam for(cur_op=0; cur_op<NUMOPS; cur_op++) { 19*29537Ssam if(ops_to_do[ctlr][drive].op & (1<<cur_op)) { 20*29537Ssam cur.controller = ctlr; 21*29537Ssam cur.drive = drive; 22*29537Ssam if(!_setjmp(abort_environ)) { 23*29537Ssam load_verify_patterns(); 24*29537Ssam spin_up_drive(); 25*29537Ssam (*operations[cur_op].routine)(); 26*29537Ssam } 27*29537Ssam ops_to_do[ctlr][drive].op&=~(1<<cur_op); 28*29537Ssam } 29*29537Ssam } 30*29537Ssam } 31*29537Ssam exdent(1); 32*29537Ssam } 33*29537Ssam 34