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_acc.h	1.1 (2.10BSD Berkeley) 12/1/86
   7:  */
   8: 
   9: /*
  10:  * ACC LH/DH-11 interface
  11:  */
  12: 
  13: struct accdma {
  14:     short   csr;    /* control and status */
  15:     short   db; /* data buffer */
  16:     u_short ba; /* buss address */
  17:     short   wc; /* word count */
  18: };
  19: 
  20: struct accdevice {
  21:     struct  accdma input;
  22:     struct  accdma output;
  23: };
  24: 
  25: #define icsr    input.csr
  26: #define iba input.ba
  27: #define iwc input.wc
  28: #define ocsr    output.csr
  29: #define oba output.ba
  30: #define owc output.wc
  31: 
  32: /*
  33:  * Bits Common to both input and out CSR's
  34:  */
  35: #define ACC_ERR     0x8000      /* error present */
  36: #define ACC_NXM     0x4000      /* non-existant memory */
  37: #define ACC_RDY     0x0080      /* ready */
  38: #define ACC_IE      0x0040      /* interrupt enable */
  39: #define ACC_RESET   0x0002      /* reset interface */
  40: #define ACC_GO      0x0001      /* start operation */
  41: 
  42: /*
  43:  * Input Control Status Register
  44:  */
  45: #define IN_EOM      0x2000      /* end-of-message recieved */
  46: #define IN_HRDY     0x0800      /* host ready */
  47: #define IN_IMPBSY   0x0400      /* IMP not ready */
  48: #define IN_RMR      0x0200      /* receive master ready error */
  49: #define IN_IBF      0x0100      /* input data buffer full */
  50: #define IN_WEN      0x0008      /* write enable */
  51: #define IN_MRDY     0x0004      /* master ready */
  52: 
  53: #define ACC_INBITS \
  54: "\20\20ERR\17NXM\16EOM\14HRDY\13IMPBSY\12RMR\11IBF\10RDY\7IE\
  55: \4WEN\3MRDY\2RESET\1GO"
  56: 
  57: /*
  58:  * Output Control Status Register
  59:  */
  60: #define OUT_TMR     0x0200      /* transmit master ready error */
  61: #define OUT_BBACK   0x0008      /* bus back */
  62: #define OUT_ENLB    0x0004      /* enable last bit */
  63: 
  64: #define ACC_OUTBITS \
  65: "\20\20ERR\17NXM\12TMR\10RDY\7IE\4BBACK\3ENLB\2RESET\1GO"

Defined struct's

accdevice defined in line 20; used 22 times
accdma defined in line 13; used 4 times

Defined macros

ACC_ERR defined in line 35; used 3 times
ACC_GO defined in line 40; used 4 times
ACC_IE defined in line 38; used 4 times
ACC_INBITS defined in line 53; used 3 times
ACC_NXM defined in line 36; never used
ACC_OUTBITS defined in line 64; used 2 times
ACC_RDY defined in line 37; never used
ACC_RESET defined in line 39; used 4 times
IN_EOM defined in line 45; used 2 times
IN_HRDY defined in line 46; used 2 times
IN_IBF defined in line 49; never used
IN_IMPBSY defined in line 47; used 2 times
IN_MRDY defined in line 51; used 4 times
IN_RMR defined in line 48; used 3 times
IN_WEN defined in line 50; used 4 times
OUT_BBACK defined in line 61; used 4 times
OUT_ENLB defined in line 62; used 1 times
OUT_TMR defined in line 60; never used
iba defined in line 26; used 2 times
icsr defined in line 25; used 18 times
iwc defined in line 27; used 3 times
oba defined in line 29; used 1 times
ocsr defined in line 28; used 12 times
owc defined in line 30; used 2 times

Usage of this include

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