# 2.11BSD#431 - /usr/src/sys/pdpif/if_dmc.h

##### Macros

    DMCMTU            X
    DMC_BACCI         X
    DMC_BACCO         X
    DMC_BASEI         X
    DMC_CCOUNT        X
    DMC_CNTLI         X
    DMC_CNTLO         X
    DMC_CNTMASK       X
    DMC_FATAL         X
    DMC_HDPLX         X
    DMC_IEI           X
    DMC_IEO           X
    DMC_MAINT         X
    DMC_MCLR          X
    DMC_OUR           X
    DMC_OUX           X
    DMC_PERR          X
    DMC_RDYI          X
    DMC_RDYO          X
    DMC_READ          X
    DMC_RESUME        X
    DMC_RQI           X
    DMC_RUN           X
    DMC_SEC           X
    DMC_WRITE         X
    DMC_XMEM          X
    RDYSCAN           X
    bsel0             X
    bsel1             X
    bsel2             X
    bsel3             X
    bsel4             X
    bsel5             X
    bsel6             X
    bsel7             X
    sel0              X
    sel2              X
    sel4              X
    sel6              X

##### struct's

    dmcdevice         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:  *	@(#)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

- in /usr/src/sys/pdpif/if_dmc.c line 91(4), 146(2), 161(2), 211-216(4), 238-241(4), 271-276(4)

#### Defined macros

DMCMTU defined in line 33; used 4 times

- in /usr/src/sys/pdpif/if_dmc.c line 128, 156, 168, 317

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

- in /usr/src/sys/pdpif/if_dmc.c line 165

DMC_CCOUNT defined in line 67; used 2 times

- in /usr/src/sys/pdpif/if_dmc.c line 200, 291

DMC_CNTLI defined in line 39; used 1 times

- in /usr/src/sys/pdpif/if_dmc.c line 166

DMC_CNTLO defined in line 54; never used
DMC_CNTMASK defined in line 71; used 1 times

- in /usr/src/sys/pdpif/if_dmc.c line 340

DMC_FATAL defined in line 72; used 1 times

- in /usr/src/sys/pdpif/if_dmc.c line 341

DMC_HDPLX defined in line 61; never used
DMC_IEI defined in line 45; used 3 times

- in /usr/src/sys/pdpif/if_dmc.c line 104, 246, 257

DMC_IEO defined in line 57; used 1 times

- in /usr/src/sys/pdpif/if_dmc.c line 162

DMC_MAINT defined in line 63; never used
DMC_MCLR defined in line 49; used 4 times

- in /usr/src/sys/pdpif/if_dmc.c line 98-106(3), 342

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

- in /usr/src/sys/pdpif/if_dmc.c line 243-247(2), 253

DMC_RDYO defined in line 58; used 1 times

- in /usr/src/sys/pdpif/if_dmc.c line 279

DMC_READ defined in line 43; used 2 times

- in /usr/src/sys/pdpif/if_dmc.c line 168, 317

DMC_RESUME defined in line 68; never used
DMC_RQI defined in line 44; used 4 times

- in /usr/src/sys/pdpif/if_dmc.c line 104, 219-221(2), 246

DMC_RUN defined in line 50; used 3 times

- in /usr/src/sys/pdpif/if_dmc.c line 99-101(2), 107

DMC_SEC defined in line 62; never used
DMC_WRITE defined in line 42; used 1 times

- in /usr/src/sys/pdpif/if_dmc.c line 200

DMC_XMEM defined in line 66; used 4 times

- in /usr/src/sys/pdpif/if_dmc.c line 165-168(2), 200, 317

RDYSCAN defined in line 35; used 1 times

- in /usr/src/sys/pdpif/if_dmc.c line 252

bsel0 defined in line 20; used 8 times

- in /usr/src/sys/pdpif/if_dmc.c line 104, 219, 243-257(6)

bsel1 defined in line 21; used 7 times

- in /usr/src/sys/pdpif/if_dmc.c line 98-107(6), 342

bsel2 defined in line 22; used 3 times

- in /usr/src/sys/pdpif/if_dmc.c line 162, 278-279(2)

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

- in /usr/src/sys/pdpif/if_dmc.c line 244

sel6 defined in line 31; used 2 times

- in /usr/src/sys/pdpif/if_dmc.c line 245, 277

#### Usage of this include

if_dmc.h used 1 times

- in /usr/src/sys/pdpif/if_dmc.c line 35

Last modified: 1987-01-09 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 714 |