1: /*
   2:  * Copyright (c) 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)htauto.c	1.2 (2.11BSD GTE) 12/30/92
   7:  */
   8: 
   9: #include "param.h"
  10: #include "../machine/autoconfig.h"
  11: #include "../machine/machparam.h"
  12: 
  13: #include "htreg.h"
  14: 
  15: htprobe(addr,vector)
  16:     struct htdevice *addr;
  17:     int vector;
  18: {
  19:     /*
  20: 	 * I can't get the hardware to interrupt when a transport is selected
  21: 	 * without doing i/o, so I select transport 0 on driver 7 (that's tape
  22: 	 * drive 56).  If you happen to have 56 tape drives on your system and
  23: 	 * you boot with it on line, tough.
  24: 	 */
  25:     stuff(07, (&(addr->htcs2)));
  26:     stuff(HT_SENSE | HT_IE | HT_GO, (&(addr->htcs1)));
  27:     DELAY(10L);
  28:     stuff(0, (&(addr->htcs1)));
  29:     /*
  30: 	 * clear error condition, or driver will report an error first
  31: 	 * time you open it after the boot.
  32: 	 */
  33:     stuff(HTCS2_CLR, (&(addr->htcs2)));
  34:     return(ACP_IFINTR);
  35: }

Defined functions

htprobe defined in line 15; used 2 times
Last modified: 1992-12-31
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2437
Valid CSS Valid XHTML 1.0 Strict