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

##### Macros

    MAPBUFDESC        X
    NCMD              X
    NCMDL2            X
    NRSP              X
    NRSPL2            X
    RINGBASE          X
    TMSCP_DI          X
    TMSCP_ERR         X
    TMSCP_GO          X
    TMSCP_IE          X
    TMSCP_INT         X
    TMSCP_LF          X
    TMSCP_MP          X
    TMSCP_NV          X
    TMSCP_OD          X
    TMSCP_OWN         X
    TMSCP_PI          X
    TMSCP_QB          X
    TMSCP_STEP1       X
    TMSCP_STEP2       X
    TMSCP_STEP3       X
    TMSCP_STEP4       X
    ca_ringbase       X

##### struct's

    tmscpca           X
    tmscpdevice       X

       1: /*	@(#)tmscpreg.h	1.4	(2.11BSD) 1998/1/28 */
       2:
       3: /****************************************************************
       4:  *								*
       5:  *        Licensed from Digital Equipment Corporation 		*
       6:  *                       Copyright (c) 				*
       7:  *               Digital Equipment Corporation			*
       8:  *                   Maynard, Massachusetts 			*
       9:  *                         1985, 1986 				*
      10:  *                    All rights reserved. 			*
      11:  *								*
      12:  *        The Information in this software is subject to change *
      13:  *   without notice and should not be construed as a commitment *
      14:  *   by  Digital  Equipment  Corporation.   Digital   makes  no *
      15:  *   representations about the suitability of this software for *
      16:  *   any purpose.  It is supplied "As Is" without expressed  or *
      17:  *   implied  warranty. 					*
      18:  *								*
      19:  *        If the Regents of the University of California or its *
      20:  *   licensees modify the software in a manner creating  	*
      21:  *   diriviative copyright rights, appropriate copyright  	*
      22:  *   legends may be placed on  the drivative work in addition   *
      23:  *   to that set forth above. 					*
      24:  *								*
      25:  ****************************************************************/
      26:
      27: /*
      28:  * TMSCP registers and structures
      29:  */
      30:
      31: struct tmscpdevice {
      32:     short   tmscpip;    /* initialization and polling */
      33:     short   tmscpsa;    /* status and address */
      34: };
      35:
      36: #define TMSCP_ERR   0100000 /* error bit */
      37: #define TMSCP_STEP4 0040000 /* step 4 has started */
      38: #define TMSCP_STEP3 0020000 /* step 3 has started */
      39: #define TMSCP_STEP2 0010000 /* step 2 has started */
      40: #define TMSCP_STEP1 0004000 /* step 1 has started */
      41: #define TMSCP_NV    0002000 /* no host settable interrupt vector */
      42: #define TMSCP_QB    0001000 /* controller supports Q22 bus */
      43: #define TMSCP_DI    0000400 /* controller implements diagnostics */
      44: #define TMSCP_OD    0000200 /* port allows odd host addr's in the buffer descriptor */
      45: #define TMSCP_IE    0000200 /* interrupt enable */
      46: #define TMSCP_MP    0000100 /* port supports address mapping */
      47: #define TMSCP_LF    0000002 /* host requests last fail response packet */
      48: #define TMSCP_PI    0000001 /* host requests adapter purge interrupts */
      49: #define TMSCP_GO    0000001 /* start operation, after init */
      50:
      51: typedef struct {        /* swap shorts for TMSCP controller */
      52:     short   lsh;
      53:     short   hsh;
      54:     } Trl;
      55:
      56: /*
      57:  * TMSCP Communications Area
      58:  */
      59:
      60: /*
      61:  * These defines were moved here so they could be shared between the
      62:  * driver and the crash dump module.
      63: */
      64: #ifndef NRSPL2
      65: #define NRSPL2  3   /* log2 number of response packets */
      66: #endif
      67: #ifndef NCMDL2
      68: #define NCMDL2  3   /* log2 number of command packets */
      69: #endif
      70:
      71: #define NRSP    (1<<NRSPL2)
      72: #define NCMD    (1<<NCMDL2)
      73: #define RINGBASE    (4 * sizeof (short))
      74: /* Size to map in when mapping a controller's command packet area */
      75: #define MAPBUFDESC  (((btoc(sizeof (struct tmscp)) - 1) << 8) | RW)
      76:
      77: struct tmscpca {
      78:     short   ca_xxx1;    /* unused */
      79:     char    ca_xxx2;    /* unused */
      80:     char    ca_bdp;     /* BDP to purge */
      81:     short   ca_cmdint;  /* command queue transition interrupt flag */
      82:     short   ca_rspint;  /* response queue transition interrupt flag */
      83:     Trl ca_rspdsc[NRSP];/* response descriptors */
      84:     Trl ca_cmddsc[NCMD];/* command descriptors */
      85: };
      86:
      87: #define ca_ringbase ca_rspdsc[0]
      88:
      89: #define TMSCP_OWN   0x8000  /* port owns descriptor (else host owns it) */
      90: #define TMSCP_INT   0x4000  /* allow interrupt on ring transition */

#### Defined struct's

tmscpca defined in line 77; used 4 times

- in /usr/src/sys/pdpuba/tmscp.c line 878(2), 899(2)

tmscpdevice defined in line 31; used 28 times

- in /usr/src/sys/pdpstand/tmscp.c line 62-66(8), 85(2)
- in /usr/src/sys/pdpuba/tmscp.c line 387(2), 431(2), 455(2), 626(2), 680(2), 938(2), 977(2), 1003(2)
- in /usr/src/sys/pdpuba/tmscpdump.c line 37(2)

#### Defined macros

MAPBUFDESC defined in line 75; used 8 times

- in /usr/src/sys/pdpuba/tmscp.c line 519, 575, 691, 906, 1018, 1034, 1170
- in /usr/src/sys/pdpuba/tmscpdump.c line 61

NCMD defined in line 72; used 3 times

- in line 84
- in /usr/src/sys/pdpuba/tmscp.c line 523, 923

NCMDL2 defined in line 68; used 6 times

- in line 67-72(2)
- in /usr/src/sys/pdpstand/tmscp.c line 108-113(2)
- in /usr/src/sys/pdpuba/tmscp.c line 477, 957

NRSP defined in line 71; used 5 times

- in line 83
- in /usr/src/sys/pdpuba/tmscp.c line 521-523(2), 590, 1173

NRSPL2 defined in line 65; used 6 times

- in line 64, 71
- in /usr/src/sys/pdpstand/tmscp.c line 108-113(2)
- in /usr/src/sys/pdpuba/tmscp.c line 477, 957

RINGBASE defined in line 73; used 2 times

- in /usr/src/sys/pdpuba/tmscp.c line 942
- in /usr/src/sys/pdpuba/tmscpdump.c line 59

TMSCP_DI defined in line 43; never used
TMSCP_ERR defined in line 36; used 14 times

- in /usr/src/sys/pdpstand/tmscp.c line 108, 224
- in /usr/src/sys/pdpuba/tmscp.c line 563, 954-957(2), 1005, 1025, 1158
- in /usr/src/sys/pdpuba/tmscpdump.c line 68-77(5), 139

TMSCP_GO defined in line 49; used 3 times

- in /usr/src/sys/pdpstand/tmscp.c line 133
- in /usr/src/sys/pdpuba/tmscp.c line 509
- in /usr/src/sys/pdpuba/tmscpdump.c line 78

TMSCP_IE defined in line 45; used 4 times

- in /usr/src/sys/pdpstand/tmscp.c line 113
- in /usr/src/sys/pdpuba/tmscp.c line 477, 488, 957

TMSCP_INT defined in line 90; used 13 times

- in /usr/src/sys/pdpuba/tmscp.c line 521-523(2), 541, 698, 913-917(3), 1024, 1136
- in /usr/src/sys/pdpuba/tmscpdump.c line 137-145(4)

TMSCP_LF defined in line 47; used 1 times

- in /usr/src/sys/pdpuba/tmscp.c line 509

TMSCP_MP defined in line 46; never used
TMSCP_NV defined in line 41; never used
TMSCP_OD defined in line 44; never used
TMSCP_OWN defined in line 89; used 15 times

- in /usr/src/sys/pdpstand/tmscp.c line 216-218(2), 242
- in /usr/src/sys/pdpuba/tmscp.c line 521, 541, 591-594(2), 698, 913, 1024, 1136, 1174-1177(2)
- in /usr/src/sys/pdpuba/tmscpdump.c line 137-138(2)

TMSCP_PI defined in line 48; never used
TMSCP_QB defined in line 42; never used
TMSCP_STEP1 defined in line 40; used 3 times

- in /usr/src/sys/pdpstand/tmscp.c line 106
- in /usr/src/sys/pdpuba/tmscp.c line 952
- in /usr/src/sys/pdpuba/tmscpdump.c line 67

TMSCP_STEP2 defined in line 39; used 4 times

- in /usr/src/sys/pdpstand/tmscp.c line 110-113(2)
- in /usr/src/sys/pdpuba/tmscp.c line 477
- in /usr/src/sys/pdpuba/tmscpdump.c line 70

TMSCP_STEP3 defined in line 38; used 4 times

- in /usr/src/sys/pdpstand/tmscp.c line 119-122(2)
- in /usr/src/sys/pdpuba/tmscp.c line 488
- in /usr/src/sys/pdpuba/tmscpdump.c line 73

TMSCP_STEP4 defined in line 37; used 4 times

- in /usr/src/sys/pdpstand/tmscp.c line 127-130(2)
- in /usr/src/sys/pdpuba/tmscp.c line 499
- in /usr/src/sys/pdpuba/tmscpdump.c line 76

ca_ringbase defined in line 87; used 1 times

- in /usr/src/sys/pdpstand/tmscp.c line 114

#### Usage of this include

tmscpreg.h used 4 times

- in /usr/src/bin/mt.c line 126
- in /usr/src/sys/pdpstand/tmscp.c line 57
- in /usr/src/sys/pdpuba/tmscp.c line 265
- in /usr/src/sys/pdpuba/tmscpdump.c line 20

Last modified: 1998-01-29 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 788 |