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:  *	@(#)if_dmc.h	1.1 (2.10BSD Berkeley) 12/1/86
   7:  */
   8: 
   9: /*
  10:  * DMC-11 Interface
  11:  */
  12: 
  13: struct dmcdevice {
  14:     union {
  15:         char    b[8];
  16:         short   w[4];
  17:     } un;
  18: };
  19: 
  20: #define bsel0   un.b[0]
  21: #define bsel1   un.b[1]
  22: #define bsel2   un.b[2]
  23: #define bsel3   un.b[3]
  24: #define bsel4   un.b[4]
  25: #define bsel5   un.b[5]
  26: #define bsel6   un.b[6]
  27: #define bsel7   un.b[7]
  28: #define sel0    un.w[0]
  29: #define sel2    un.w[1]
  30: #define sel4    un.w[2]
  31: #define sel6    un.w[3]
  32: 
  33: #define DMCMTU  (2048)
  34: 
  35: #define RDYSCAN 16  /* loop delay for RDYI after RQI */
  36: 
  37: /* defines for bsel0 */
  38: #define DMC_BACCI   0
  39: #define DMC_CNTLI   1
  40: #define DMC_PERR    2
  41: #define DMC_BASEI   3
  42: #define DMC_WRITE   0       /* transmit block */
  43: #define DMC_READ    4       /* read block */
  44: #define DMC_RQI     0040        /* port request bit */
  45: #define DMC_IEI     0100        /* enable input interrupts */
  46: #define DMC_RDYI    0200        /* port ready */
  47: 
  48: /* defines for bsel1 */
  49: #define DMC_MCLR    0100        /* DMC11 Master Clear */
  50: #define DMC_RUN     0200        /* clock running */
  51: 
  52: /* defines for bsel2 */
  53: #define DMC_BACCO   0
  54: #define DMC_CNTLO   1
  55: #define DMC_OUX     0       /* transmit block */
  56: #define DMC_OUR     4       /* read block */
  57: #define DMC_IEO     0100        /* enable output interrupts */
  58: #define DMC_RDYO    0200        /* port available */
  59: 
  60: /* defines for CNTLI mode */
  61: #define DMC_HDPLX   02000       /* half duplex DDCMP operation */
  62: #define DMC_SEC     04000       /* half duplex secondary station */
  63: #define DMC_MAINT   00400       /* enter maintenance mode */
  64: 
  65: /* defines for BACCI/O and BASEI mode */
  66: #define DMC_XMEM    0140000     /* xmem bit position */
  67: #define DMC_CCOUNT  0037777     /* character count mask */
  68: #define DMC_RESUME  0002000     /* resume (BASEI only) */
  69: 
  70: /* defines for CNTLO */
  71: #define DMC_CNTMASK 01777
  72: #define DMC_FATAL   01620

Defined struct's

dmcdevice defined in line 13; used 20 times

Defined macros

DMCMTU defined in line 33; used 4 times
DMC_BACCI defined in line 38; never used
DMC_BACCO defined in line 53; never used
DMC_BASEI defined in line 41; used 1 times
DMC_CCOUNT defined in line 67; used 2 times
DMC_CNTLI defined in line 39; used 1 times
DMC_CNTLO defined in line 54; never used
DMC_CNTMASK defined in line 71; used 1 times
DMC_FATAL defined in line 72; used 1 times
DMC_HDPLX defined in line 61; never used
DMC_IEI defined in line 45; used 3 times
DMC_IEO defined in line 57; used 1 times
DMC_MAINT defined in line 63; never used
DMC_MCLR defined in line 49; used 4 times
DMC_OUR defined in line 56; never used
DMC_OUX defined in line 55; never used
DMC_PERR defined in line 40; never used
DMC_RDYI defined in line 46; used 3 times
DMC_RDYO defined in line 58; used 1 times
DMC_READ defined in line 43; used 2 times
DMC_RESUME defined in line 68; never used
DMC_RQI defined in line 44; used 4 times
DMC_RUN defined in line 50; used 3 times
DMC_SEC defined in line 62; never used
DMC_WRITE defined in line 42; used 1 times
DMC_XMEM defined in line 66; used 4 times
RDYSCAN defined in line 35; used 1 times
bsel0 defined in line 20; used 8 times
bsel1 defined in line 21; used 7 times
bsel2 defined in line 22; used 3 times
bsel3 defined in line 23; never used
bsel4 defined in line 24; never used
bsel5 defined in line 25; never used
bsel6 defined in line 26; never used
bsel7 defined in line 27; never used
sel0 defined in line 28; never used
sel2 defined in line 29; never used
sel4 defined in line 30; used 1 times
sel6 defined in line 31; used 2 times

Usage of this include

Last modified: 1987-01-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 969
Valid CSS Valid XHTML 1.0 Strict