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:  *	@(#)rlreg.h	1.2 (2.11BSD) 1997/7/20
   7:  */
   8: 
   9: struct  rldevice
  10: {
  11:     short   rlcs;
  12:     caddr_t rlba;
  13:     short   rlda;
  14:     short   rlmp;
  15:     short   rlbae;
  16: };
  17: 
  18: /* bits in rlcs */
  19: #define RL_CERR     0100000     /* composite error */
  20: #define RL_DRE      0040000     /* drive error */
  21: #define RL_NXM      0020000     /* nonexistent memory */
  22: #define RL_DLHNF    0010000     /* data late or header not found */
  23: #define RL_CRC      0004000     /* data crc or header check or write check */
  24: #define RL_OPI      0002000     /* operation incomplete */
  25: /* bits 9-8 are drive select */
  26: #define RL_CRDY     0000200     /* controller ready */
  27: #define RL_IE       0000100     /* interrupt enable */
  28: /* bits 5-4 are the UNIBUS address extension bits */
  29: /* bits 3-0 is the function code */
  30: #define RL_HARDERR  (RL_NXM|RL_DLHNF|RL_CRC|RL_OPI)
  31: 
  32: /* commands */
  33: #define RL_NOP      0000000     /* no operation */
  34: #define RL_WCHK     0000002     /* write check data */
  35: #define RL_GETSTATUS    0000004     /* get status */
  36: #define RL_SEEK     0000006     /* seek */
  37: #define RL_RHDR     0000010     /* read header */
  38: #define RL_WCOM     0000012     /* write data */
  39: #define RL_RCOM     0000014     /* read data */
  40: #define RL_RWHCHK   0000016     /* read data without header check */
  41: 
  42: #define RL_BITS     \
  43: "\10\20CERR\17DRE\16NXM\15DLHNF\14CRC\13OPI\10CRDY\7IE"
  44: 
  45: /* bits in rlda:  just be thankful there's a one to one correspondence */
  46: #define RLDA_RW_HSEL    0000100     /* head select during read or write */
  47: #define RLDA_SEEK_HSEL  0000020     /* head select during seek*/
  48: #define RLDA_RESET  0000011     /* reset during get status */
  49: #define RLDA_SEEKHI 0000005     /* seek to higher address */
  50: #define RLDA_SEEKLO 0000001     /* seek to lower address */
  51: #define RLDA_GS     0000003     /* get status */
  52: 
  53: #define RLDA_BITS   \
  54: "\10\7RW_HSEL\5SEEK_HSEL\4GS_RESET\3SEEK_DIR"
  55: 
  56: /* bits in rlmp */
  57: #define RLMP_WDE    0100000     /* write data error */
  58: #define RLMP_HCE    0040000     /* head current error */
  59: #define RLMP_WL     0020000     /* write lock */
  60: #define RLMP_STIMO  0010000     /* seek timeout */
  61: #define RLMP_SPE    0004000     /* spin error */
  62: #define RLMP_WGE    0002000     /* write gate error */
  63: #define RLMP_VCHK   0001000     /* volume check */
  64: #define RLMP_DSE    0000400     /* drive select error */
  65: #define RLMP_DTYP   0000200     /* drive type:  0 == RL01, 1 == RL02 */
  66: #define RLMP_HSEL   0000100     /* head select */
  67: #define RLMP_CO     0000040     /* cover open */
  68: #define RLMP_HO     0000020     /* heads out */
  69: #define RLMP_BH     0000010     /* brush home */
  70: /* bits 2-0 are the state */
  71: 
  72: /* status bits */
  73: #define RLMP_LOAD   0000000     /* load cartridge */
  74: #define RLMP_SU     0000001     /* spin up */
  75: #define RLMP_BC     0000002     /* brush cycle */
  76: #define RLMP_LH     0000003     /* load heads */
  77: #define RLMP_SEEK   0000004     /* seek */
  78: #define RLMP_LCKON  0000005     /* lock on */
  79: #define RLMP_UH     0000006     /* unload heads */
  80: #define RLMP_SD     0000007     /* spin down */
  81: 
  82: #define RLMP_BITS   \
  83: "\10\20WDE\17HCE\16WLE\15STIMO\14SPE\13WGE\12VCHK\11DSE\10DTYP\
  84: \7HSEL\6CO\5HO\4BH"

Defined struct's

rldevice defined in line 9; used 36 times

Defined macros

RLDA_BITS defined in line 53; used 4 times
RLDA_GS defined in line 51; used 5 times
RLDA_RESET defined in line 48; used 3 times
RLDA_RW_HSEL defined in line 46; never used
RLDA_SEEKHI defined in line 49; used 3 times
RLDA_SEEKLO defined in line 50; used 3 times
RLDA_SEEK_HSEL defined in line 47; never used
RLMP_BC defined in line 75; never used
RLMP_BH defined in line 69; used 1 times
RLMP_BITS defined in line 82; used 2 times
RLMP_CO defined in line 67; never used
RLMP_DSE defined in line 64; never used
RLMP_DTYP defined in line 65; used 3 times
RLMP_HCE defined in line 58; never used
RLMP_HO defined in line 68; used 1 times
RLMP_HSEL defined in line 66; used 1 times
RLMP_LCKON defined in line 78; used 1 times
RLMP_LH defined in line 76; never used
RLMP_LOAD defined in line 73; never used
RLMP_SD defined in line 80; never used
RLMP_SEEK defined in line 77; never used
RLMP_SPE defined in line 61; never used
RLMP_STIMO defined in line 60; never used
RLMP_SU defined in line 74; never used
RLMP_UH defined in line 79; never used
RLMP_VCHK defined in line 63; used 1 times
RLMP_WDE defined in line 57; never used
RLMP_WGE defined in line 62; never used
RLMP_WL defined in line 59; used 1 times
RL_BITS defined in line 42; used 3 times
RL_CERR defined in line 19; used 2 times
RL_CRC defined in line 23; used 1 times
  • in line 30
RL_DLHNF defined in line 22; used 1 times
  • in line 30
RL_DRE defined in line 20; used 1 times
RL_GETSTATUS defined in line 35; used 5 times
RL_HARDERR defined in line 30; used 1 times
RL_IE defined in line 27; used 1 times
RL_NOP defined in line 33; never used
RL_NXM defined in line 21; used 2 times
RL_OPI defined in line 24; used 1 times
  • in line 30
RL_RCOM defined in line 39; used 2 times
RL_RHDR defined in line 37; used 3 times
RL_RWHCHK defined in line 40; never used
RL_SEEK defined in line 36; used 3 times
RL_WCHK defined in line 34; never used
RL_WCOM defined in line 38; used 3 times

Usage of this include

Last modified: 1997-07-20
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3261
Valid CSS Valid XHTML 1.0 Strict