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
Defined struct's
Defined macros
LP_IE
defined in line
16; used 1 times