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