# 2.11BSD#431 - /usr/src/sys/pdpuba/rlreg.h

##### Macros

    RLDA_BITS         X
    RLDA_GS           X
    RLDA_RESET        X
    RLDA_RW_HSEL      X
    RLDA_SEEKHI       X
    RLDA_SEEKLO       X
    RLDA_SEEK_HSEL    X
    RLMP_BC           X
    RLMP_BH           X
    RLMP_BITS         X
    RLMP_CO           X
    RLMP_DSE          X
    RLMP_DTYP         X
    RLMP_HCE          X
    RLMP_HO           X
    RLMP_HSEL         X
    RLMP_LCKON        X
    RLMP_LH           X
    RLMP_LOAD         X
    RLMP_SD           X
    RLMP_SEEK         X
    RLMP_SPE          X
    RLMP_STIMO        X
    RLMP_SU           X
    RLMP_UH           X
    RLMP_VCHK         X
    RLMP_WDE          X
    RLMP_WGE          X
    RLMP_WL           X
    RL_BITS           X
    RL_CERR           X
    RL_CRC            X
    RL_CRDY           X
    RL_DLHNF          X
    RL_DRE            X
    RL_GETSTATUS      X
    RL_HARDERR        X
    RL_IE             X
    RL_NOP            X
    RL_NXM            X
    RL_OPI            X
    RL_RCOM           X
    RL_RHDR           X
    RL_RWHCHK         X
    RL_SEEK           X
    RL_WCHK           X
    RL_WCOM           X

##### struct's

    rldevice          X

       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

- in /usr/src/sys/autoconfig/rlauto.c line 17(2)
- in /usr/src/sys/pdpstand/rl.c line 23-27(8), 61(2), 176(2)
- in /usr/src/sys/pdpuba/rl.c line 71(2), 109-113(4), 123(2), 133(2), 415(2), 486(2), 517(2), 548(2), 611(2), 748(2)

#### Defined macros

RLDA_BITS defined in line 53; used 4 times

- in /usr/src/sys/pdpuba/rl.c line 429, 439, 686, 758

RLDA_GS defined in line 51; used 5 times

- in /usr/src/sys/pdpstand/rl.c line 111, 183
- in /usr/src/sys/pdpuba/rl.c line 432, 441, 751

RLDA_RESET defined in line 48; used 3 times

- in /usr/src/sys/pdpstand/rl.c line 183
- in /usr/src/sys/pdpuba/rl.c line 441, 751

RLDA_RW_HSEL defined in line 46; never used
RLDA_SEEKHI defined in line 49; used 3 times

- in /usr/src/sys/pdpstand/rl.c line 89
- in /usr/src/sys/pdpuba/rl.c line 526, 656

RLDA_SEEKLO defined in line 50; used 3 times

- in /usr/src/sys/pdpstand/rl.c line 91
- in /usr/src/sys/pdpuba/rl.c line 528, 659

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

- in /usr/src/sys/pdpuba/rl.c line 69

RLMP_BITS defined in line 82; used 2 times

- in /usr/src/sys/pdpuba/rl.c line 438, 686

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

- in /usr/src/sys/pdpstand/rl.c line 191
- in /usr/src/sys/pdpuba/rl.c line 68, 762

RLMP_HCE defined in line 58; never used
RLMP_HO defined in line 68; used 1 times

- in /usr/src/sys/pdpuba/rl.c line 69

RLMP_HSEL defined in line 66; used 1 times

- in /usr/src/sys/pdpuba/rl.c line 68

RLMP_LCKON defined in line 78; used 1 times

- in /usr/src/sys/pdpuba/rl.c line 69

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

- in /usr/src/sys/pdpuba/rl.c line 444

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

- in /usr/src/sys/pdpuba/rl.c line 68

RL_BITS defined in line 42; used 3 times

- in /usr/src/sys/pdpuba/rl.c line 428, 685, 758

RL_CERR defined in line 19; used 2 times

- in /usr/src/sys/pdpuba/rl.c line 425, 681

RL_CRC defined in line 23; used 1 times

- in line 30

RL_CRDY defined in line 26; used 7 times

- in /usr/src/sys/autoconfig/rlauto.c line 20
- in /usr/src/sys/pdpstand/rl.c line 96, 102, 113, 186, 199
- in /usr/src/sys/pdpuba/rl.c line 66

RL_DLHNF defined in line 22; used 1 times

- in line 30

RL_DRE defined in line 20; used 1 times

- in /usr/src/sys/pdpuba/rl.c line 431

RL_GETSTATUS defined in line 35; used 5 times

- in /usr/src/sys/pdpstand/rl.c line 112, 185
- in /usr/src/sys/pdpuba/rl.c line 433, 442, 752

RL_HARDERR defined in line 30; used 1 times

- in /usr/src/sys/pdpuba/rl.c line 426

RL_IE defined in line 27; used 1 times

- in /usr/src/sys/pdpuba/rl.c line 404

RL_NOP defined in line 33; never used
RL_NXM defined in line 21; used 2 times

- in line 30
- in /usr/src/sys/pdpuba/rl.c line 682

RL_OPI defined in line 24; used 1 times

- in line 30

RL_RCOM defined in line 39; used 2 times

- in /usr/src/sys/pdpstand/rl.c line 79
- in /usr/src/sys/pdpuba/rl.c line 406

RL_RHDR defined in line 37; used 3 times

- in /usr/src/sys/pdpstand/rl.c line 198
- in /usr/src/sys/pdpuba/rl.c line 551, 644

RL_RWHCHK defined in line 40; never used
RL_SEEK defined in line 36; used 3 times

- in /usr/src/sys/pdpstand/rl.c line 92
- in /usr/src/sys/pdpuba/rl.c line 529, 661

RL_WCHK defined in line 34; never used
RL_WCOM defined in line 38; used 3 times

- in /usr/src/sys/pdpstand/rl.c line 81
- in /usr/src/sys/pdpuba/rl.c line 408, 667

#### Usage of this include

rlreg.h used 3 times

- in /usr/src/sys/autoconfig/rlauto.c line 12
- in /usr/src/sys/pdpstand/rl.c line 18
- in /usr/src/sys/pdpuba/rl.c line 59

Last modified: 1997-07-20 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 792 |