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

Defined macros

DML_CAR defined in line 40; used 3 times
DML_CTS defined in line 41; used 2 times
DML_DTR defined in line 45; used 5 times
DML_LE defined in line 46; used 4 times
DML_OFF defined in line 49; used 2 times
DML_ON defined in line 48; used 1 times
DML_RNG defined in line 39; used 1 times
DML_RTS defined in line 44; used 5 times
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
DM_CF defined in line 26; used 1 times
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
DM_DONE defined in line 33; used 2 times
DM_IE defined in line 34; used 3 times
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
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
dmlst_l defined in line 19; never used
dmlstat defined in line 18; used 5 times

Usage of this include

Last modified: 1989-08-27
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 738
Valid CSS Valid XHTML 1.0 Strict