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_css.h	1.1 (2.10BSD Berkeley) 12/1/86
   7:  */
   8: 
   9: /*
  10:  * DEC/CSS IMP11-A ARPAnet interface
  11:  */
  12: 
  13: struct cssdma {
  14:     short   wc;     /* word count */
  15:     u_short ba;     /* bus address (low 16 bits) */
  16:     short   csr;        /* status register */
  17:     short   db;     /* data buffer*/
  18: };
  19: 
  20: struct cssdevice {
  21:     struct  cssdma  css_output; /* transmit DR11-B */
  22:     struct  cssdma  css_hole;   /* unclever gap */
  23:     struct  cssdma  css_input;  /* receive DR11-B */
  24: };
  25: 
  26: #define css_icsr        css_input.csr
  27: #define css_iba         css_input.ba
  28: #define css_iwc         css_input.wc
  29: #define css_ocsr        css_output.csr
  30: #define css_oba         css_output.ba
  31: #define css_owc         css_output.wc
  32: 
  33: /*
  34:  * Bits Common to both input and out CSR's
  35:  */
  36: #define CSS_ERR         0x8000          /* error present */
  37: #define CSS_NXM         0x4000          /* non-existant memory */
  38: #define CSS_ATTN    0x2000      /* attention */
  39: #define CSS_MAINT   0x1000      /* maintenance mode */
  40: #define CSS_CYCLE   0x0100      /* force bus cycle */
  41: #define CSS_RDY         0x0080          /* ready */
  42: #define CSS_IE          0x0040          /* interrupt enable */
  43: #define CSS_XA      0x0030      /* extended address bits */
  44: #define CSS_CLR     0x0020      /* clear status (reset) */
  45: #define CSS_GO          0x0001          /* start operation */
  46: 
  47: /*
  48:  * Input Control Status Register
  49:  */
  50: #define IN_EOM          0x0800          /* end-of-message recieved */
  51: #define IN_IMPNR    0x0400          /* IMP not ready */
  52: #define IN_RLE          0x0200          /* ready line error */
  53: #define IN_WEN          0x0008          /* write enable */
  54: #define IN_HRDY         0x0004          /* host ready */
  55: 
  56: #define CSS_INBITS \
  57: "\20\20ERR\17NXM\16ATTN\15MAINT\14EOM\13IMPNR\12RLE\11CYCLE\10RDY\7IE\6XBA17\5XBA16\4WE\3HRDY\2CLR\1GO"
  58: 
  59: 
  60: /*
  61:  * Output Control Status Register
  62:  */
  63: #define OUT_TXEC    0x0008          /* tx error clear */
  64: #define OUT_ENLB    0x0004          /* enable last bit */
  65: 
  66: #define CSS_OUTBITS \
  67: "\20\20ERR\17NXM\16ATTN\15MAINT\11CYCLE\10RDY\7IE\6XBA17\5XBA16\4TXEC\3ENLB\2CLR\1GO"

Defined struct's

cssdevice defined in line 20; used 20 times
cssdma defined in line 13; used 6 times

Defined macros

CSS_ATTN defined in line 38; never used
CSS_CLR defined in line 44; used 4 times
CSS_CYCLE defined in line 40; never used
CSS_ERR defined in line 36; used 2 times
CSS_GO defined in line 45; used 4 times
CSS_IE defined in line 42; used 4 times
CSS_INBITS defined in line 56; used 2 times
CSS_MAINT defined in line 39; never used
CSS_NXM defined in line 37; never used
CSS_OUTBITS defined in line 66; used 2 times
CSS_RDY defined in line 41; never used
CSS_XA defined in line 43; never used
IN_EOM defined in line 50; used 2 times
IN_HRDY defined in line 54; used 6 times
IN_IMPNR defined in line 51; used 2 times
IN_RLE defined in line 52; never used
IN_WEN defined in line 53; used 2 times
OUT_ENLB defined in line 64; used 1 times
OUT_TXEC defined in line 63; never used
css_iba defined in line 27; used 2 times
css_icsr defined in line 26; used 15 times
css_iwc defined in line 28; used 3 times
css_oba defined in line 30; used 2 times
css_ocsr defined in line 29; used 10 times
css_owc defined in line 31; used 2 times

Usage of this include

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