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

Defined struct's

rldevice defined in line 1; used 14 times

Defined macros

RLDA_BITS defined in line 44; used 2 times
RLDA_GS defined in line 42; used 3 times
RLDA_RESET defined in line 39; used 2 times
RLDA_RW_HSEL defined in line 37; never used
RLDA_SEEKHI defined in line 40; used 1 times
RLDA_SEEKLO defined in line 41; used 1 times
RLDA_SEEK_HSEL defined in line 38; never used
RLMP_BC defined in line 66; never used
RLMP_BH defined in line 60; never used
RLMP_BITS defined in line 73; used 1 times
RLMP_CO defined in line 58; never used
RLMP_DSE defined in line 55; never used
RLMP_DTYP defined in line 56; used 1 times
RLMP_HCE defined in line 49; never used
RLMP_HO defined in line 59; never used
RLMP_HSEL defined in line 57; never used
RLMP_LCKON defined in line 69; never used
RLMP_LH defined in line 67; never used
RLMP_LOAD defined in line 64; never used
RLMP_SD defined in line 71; never used
RLMP_SEEK defined in line 68; never used
RLMP_SPE defined in line 52; never used
RLMP_STIMO defined in line 51; never used
RLMP_SU defined in line 65; never used
RLMP_UH defined in line 70; never used
RLMP_VCHK defined in line 54; used 1 times
RLMP_WDE defined in line 48; never used
RLMP_WGE defined in line 53; never used
RLMP_WLE defined in line 50; never used
RL_BITS defined in line 33; used 1 times
RL_CERR defined in line 10; used 1 times
RL_CRC defined in line 14; used 1 times
  • in line 21
RL_CRDY defined in line 17; used 2 times
RL_DLHNF defined in line 13; used 1 times
  • in line 21
RL_DRE defined in line 11; used 1 times
RL_GETSTATUS defined in line 26; used 4 times
RL_HARDERR defined in line 21; used 1 times
RL_IE defined in line 18; used 2 times
RL_NOP defined in line 24; never used
RL_NXM defined in line 12; used 1 times
  • in line 21
RL_OPI defined in line 15; used 1 times
  • in line 21
RL_RCOM defined in line 30; used 1 times
RL_RHDR defined in line 28; used 1 times
RL_RWHCHK defined in line 31; never used
RL_SEEK defined in line 27; used 1 times
RL_WCHK defined in line 25; never used
RL_WCOM defined in line 29; used 1 times

Usage of this include

Last modified: 1983-10-04
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 866
Valid CSS Valid XHTML 1.0 Strict