1: /*
   2:  * @(#)crl.h	7.1 (Berkeley) 6/5/86
   3:  */
   4: 
   5: /****************************************************************
   6:  *                                                              *
   7:  *        Licensed from Digital Equipment Corporation           *
   8:  *                       Copyright (c)                          *
   9:  *               Digital Equipment Corporation                  *
  10:  *                   Maynard, Massachusetts                     *
  11:  *                         1985, 1986                           *
  12:  *                    All rights reserved.                      *
  13:  *                                                              *
  14:  *        The Information in this software is subject to change *
  15:  *   without notice and should not be construed as a commitment *
  16:  *   by  Digital  Equipment  Corporation.   Digital   makes  no *
  17:  *   representations about the suitability of this software for *
  18:  *   any purpose.  It is supplied "As Is" without expressed  or *
  19:  *   implied  warranty.                                         *
  20:  *                                                              *
  21:  *        If the Regents of the University of California or its *
  22:  *   licensees modify the software in a manner creating         *
  23:  *   diriviative copyright rights, appropriate copyright        *
  24:  *   legends may be placed on  the drivative work in addition   *
  25:  *   to that set forth above.                                   *
  26:  ****************************************************************/
  27: 
  28: #if VAX8600
  29: /*
  30:  * Console RL02 status of current transfer (read only)
  31:  */
  32: #define CRL_S_XCMPLT    1       /* transaction complete */
  33: #define CRL_S_XCONT 2       /* continue transaction */
  34: #define CRL_S_ABORT 3       /* transation abort */
  35: #define CRL_S_RETSTS    4       /* return device status */
  36: #define CRL_S_HNDSHK    0x80        /* handshake err during transaction */
  37: #define CRL_S_HWERR 0x81        /* hardware err during transaction */
  38: 
  39: /*
  40:  * Console RL02 function codes
  41:  */
  42: #define CRL_F_NOOP  0       /* No operation */
  43: #define CRL_F_RSTSTS    2       /* reset and return device status */
  44: #define CRL_F_ABORT 3       /* abort transfer */
  45: #define CRL_F_RETSTS    4       /* read device status */
  46: #define CRL_F_WRITE 5       /* write block data */
  47: #define CRL_F_READ  6       /* read block data */
  48: 
  49: /*
  50:  * Console sectoring information.
  51:  * The console understands the rl02 as having 512 byte sectors.
  52:  */
  53: #define CRLBYSEC 512            /* bytes/sector */
  54: #define MAXSEC 20480            /* sectors/rl02 */
  55: 
  56: /*
  57:  * STXCS bit definitions
  58:  */
  59: #define STXCS_RDY   0x00000080  /* ready bit */
  60: #define STXCS_IE    0x00000040  /* interrupt enable */
  61: 
  62: #define CRLERRS     5   /* number of retries before quitting */
  63: 
  64: /*
  65:  * The state byte is used to retain exclusivity,
  66:  * and contains the busy flag.
  67:  */
  68: #define CRL_IDLE    0
  69: #define CRL_OPEN    1
  70: #define CRL_BUSY    2
  71: 
  72: 
  73: #define CRLDS_BITS \
  74: "\20\20WDE\17CHE\16WL\15SKTO\14SPE\13WGE\12VC\11DSE\
  75: \10DT\7HS\6CO\5HO\4BH\3STC\2STB\1STA"
  76: 
  77: #define CRLCS_BITS \
  78: "\20\20CE\17DE\16NXM\15DLT\14DCRC\13OPI\1DRDY"
  79: #endif

Defined macros

CRLBYSEC defined in line 53; used 1 times
CRLCS_BITS defined in line 77; used 1 times
CRLDS_BITS defined in line 73; used 1 times
CRLERRS defined in line 62; never used
CRL_BUSY defined in line 70; used 3 times
CRL_F_ABORT defined in line 44; used 2 times
CRL_F_NOOP defined in line 42; never used
CRL_F_READ defined in line 47; used 3 times
CRL_F_RETSTS defined in line 45; used 2 times
CRL_F_RSTSTS defined in line 43; never used
CRL_F_WRITE defined in line 46; used 3 times
CRL_IDLE defined in line 68; used 2 times
CRL_OPEN defined in line 69; used 1 times
CRL_S_ABORT defined in line 34; never used
CRL_S_HNDSHK defined in line 36; never used
CRL_S_HWERR defined in line 37; never used
CRL_S_RETSTS defined in line 35; used 1 times
CRL_S_XCMPLT defined in line 32; never used
CRL_S_XCONT defined in line 33; never used
MAXSEC defined in line 54; used 1 times
STXCS_IE defined in line 60; used 7 times
STXCS_RDY defined in line 59; used 1 times

Usage of this include

crl.h used 1 times
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 790
Valid CSS Valid XHTML 1.0 Strict