xref: /csrg-svn/sys/tahoe/stand/vdformat/start.c (revision 29981)
129537Ssam #ifndef lint
2*29981Skarels static char sccsid[] = "@(#)start.c	1.2 (Berkeley/CCI) 11/04/86";
329537Ssam #endif
429537Ssam 
529537Ssam #include	"vdfmt.h"
629537Ssam 
729537Ssam /*
829537Ssam **
929537Ssam */
1029537Ssam 
1129537Ssam start_commands()
1229537Ssam {
1329537Ssam 	register int	ctlr, drive, cur_op;
1429537Ssam 
1529537Ssam 	indent();
1629537Ssam 	for(ctlr=0; ctlr<MAXCTLR; ctlr++)
1729537Ssam 		for(drive=0; drive<MAXDRIVE; drive++) {
1829537Ssam 			for(cur_op=0; cur_op<NUMOPS; cur_op++) {
1929537Ssam 				if(ops_to_do[ctlr][drive].op & (1<<cur_op)) {
2029537Ssam 					cur.controller = ctlr;
2129537Ssam 					cur.drive = drive;
2229537Ssam 					if(!_setjmp(abort_environ)) {
23*29981Skarels 						cur.state = setup;
2429537Ssam 						load_verify_patterns();
2529537Ssam 						spin_up_drive();
2629537Ssam 						(*operations[cur_op].routine)();
2729537Ssam 					}
2829537Ssam 					ops_to_do[ctlr][drive].op&=~(1<<cur_op);
2929537Ssam 				}
3029537Ssam 			}
3129537Ssam 		}
3229537Ssam 	exdent(1);
3329537Ssam }
3429537Ssam 
35