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

##### Macros

    AE_DTYP           X
    AE_T200           X
    AE_T300           X
    AE_T50            X
    AE_T80            X
    BRDS_BITS         X
    BRDS_HNF          X
    BRDS_SUFU         X
    BRDS_SUOL         X
    BRDS_SURDY        X
    BRDS_SUSI         X
    BRDS_SUWP         X
    BRDS_TOE          X
    BRER_ATE          X
    BRER_BITS         X
    BRER_BSE          X
    BRER_DCE          X
    BRER_DSE          X
    BRER_DSKERR       X
    BRER_EOP          X
    BRER_FMTE         X
    BRER_FUV          X
    BRER_NXC          X
    BRER_NXME         X
    BRER_NXT          X
    BRER_PROG         X
    BRER_SBPE         X
    BRER_SUBUSY       X
    BRER_WCE          X
    BRER_WPV          X
    BR_AIE            X
    BR_BITS           X
    BR_ERR            X
    BR_GO             X
    BR_HDB            X
    BR_HDR            X
    BR_HE             X
    BR_HSEEK          X
    BR_IDE            X
    BR_IDLE           X
    BR_RCOM           X
    BR_RDY            X
    BR_RNS            X
    BR_SEEK           X
    BR_WCHK           X
    BR_WCOM           X
    BR_WNS            X
    OFFM              X
    OFFP              X
    STBE              X
    STBL              X

##### struct's

    brdevice          X

       1: struct brdevice {
       2:     short brds;
       3:     short brer;
       4:     union {
       5:         short w;
       6:         char c[2];
       7:     } brcs;
       8:     short brwc;
       9:     caddr_t brba;
      10:     short brca;
      11:     short brda;
      12:     short brae;
      13: };
      14:
      15: /* bits in brds */
      16: #define BRDS_SURDY  0100000     /* selected unit ready */
      17: #define BRDS_SUOL   0040000     /* selected unit on line */
      18: #define BRDS_TOE    0020000     /* selected unit BR */
      19: #define BRDS_HNF    0010000     /* header not found */
      20: #define BRDS_SUSI   0004000     /* selected unit seek incomplete */
      21: #define BRDS_SUFU   0001000     /* selected unit file unsafe */
      22: #define BRDS_SUWP   0000400     /* selected unit write protected */
      23: /* bits 7-0 are attention bits */
      24: #define BRDS_BITS   "\10\20SURDY\17SUOL\16BR\15HNF\14SUSI\12SUFU\11SUWP"
      25:
      26: /* bits in brer */
      27: #define BRER_WPV    0100000     /* write protect violation */
      28: #define BRER_FUV    0040000     /* file unsafe violation */
      29: #define BRER_NXC    0020000     /* nonexistent cylinder */
      30: #define BRER_NXT    0010000     /* nonexistent track */
      31: #define BRER_SUBUSY 0004000     /* selected unit busy */
      32: #define BRER_PROG   0002000     /* program error */
      33: #define BRER_FMTE   0001000     /* format error */
      34: #define BRER_BSE    0000400     /* bad sector */
      35: #define BRER_ATE    0000200     /* aborted transfer error */
      36: #define BRER_DCE    0000100     /* data check error */
      37: #define BRER_DSE    0000040     /* data sync error */
      38: #define BRER_SBPE   0000020     /* system bad parity error */
      39: #define BRER_WCE    0000010     /* write check error */
      40: #define BRER_NXME   0000004     /* nonexistent memory */
      41: #define BRER_EOP    0000002     /* end of pack */
      42: #define BRER_DSKERR 0000001     /* disk error */
      43: #define BRER_BITS   \
      44: "\10\20WPV\17FUV\16NXC\15NXT\14SUBUSY\13PROG\12FMTE\11BSE\10ATE\
      45: \7DCE\6DSE\5SBPE\4WCE\3NXME\2EOP\1DSKERR"
      46:
      47: /* bits in brcs */
      48: #define BR_ERR      0100000     /* error */
      49: #define BR_HE       0040000     /* hard error */
      50: #define BR_AIE      0020000     /* attention interrupt enable */
      51: #define BR_HDB      0010000     /* hold drive busy */
      52: #define BR_HDR      0004000     /* header */
      53: /* bits 10-8 are drive select */
      54: #define BR_RDY      0000200     /* ready */
      55: #define BR_IDE      0000100     /* interrupt on done (error) enable */
      56: /* bits 5-4 are the UNIBUS extension bits */
      57: /* bits 3-1 are the function */
      58: #define BR_GO       0000001     /* go */
      59: #define BR_BITS     "\10\20ERR\17HE\16AIE\15HDB\14HDR\10RDY\7IDE\1GO"
      60:
      61: /* commands */
      62: #define BR_IDLE     0000000     /* idle */
      63: #define BR_WCOM     0000002     /* write */
      64: #define BR_RCOM     0000004     /* read */
      65: #define BR_WCHK     0000006     /* write check */
      66: #define BR_SEEK     0000010     /* seek */
      67: #define BR_WNS      0000012     /* write (no seek) */
      68: #define BR_HSEEK    0000014     /* home seek */
      69: #define BR_RNS      0000016     /* read (no seek) */
      70:
      71: #define STBE        0000100     /* Strobe early */
      72: #define STBL        0000200     /* Strobe late */
      73: #define OFFP        0140000     /* Positive offset */
      74: #define OFFM        0100000     /* Negative offset */
      75:
      76: /* Bits in br_ae */
      77: #define AE_DTYP     0007400     /* Disk type */
      78: #define AE_T50      0000400     /* T-50  drive */
      79: #define AE_T80      0001000     /* T-80  drive */
      80: #define AE_T200     0002000     /* T-200 drive */
      81: #define AE_T300     0004000     /* T-300 drive */

#### Defined struct's

brdevice defined in line 1; used 20 times

- in /usr/src/sys/autoconfig/brauto.c line 11(2)
- in /usr/src/sys/pdpstand/br.c line 23-27(8), 35(2)
- in /usr/src/sys/pdpuba/br.c line 124-132(6), 312(2)

#### Defined macros

AE_DTYP defined in line 77; used 1 times

- in /usr/src/sys/pdpuba/br.c line 285

AE_T200 defined in line 80; never used
AE_T300 defined in line 81; never used
AE_T50 defined in line 78; never used
AE_T80 defined in line 79; never used
BRDS_BITS defined in line 24; used 1 times

- in /usr/src/sys/pdpuba/br.c line 339

BRDS_HNF defined in line 19; used 1 times

- in /usr/src/sys/pdpuba/br.c line 329

BRDS_SUFU defined in line 21; used 1 times

- in /usr/src/sys/pdpuba/br.c line 329

BRDS_SUOL defined in line 17; never used
BRDS_SURDY defined in line 16; used 1 times

- in /usr/src/sys/pdpuba/br.c line 331

BRDS_SUSI defined in line 20; used 1 times

- in /usr/src/sys/pdpuba/br.c line 329

BRDS_SUWP defined in line 22; never used
BRDS_TOE defined in line 18; never used
BRER_ATE defined in line 35; never used
BRER_BITS defined in line 43; used 1 times

- in /usr/src/sys/pdpuba/br.c line 339

BRER_BSE defined in line 34; never used
BRER_DCE defined in line 36; never used
BRER_DSE defined in line 37; never used
BRER_DSKERR defined in line 42; never used
BRER_EOP defined in line 41; never used
BRER_FMTE defined in line 33; never used
BRER_FUV defined in line 28; never used
BRER_NXC defined in line 29; never used
BRER_NXME defined in line 40; used 1 times

- in /usr/src/sys/pdpuba/br.c line 419

BRER_NXT defined in line 30; never used
BRER_PROG defined in line 32; never used
BRER_SBPE defined in line 38; never used
BRER_SUBUSY defined in line 31; used 2 times

- in /usr/src/sys/pdpuba/br.c line 283, 325

BRER_WCE defined in line 39; never used
BRER_WPV defined in line 27; never used
BR_AIE defined in line 50; never used
BR_BITS defined in line 59; used 1 times

- in /usr/src/sys/pdpuba/br.c line 340

BR_ERR defined in line 48; never used
BR_GO defined in line 58; used 7 times

- in /usr/src/sys/pdpstand/br.c line 47, 79
- in /usr/src/sys/pdpuba/br.c line 251, 281, 330-333(2), 405

BR_HDB defined in line 51; never used
BR_HDR defined in line 52; never used
BR_HE defined in line 49; used 2 times

- in /usr/src/sys/pdpstand/br.c line 51
- in /usr/src/sys/pdpuba/br.c line 284

BR_HSEEK defined in line 68; used 3 times

- in /usr/src/sys/pdpstand/br.c line 47
- in /usr/src/sys/pdpuba/br.c line 281, 330

BR_IDE defined in line 55; used 1 times

- in /usr/src/sys/pdpuba/br.c line 251

BR_IDLE defined in line 62; used 1 times

- in /usr/src/sys/pdpuba/br.c line 333

BR_RCOM defined in line 64; used 2 times

- in /usr/src/sys/pdpstand/br.c line 81
- in /usr/src/sys/pdpuba/br.c line 253

BR_RDY defined in line 54; used 8 times

- in /usr/src/sys/pdpstand/br.c line 49, 85
- in /usr/src/sys/pdpuba/br.c line 223, 282, 318, 335, 393, 417

BR_RNS defined in line 69; never used
BR_SEEK defined in line 66; never used
BR_WCHK defined in line 65; never used
BR_WCOM defined in line 63; used 3 times

- in /usr/src/sys/pdpstand/br.c line 83
- in /usr/src/sys/pdpuba/br.c line 255, 405

BR_WNS defined in line 67; never used
OFFM defined in line 74; used 2 times

- in /usr/src/sys/pdpuba/br.c line 115(2)

OFFP defined in line 73; used 10 times

- in /usr/src/sys/pdpuba/br.c line 113-116(10)

STBE defined in line 71; used 6 times

- in /usr/src/sys/pdpuba/br.c line 112-115(6)

STBL defined in line 72; used 6 times

- in /usr/src/sys/pdpuba/br.c line 113-116(6)

#### Usage of this include

brreg.h used 3 times

- in /usr/src/sys/autoconfig/brauto.c line 4
- in /usr/src/sys/pdpstand/br.c line 16
- in /usr/src/sys/pdpuba/br.c line 46

Last modified: 1988-08-26 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 984 |