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:  *	@(#)lpauto.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: /*
  14:  * LP_IE and lpdevice copied from lp.c!!!
  15:  */
  16: #define LP_IE       0100        /* interrupt enable */
  17: 
  18: struct lpdevice {
  19:     short   lpcs;
  20:     short   lpdb;
  21: };
  22: 
  23: lpprobe(addr,vector)
  24:     struct lpdevice *addr;
  25:     int vector;
  26: {
  27:     stuff(grab(&(addr->lpcs)) | LP_IE, &(addr->lpcs));
  28:     DELAY(10L);
  29:     stuff(0, &(addr->lpcs));
  30:     return(ACP_IFINTR);
  31: }

Defined functions

lpprobe defined in line 23; used 2 times

Defined struct's

lpdevice defined in line 18; used 2 times
  • in line 24(2)

Defined macros

LP_IE defined in line 16; used 1 times
  • in line 27
Last modified: 1992-12-31
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 122
Valid CSS Valid XHTML 1.0 Strict