home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / 500 / 471 / rccl164 < prev    next >
Text File  |  1987-03-02  |  2KB  |  42 lines

  1. /*
  2.  * RTC  Version 2.0           Author :  Vincent Hayward
  3.  * MAC          2.0                     School of Electrical Engineering
  4.  *                                      Purdue University
  5.  *      Dir     : h
  6.  *      File    : fifoio.h
  7.  *      Remarks : Describes hardware address setting, bit definitions
  8.  *                and software buffer structure.
  9.  *      Usage   : Included both in the lsi11 code and the vax interface code
  10.  *
  11.  *    change    : added DRC_ADDR (struct drcdevice *) 0165020
  12.  *          30 Oct 84 BUCK
  13.  */
  14.  
  15. #ifdef PUMA
  16. #define DRC_ADDR    (struct drcdevice *) 0165000
  17. #endif
  18.  
  19. #ifdef STAN
  20. #define DRC_ADDR    (struct drcdevice *) 0165020
  21. #endif
  22.  
  23. #define DRC_INT         0001    /* Interrupt other cpu          */
  24. #define DRC_IEA         0100    /* INTER Enable                 */
  25. #define FIFO_EMPTY      0200    /* REQ A line from user dev     */
  26.  
  27. #define FIFOBUFS        63      /* hardware fifo capacity (minus wc) */
  28.  
  29. #define ID      0125252         /* lsi->vax test data           */
  30. #define OD      052525          /* vax->lsi test data           */
  31. #define NTEST   15              /* number of tests              */
  32.  
  33. struct drcdevice {              /* fifo interface               */
  34.     short   drccsr;         /* control register             */
  35.     short   drcbuf;         /* data register                */
  36. };
  37.  
  38. struct fifobuf {                /* software buffer              */
  39.     short wc;               /* first word wc                */
  40.     short data[FIFOBUFS];   /* rest       data              */
  41. };
  42.