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

##### Macros

    RXES1_BADKEY      X
    RXES1_CRC         X
    RXES1_D0NOHOME    X
    RXES1_D1NOHOME    X
    RXES1_DENSERR     X
    RXES1_HNEQTRK     X
    RXES1_HNF         X
    RXES1_NOAM        X
    RXES1_NOID        X
    RXES1_NOPREAMB    X
    RXES1_NSEP        X
    RXES1_OOPS        X
    RXES1_WCOVFL      X
    RXES1_WRAP        X
    RXES1_XIDAM       X
    RXES1_XTRK        X
    RXES4_BITS        X
    RXES4_D0DENS      X
    RXES4_D1DENS      X
    RXES4_DD          X
    RXES4_HEAD        X
    RXES4_UNIT        X
    RXES_ACLO         X
    RXES_BITS         X
    RXES_CRC          X
    RXES_DD           X
    RXES_DDATA        X
    RXES_DENSERR      X
    RXES_HD           X
    RXES_IBMDD        X
    RXES_INITDONE     X
    RXES_NXM          X
    RXES_RDY          X
    RXES_S1RDY        X
    RXES_UNIT         X
    RXES_WCOVFL       X
    RXIOC_FORMAT      X
    RX_BITS           X
    RX_DD             X
    RX_DONE           X
    RX_EMPTY          X
    RX_ERR            X
    RX_FILL           X
    RX_GO             X
    RX_HD             X
    RX_IE             X
    RX_INIT           X
    RX_Q22            X
    RX_RDEC           X
    RX_RDSTAT         X
    RX_RSECT          X
    RX_RX02           X
    RX_SMD            X
    RX_UNIT           X
    RX_WDDSECT        X
    RX_WSECT          X
    RX_XREQ           X
    b_seccnt          X
    b_state           X
    rxba              X
    rxes              X
    rxqa              X
    rxsa              X
    rxta              X
    rxwc              X

##### struct's

    rxdevice          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:  *	@(#)rxreg.h	1.2 (2.11BSD GTE) 1995/11/21
       7:  */
       8:
       9: struct  rxdevice    {
      10:     short   rxcs;           /* command and status register */
      11:     short   rxdb;           /* multipurpose register: */
      12: #define rxba    rxdb            /* 	bus address register */
      13: #define rxqa    rxdb            /*	Q22 high-bits */
      14: #define rxta    rxdb            /*	track address register */
      15: #define rxsa    rxdb            /*	sector address register */
      16: #define rxwc    rxdb            /*	word count register */
      17: #define rxes    rxdb            /*	error and status register */
      18: };
      19:
      20: /* bits in rxcs */
      21: #define RX_ERR      0100000     /* error */
      22: #define RX_INIT     0040000     /* initialize */
      23:
      24: /* bits 13-12 are the extension bits */
      25: #define RX_RX02     0004000     /* rx02 (read only) */
      26:
      27: #define RX_Q22      0002000     /* enable 22-bit mode (DSD MXV-22) */
      28: #define RX_HD       0001000     /* DSD 480 head select */
      29: #define RX_DD       0000400     /* double density */
      30: #define RX_XREQ     0000200     /* transfer request */
      31: #define RX_IE       0000100     /* interrupt enable */
      32: #define RX_DONE     0000040     /* done */
      33: #define RX_UNIT     0000020     /* unit select */
      34:
      35: /* bits 3-1 are the function code */
      36: #define RX_GO       0000001     /* go */
      37:
      38: /* function codes */
      39: #define RX_FILL     0000000     /* fill buffer */
      40: #define RX_EMPTY    0000002     /* empty */
      41: #define RX_WSECT    0000004     /* write sector */
      42: #define RX_RSECT    0000006     /* read sector */
      43: #define RX_SMD      0000010     /* set media density */
      44: #define RX_RDSTAT   0000012     /* read status */
      45: #define RX_WDDSECT  0000014     /* write deleted data sector */
      46: #define RX_RDEC     0000016     /* read error code */
      47:
      48: /* ioctls */
      49: #define RXIOC_FORMAT    _IO(r, 1)   /* format media */
      50:
      51: #define RX_BITS \
      52: "\10\20ERR\17INIT\14RX02\13QBUS\12HD\11DD\10XREQ\7IE\6DONE\5UNIT1\1GO"
      53:
      54: /* bits in rxes */
      55: /* bits 15-12 are unused in the standard rx11 */
      56: #define RXES_IBMDD  0010000     /* DSD 480 IBM double density select */
      57: #define RXES_NXM    0004000     /* nonexistent memory */
      58: #define RXES_WCOVFL 0002000     /* word count overflow */
      59:
      60: /* bit 9 is unused in the standard rx11 */
      61: #define RXES_HD     0001000     /* DSD 480 head select */
      62: #define RXES_UNIT   0000400     /* unit select */
      63: #define RXES_RDY    0000200     /* ready */
      64: #define RXES_DDATA  0000100     /* deleted data */
      65: #define RXES_DD     0000040     /* double density */
      66: #define RXES_DENSERR    0000020     /* density error */
      67: #define RXES_ACLO   0000010     /* ac low */
      68: #define RXES_INITDONE   0000004     /* initialization done */
      69:
      70: /* bit 1 is unused in the standard rx11 */
      71: #define RXES_S1RDY  0000002     /* DSD 480 side 1 ready */
      72: #define RXES_CRC    0000001     /* crc error */
      73: #define RXES_BITS   \
      74: "\10\15IBMDD\14NXM\13WCOVFL\12HD\11UNIT1\10RDY\7DDATA\
      75: \6DDENS\5DENSERR\4ACLO\3INIT\2S1RDY\1CRC"
      76:
      77: /* bits in rxes1 */
      78: /* bits 15-8 contain the word count */
      79: /* bits 7-0 contain the error code */
      80: #define RXES1_D0NOHOME  0000010     /* drive 0 failed to see home on init */
      81: #define RXES1_D1NOHOME  0000020     /* drive 1 failed to see home on init */
      82: #define RXES1_XTRK  0000040     /* track number > 076 */
      83: #define RXES1_WRAP  0000050     /* found home before desired track */
      84: #define RXES1_HNF   0000070     /* header not found after 2 revs */
      85: #define RXES1_NSEP  0000110     /* up controller found not SEP clock */
      86: #define RXES1_NOPREAMB  0000120     /* preamble not found */
      87: #define RXES1_NOID  0000130     /* preamble found;ID burst timeout */
      88: #define RXES1_HNEQTRK   0000150     /* track reached doesn't match header */
      89: #define RXES1_XIDAM 0000160     /* up made to many attempts for IDAM */
      90: #define RXES1_NOAM  0000170     /* data AM timeout */
      91: #define RXES1_CRC   0000200     /* crc error reading disk sector */
      92: #define RXES1_OOPS  0000220     /* read/write electronics failed test */
      93: #define RXES1_WCOVFL    0000230     /* word count overflow */
      94: #define RXES1_DENSERR   0000240     /* density error */
      95: #define RXES1_BADKEY    0000250     /* bad key word for Set Media Density */
      96:
      97: /* bits in rxes4 */
      98: /* bits 15-8 contain the track address for header track address errors */
      99: #define RXES4_UNIT  0000200     /* unit select */
     100: #define RXES4_D1DENS    0000100     /* drive 1 density */
     101: #define RXES4_HEAD  0000040     /* head loaded */
     102: #define RXES4_D0DENS    0000020     /* drive 0 density */
     103:
     104: /* bits 3-1 are unused */
     105: #define RXES4_DD    0000001     /* diskette is double density */
     106: #define RXES4_BITS  "\10\10DRIVE1\7D1HIDENS\6HEAD\5D0HIDENS\1DDENS"
     107:
     108: #define b_seccnt    av_back
     109: #define b_state     b_active

#### Defined struct's

rxdevice defined in line 9; used 16 times

- in /usr/src/sys/autoconfig/rxauto.c line 19(2)
- in /usr/src/sys/pdpstand/rx.c line 35-39(8), 45(2)
- in /usr/src/sys/pdpuba/rx.c line 55(2), 97(2)

#### Defined macros

RXES1_BADKEY defined in line 95; never used
RXES1_CRC defined in line 91; never used
RXES1_D0NOHOME defined in line 80; never used
RXES1_D1NOHOME defined in line 81; never used
RXES1_DENSERR defined in line 94; never used
RXES1_HNEQTRK defined in line 88; never used
RXES1_HNF defined in line 84; never used
RXES1_NOAM defined in line 90; never used
RXES1_NOID defined in line 87; never used
RXES1_NOPREAMB defined in line 86; never used
RXES1_NSEP defined in line 85; never used
RXES1_OOPS defined in line 92; never used
RXES1_WCOVFL defined in line 93; never used
RXES1_WRAP defined in line 83; never used
RXES1_XIDAM defined in line 89; never used
RXES1_XTRK defined in line 82; never used
RXES4_BITS defined in line 106; never used
RXES4_D0DENS defined in line 102; never used
RXES4_D1DENS defined in line 100; never used
RXES4_DD defined in line 105; never used
RXES4_HEAD defined in line 101; never used
RXES4_UNIT defined in line 99; never used
RXES_ACLO defined in line 67; never used
RXES_BITS defined in line 73; used 1 times

- in /usr/src/sys/pdpuba/rx.c line 244

RXES_CRC defined in line 72; never used
RXES_DD defined in line 65; never used
RXES_DDATA defined in line 64; never used
RXES_DENSERR defined in line 66; never used
RXES_HD defined in line 61; never used
RXES_IBMDD defined in line 56; never used
RXES_INITDONE defined in line 68; never used
RXES_NXM defined in line 57; never used
RXES_RDY defined in line 63; never used
RXES_S1RDY defined in line 71; never used
RXES_UNIT defined in line 62; never used
RXES_WCOVFL defined in line 58; never used
RXIOC_FORMAT defined in line 49; used 2 times

- in /usr/src/sys/pdpuba/rx.c line 411
- in /usr/src/usr.sbin/rxformat/rxformat.c line 52

RX_BITS defined in line 51; used 1 times

- in /usr/src/sys/pdpuba/rx.c line 243

RX_DD defined in line 29; never used
RX_DONE defined in line 32; used 2 times

- in /usr/src/sys/pdpstand/rx.c line 27
- in /usr/src/sys/pdpuba/rx.c line 248

RX_EMPTY defined in line 40; used 2 times

- in /usr/src/sys/pdpstand/rx.c line 74
- in /usr/src/sys/pdpuba/rx.c line 291

RX_ERR defined in line 21; used 4 times

- in /usr/src/sys/pdpstand/rx.c line 68, 80, 88
- in /usr/src/sys/pdpuba/rx.c line 239

RX_FILL defined in line 39; used 2 times

- in /usr/src/sys/pdpstand/rx.c line 74
- in /usr/src/sys/pdpuba/rx.c line 210

RX_GO defined in line 36; used 3 times

- in /usr/src/sys/pdpstand/rx.c line 24
- in /usr/src/sys/pdpuba/rx.c line 66, 245

RX_HD defined in line 28; never used
RX_IE defined in line 31; used 4 times

- in /usr/src/sys/autoconfig/rxauto.c line 22-24(2)
- in /usr/src/sys/pdpuba/rx.c line 66, 277

RX_INIT defined in line 22; used 2 times

- in /usr/src/sys/autoconfig/rxauto.c line 21
- in /usr/src/sys/pdpuba/rx.c line 276

RX_Q22 defined in line 27; used 3 times

- in /usr/src/sys/pdpuba/rx.c line 104, 207, 288

RX_RDEC defined in line 46; used 1 times

- in /usr/src/sys/pdpuba/rx.c line 245

RX_RDSTAT defined in line 44; never used
RX_RSECT defined in line 42; used 2 times

- in /usr/src/sys/pdpstand/rx.c line 62
- in /usr/src/sys/pdpuba/rx.c line 197

RX_RX02 defined in line 25; never used
RX_SMD defined in line 43; used 1 times

- in /usr/src/sys/pdpuba/rx.c line 190

RX_UNIT defined in line 33; never used
RX_WDDSECT defined in line 45; never used
RX_WSECT defined in line 41; used 2 times

- in /usr/src/sys/pdpstand/rx.c line 82
- in /usr/src/sys/pdpuba/rx.c line 306

RX_XREQ defined in line 30; used 2 times

- in /usr/src/sys/pdpstand/rx.c line 26
- in /usr/src/sys/pdpuba/rx.c line 68

b_seccnt defined in line 108; used 1 times

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

b_state defined in line 109; used 11 times

- in /usr/src/sys/pdpuba/rx.c line 172, 184-189(2), 195, 203, 231, 240, 278-284(3), 304

rxba defined in line 12; used 6 times

- in /usr/src/sys/pdpstand/rx.c line 78
- in /usr/src/sys/pdpuba/rx.c line 214-218(2), 247, 295-299(2)

rxes defined in line 17; used 2 times

- in /usr/src/sys/pdpstand/rx.c line 98
- in /usr/src/sys/pdpuba/rx.c line 244

rxqa defined in line 13; never used
rxsa defined in line 15; used 4 times

- in /usr/src/sys/pdpstand/rx.c line 64, 84
- in /usr/src/sys/pdpuba/rx.c line 199, 308

rxta defined in line 14; used 4 times

- in /usr/src/sys/pdpstand/rx.c line 66, 86
- in /usr/src/sys/pdpuba/rx.c line 201, 310

rxwc defined in line 16; used 3 times

- in /usr/src/sys/pdpstand/rx.c line 76
- in /usr/src/sys/pdpuba/rx.c line 212, 293

#### Usage of this include

rxreg.h used 4 times

- in /usr/src/sys/autoconfig/rxauto.c line 13
- in /usr/src/sys/pdpstand/rx.c line 30
- in /usr/src/sys/pdpuba/rx.c line 50
- in /usr/src/usr.sbin/rxformat/rxformat.c line 21

Last modified: 1995-11-22 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1134 |