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

sridevice defined in line 13; used 20 times

Defined macros

IN_CHECK defined in line 32; used 1 times
IN_HNRDY defined in line 33; used 1 times
  • in line 41
IN_INRDY defined in line 34; used 3 times
IN_LAST defined in line 35; used 4 times
OUT_HNRDY defined in line 41; used 1 times
OUT_HRDY defined in line 42; used 2 times
OUT_LAST defined in line 40; used 2 times
SRI_BITS defined in line 48; used 1 times
SRI_IENB defined in line 26; used 5 times
SRI_IINT defined in line 25; used 4 times
SRI_INBITS defined in line 45; used 1 times
SRI_IREQ defined in line 22; used 1 times
SRI_OENB defined in line 27; used 2 times
SRI_OINT defined in line 24; used 3 times
SRI_OREQ defined in line 23; used 1 times

Usage of this include

Last modified: 1987-01-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2325
Valid CSS Valid XHTML 1.0 Strict