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

##### Macros

    DML_CAR           X
    DML_CTS           X
    DML_DTR           X
    DML_LE            X
    DML_OFF           X
    DML_ON            X
    DML_RNG           X
    DML_RTS           X
    DML_SR            X
    DML_ST            X
    DM_BUSY           X
    DM_CF             X
    DM_CM             X
    DM_CS             X
    DM_CTS            X
    DM_DONE           X
    DM_IE             X
    DM_MM             X
    DM_RF             X
    DM_SE             X
    DM_SRF            X
    DM_STP            X
    dmlst_h           X
    dmlst_l           X
    dmlstat           X

##### struct's

    dmdevice          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:  *	@(#)dmreg.h	1.1 (Berkeley) 12/1/86
       7:  */
       8:
       9: /*
      10:  * DM-11 device register definitions.
      11:  */
      12: struct dmdevice {
      13:     short   dmcsr;      /* control status register */
      14:     union   {               /* Q22:Need to access high byte independently */
      15:         short dmlst_w;
      16:         char dmlst_b[2];
      17:         } cs02un;
      18: #define dmlstat cs02un.dmlst_w        /* line status register */
      19: #define dmlst_l cs02un.dmlst_b[0]     /* low byte */
      20: #define dmlst_h cs02un.dmlst_b[1]     /* high byte */
      21:     short   dmpad1[2];
      22: };
      23:
      24: /* bits in dm csr */
      25: #define DM_RF       0100000     /* ring flag */
      26: #define DM_CF       0040000     /* carrier flag */
      27: #define DM_CTS      0020000     /* clear to send */
      28: #define DM_SRF      0010000     /* secondary receive flag */
      29: #define DM_CS       0004000     /* clear scan */
      30: #define DM_CM       0002000     /* clear multiplexor */
      31: #define DM_MM       0001000     /* maintenance mode */
      32: #define DM_STP      0000400     /* step */
      33: #define DM_DONE     0000200     /* scanner is done */
      34: #define DM_IE       0000100     /* interrupt enable */
      35: #define DM_SE       0000040     /* scan enable */
      36: #define DM_BUSY     0000020     /* scan busy */
      37:
      38: /* bits in dm lsr */
      39: #define DML_RNG     0000200     /* ring */
      40: #define DML_CAR     0000100     /* carrier detect */
      41: #define DML_CTS     0000040     /* clear to send */
      42: #define DML_SR      0000020     /* secondary receive */
      43: #define DML_ST      0000010     /* secondary transmit */
      44: #define DML_RTS     0000004     /* request to send */
      45: #define DML_DTR     0000002     /* data terminal ready */
      46: #define DML_LE      0000001     /* line enable */
      47:
      48: #define DML_ON      (DML_DTR|DML_RTS|DML_LE)
      49: #define DML_OFF     (DML_LE)

#### Defined struct's

dmdevice defined in line 12; used 20 times

- in /usr/src/sys/autoconfig/dhauto.c line 34(2)
- in /usr/src/sys/pdpuba/dh.c line 446(2), 479(2), 507(2), 546(2), 648(2), 670-675(4), 713-717(4)

#### Defined macros

DML_CAR defined in line 40; used 3 times

- in /usr/src/sys/pdpuba/dh.c line 175, 381, 724

DML_CTS defined in line 41; used 2 times

- in /usr/src/sys/pdpuba/dh.c line 382, 734

DML_DTR defined in line 45; used 5 times

- in line 48
- in /usr/src/sys/pdpuba/dh.c line 339-342(2), 369, 384

DML_LE defined in line 46; used 4 times

- in line 48-49(2)
- in /usr/src/sys/pdpuba/dh.c line 370, 385

DML_OFF defined in line 49; used 2 times

- in /usr/src/sys/pdpuba/dh.c line 204, 412

DML_ON defined in line 48; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 660

DML_RNG defined in line 39; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 380

DML_RTS defined in line 44; used 5 times

- in line 48
- in /usr/src/sys/pdpuba/dh.c line 339-342(2), 368, 383

DML_SR defined in line 42; never used
DML_ST defined in line 43; never used
DM_BUSY defined in line 36; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 680

DM_CF defined in line 26; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 722

DM_CM defined in line 30; never used
DM_CS defined in line 29; never used
DM_CTS defined in line 27; used 1 times

- in /usr/src/sys/pdpuba/dh.c line 730

DM_DONE defined in line 33; used 2 times

- in /usr/src/sys/autoconfig/dhauto.c line 37
- in /usr/src/sys/pdpuba/dh.c line 718

DM_IE defined in line 34; used 3 times

- in /usr/src/sys/autoconfig/dhauto.c line 37
- in /usr/src/sys/pdpuba/dh.c line 700, 746

DM_MM defined in line 31; never used
DM_RF defined in line 25; never used
DM_SE defined in line 35; used 3 times

- in /usr/src/sys/pdpuba/dh.c line 679, 700, 746

DM_SRF defined in line 28; never used
DM_STP defined in line 32; never used
dmlst_h defined in line 20; used 2 times

- in /usr/src/sys/pdpuba/dh.c line 481, 548

dmlst_l defined in line 19; never used
dmlstat defined in line 18; used 5 times

- in /usr/src/sys/pdpuba/dh.c line 683, 699, 724-728(2), 734

#### Usage of this include

dmreg.h used 2 times

- in /usr/src/sys/autoconfig/dhauto.c line 15
- in /usr/src/sys/pdpuba/dh.c line 25

Last modified: 1989-08-27 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 674 |