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: * @(#)if_sri.h 1.1 (2.10BSD Berkeley) 12/1/86
7: */
8:
9: /*
10: * SRI dr11c interface
11: */
12:
13: struct sridevice {
14: u_short csr; /* control/status */
15: u_short obf; /* out buffer */
16: u_short ibf; /* in buffer */
17: };
18:
19: /*
20: * control and status register.
21: */
22: #define SRI_IREQ 0x8000 /* input request or error */
23: #define SRI_OREQ 0x0080 /* output request */
24: #define SRI_OINT 0x0040 /* output intr enable */
25: #define SRI_IINT 0x0020 /* input intr enable */
26: #define SRI_IENB 0x0002 /* input enable */
27: #define SRI_OENB 0x0001 /* output enable */
28:
29: /*
30: * input buffer register.
31: */
32: #define IN_CHECK 0x8000 /* check input or error */
33: #define IN_HNRDY 0x2000 /* host not ready */
34: #define IN_INRDY 0x1000 /* imp not ready */
35: #define IN_LAST 0x0800 /* last bit */
36:
37: /*
38: * output buffer register.
39: */
40: #define OUT_LAST IN_LAST /* last bit */
41: #define OUT_HNRDY IN_HNRDY /* host not ready */
42: #define OUT_HRDY 0x1000 /* host ready */
43:
44:
45: #define SRI_INBITS \
46: "\20\20CHECK\16HNRDY\15INRDY\14LAST"
47:
48: #define SRI_BITS \
49: "\20\20IREQ\10OREQ\7OINT\6IINT\2IENB\1OENB"
Defined struct's
Defined macros
Usage of this include