# 2.11BSD#431 - /usr/src/sys/pdp/mscp_common.h

##### Macros

    M_CF_ATTN         X
    M_CF_MISC         X
    M_CF_OTHER        X
    M_CF_THIS         X
    M_CM_RQDX3        X
    M_CM_TK50         X
    M_CM_TK70         X
    M_CM_TQK50        X
    M_CM_TQK70        X
    M_CM_TU81         X
    M_CM_UDA50        X
    M_CM_UDA50A       X
    M_EF_DLS          X
    M_EF_EOT          X
    M_EF_ERLOG        X
    M_EF_PLS          X
    M_EF_SEREX        X
    M_FM_BUSADDR      X
    M_FM_CNTERR       X
    M_FM_DISKTRN      X
    M_FM_IBMSENSE     X
    M_FM_LDRERR       X
    M_FM_REPLACE      X
    M_FM_SDI          X
    M_FM_SMLDSK       X
    M_FM_STIDEL       X
    M_FM_STIERR       X
    M_FM_STIFEL       X
    M_FM_TAPETRN      X
    M_LF_BBR          X
    M_LF_CONT         X
    M_LF_INFO         X
    M_LF_RPLER        X
    M_LF_SQNRS        X
    M_LF_SUCC         X
    M_MD_ALLCD        X
    M_MD_CDATL        X
    M_MD_CLSEX        X
    M_MD_COMP         X
    M_MD_DLEOT        X
    M_MD_EXCAC        X
    M_MD_EXPRS        X
    M_MD_FLENU        X
    M_MD_IMMED        X
    M_MD_NXUNT        X
    M_MD_OBJCT        X
    M_MD_REVRS        X
    M_MD_REWND        X
    M_MD_SCCHH        X
    M_MD_SCCHL        X
    M_MD_SECOR        X
    M_MD_SEREC        X
    M_MD_SPNDW        X
    M_MD_STWRP        X
    M_MD_UNLOD        X
    M_MD_VOLTL        X
    M_MD_WBKNV        X
    M_MD_WBKVL        X
    M_OP_ABORT        X
    M_OP_ACCES        X
    M_OP_ACCNM        X
    M_OP_ACPTH        X
    M_OP_AVAIL        X
    M_OP_AVATN        X
    M_OP_CMPCD        X
    M_OP_COMP         X
    M_OP_DTACP        X
    M_OP_DUPUN        X
    M_OP_END          X
    M_OP_ERASE        X
    M_OP_ERGAP        X
    M_OP_FLUSH        X
    M_OP_GTCMD        X
    M_OP_GTUNT        X
    M_OP_ONLIN        X
    M_OP_READ         X
    M_OP_REPOS        X
    M_OP_RWATN        X
    M_OP_SEREX        X
    M_OP_STCON        X
    M_OP_STUNT        X
    M_OP_WRITE        X
    M_OP_WRITM        X
    M_SC_1SECC        X
    M_SC_2SECC        X
    M_SC_3SECC        X
    M_SC_4SECC        X
    M_SC_5SECC        X
    M_SC_6SECC        X
    M_SC_7SECC        X
    M_SC_8SECC        X
    M_SC_ACVIO        X
    M_SC_ALONL        X
    M_SC_ALUSE        X
    M_SC_AVAIL        X
    M_SC_BLENV        X
    M_SC_CLKDO        X
    M_SC_CMDTO        X
    M_SC_DATL         X
    M_SC_DLATE        X
    M_SC_DRDET        X
    M_SC_DTSTR        X
    M_SC_DUPUN        X
    M_SC_ECCFL        X
    M_SC_EDCER        X
    M_SC_EOT          X
    M_SC_EXUSE        X
    M_SC_FLINI        X
    M_SC_FRCER        X
    M_SC_HARDW        X
    M_SC_HDETO        X
    M_SC_IEDC         X
    M_SC_IGINI        X
    M_SC_INOPR        X
    M_SC_INREP        X
    M_SC_INVML        X
    M_SC_IQUAL        X
    M_SC_ISTAT        X
    M_SC_IVBFN        X
    M_SC_IVHDR        X
    M_SC_IVKLN        X
    M_SC_IVKTP        X
    M_SC_IVKVL        X
    M_SC_IVPTE        X
    M_SC_LACCB        X
    M_SC_LACIN        X
    M_SC_LACOU        X
    M_SC_LGAP         X
    M_SC_LOADE        X
    M_SC_MEMER        X
    M_SC_MISSK        X
    M_SC_MPAR         X
    M_SC_MULT         X
    M_SC_NO512        X
    M_SC_NOMEMB       X
    M_SC_NORBL        X
    M_SC_NORML        X
    M_SC_NOVOL        X
    M_SC_NXM          X
    M_SC_ODDBC        X
    M_SC_ODDTA        X
    M_SC_OVRUN        X
    M_SC_PRTCL        X
    M_SC_PULSE        X
    M_SC_RCTBD        X
    M_SC_ROVOL        X
    M_SC_RRCOL        X
    M_SC_RWRDY        X
    M_SC_RXRDY        X
    M_SC_SDIGN        X
    M_SC_SOFTW        X
    M_SC_STCON        X
    M_SC_STONL        X
    M_SC_SYNTO        X
    M_SC_UDSBL        X
    M_SC_UNECC        X
    M_SC_UNFMT        X
    M_SC_UNIGN        X
    M_SC_UNKNO        X
    M_SC_UREAD        X
    M_SC_XMSER        X
    M_ST_ABRTD        X
    M_ST_AVLBL        X
    M_ST_BBR          X
    M_ST_BOT          X
    M_ST_CNTLR        X
    M_ST_COMP         X
    M_ST_DATA         X
    M_ST_DIAG         X
    M_ST_DRIVE        X
    M_ST_FMTER        X
    M_ST_HSTBF        X
    M_ST_ICMD         X
    M_ST_INFO         X
    M_ST_IPARM        X
    M_ST_LED          X
    M_ST_LOADR        X
    M_ST_MASK         X
    M_ST_MFMTE        X
    M_ST_OFFLN        X
    M_ST_PLOST        X
    M_ST_RDTRN        X
    M_ST_SBBIT        X
    M_ST_SBCOD        X
    M_ST_SEX          X
    M_ST_SUCC         X
    M_ST_TAPEM        X
    M_ST_WRTPR        X
    M_TF_800          X
    M_TF_BLK          X
    M_TF_CODE         X
    M_TF_GCR          X
    M_TF_MASK         X
    M_TF_PE           X
    M_UF_CACFL        X
    M_UF_CACH         X
    M_UF_CMPRD        X
    M_UF_CMPWR        X
    M_UF_EXACC        X
    M_UF_LOADR        X
    M_UF_RMVBL        X
    M_UF_SCCHH        X
    M_UF_VARSP        X
    M_UF_VSMSU        X
    M_UF_WBKNV        X
    M_UF_WRTPD        X
    M_UF_WRTPH        X
    M_UF_WRTPS        X
    _MSCP_COMMON_H_   X

##### struct's

    mscp_header       X

       1: /*
       2:  *	1.3	(2.11BSD) 1999/2/25
       3:  *
       4:  * Definitions common to both MSCP and TMSCP were moved here from tmscp.h.
       5:  * Eventually the MSCP driver and include file will be modified to use these
       6:  * instead of their private versions.
       7: */
       8:
       9: #ifndef _MSCP_COMMON_H_
      10: #define _MSCP_COMMON_H_
      11:
      12: struct mscp_header {
      13:     u_short mscp_msglen;    /* length of MSCP packet */
      14:     char    mscp_credits;   /* low 4 bits: credits, high 4 bits: msgtype */
      15:     char    mscp_vcid;  /* virtual circuit id */
      16: };
      17:
      18: /*
      19:  * Control message opcodes
      20: */
      21: #define M_OP_ABORT  0x01    /* Abort command */
      22: #define M_OP_GTCMD  0x02    /* Get command status command */
      23: #define M_OP_GTUNT  0x03    /* Get unit status command */
      24: #define M_OP_STCON  0x04    /* Set controller characteristics command */
      25: #define M_OP_ACCNM  0x05    /* Access non volatile memory */
      26: #define M_OP_SEREX  0x07    /* Serious exceptin message */
      27: #define M_OP_AVAIL  0x08    /* Available command */
      28: #define M_OP_ONLIN  0x09    /* Online command */
      29: #define M_OP_STUNT  0x0a    /* Set unit characteristics command */
      30: #define M_OP_DTACP  0x0b    /* Determine access paths command */
      31: #define M_OP_ACCES  0x10    /* Access command */
      32: #define M_OP_CMPCD  0x11    /* Compare controller data command */
      33: #define M_OP_ERASE  0x12    /* Erase command */
      34: #define M_OP_FLUSH  0x13    /* Flush command */
      35: #define M_OP_ERGAP  0x16    /* Erase gap command */
      36: #define M_OP_COMP   0x20    /* Compare host data command */
      37: #define M_OP_READ   0x21    /* Read command */
      38: #define M_OP_WRITE  0x22    /* Write command */
      39: #define M_OP_WRITM  0x24    /* Write tape mark command */
      40: #define M_OP_REPOS  0x25    /* Reposition command */
      41:                 /* 0x28 thru 0x2f reserved */
      42: #define M_OP_AVATN  0x40    /* Available attention message */
      43: #define M_OP_DUPUN  0x41    /* Duplicate unit number attention message */
      44: #define M_OP_ACPTH  0x42    /* Access path attention message */
      45: #define M_OP_RWATN  0x43    /* Rewind attention message */
      46: #define M_OP_END    0x80    /* End message flag */
      47:
      48: /*
      49:  * Generic command modifiers
      50:  */
      51: #define M_MD_EXPRS  0x8000      /* Express request */
      52: #define M_MD_COMP   0x4000      /* Compare */
      53: #define M_MD_CLSEX  0x2000      /* Clear serious exception */
      54: #define M_MD_CDATL  0x1000      /* Clear cache data lost exception */
      55: #define M_MD_SCCHH  0x0800      /* Suppress caching (high speed) */
      56: #define M_MD_SCCHL  0x0400      /* Suppress caching (low speed) */
      57: #define M_MD_SECOR  0x0200      /* Suppress error correction */
      58: #define M_MD_SEREC  0x0100      /* Suppress error recovery */
      59: #define M_MD_WBKNV  0x0040      /* Write back non volative mem */
      60: #define M_MD_IMMED  0x0040      /* Immediate completion */
      61: #define M_MD_WBKVL  0x0020      /* Write back volatile mem */
      62: #define M_MD_UNLOD  0x0010      /* Unload */
      63: #define M_MD_REVRS  0x0008      /* reverse */
      64:
      65: /*
      66:  * Repositioning command modifiers
      67:  */
      68: #define M_MD_DLEOT  0x0080      /* delete LEOT */
      69: #define M_MD_OBJCT  0x0004      /* object count */
      70: #define M_MD_REWND  0x0002      /* rewind */
      71:
      72: /*
      73:  * Available command modifiers
      74: */
      75: #define M_MD_ALLCD  0x0002      /* All class drivers */
      76: #define M_MD_SPNDW  0x0001      /* Spin down */
      77:
      78: /*
      79:  * Flush command modifiers
      80: */
      81: #define M_MD_VOLTL  0x0002      /* Volatile memory only */
      82: #define M_MD_FLENU  0x0001      /* Flush entire unit's memory */
      83:
      84: /*
      85:  * Get unit status command modifiers
      86: */
      87: #define M_MD_NXUNT  0x0001      /* Get next unit */
      88:
      89: /*
      90:  * Online and set unit char command modifiers
      91: */
      92: #define M_MD_EXCAC  0x0020      /* Exclusive access */
      93: #define M_MD_STWRP  0x0004      /* Enable write protect */
      94:
      95: /*
      96:  * End message flags
      97:  */
      98: #define M_EF_ERLOG  0x0020  /* Error log generated */
      99: #define M_EF_SEREX  0x0010  /* Serious exception */
     100: #define M_EF_EOT    0x0008  /* End of tape encountered */
     101: #define M_EF_PLS    0x0004  /* Position lost */
     102: #define M_EF_DLS    0x0002  /* Cache data lost */
     103:
     104: /*
     105:  * Controller flags
     106:  */
     107: #define M_CF_ATTN   0x0080  /* Enable attention messages */
     108: #define M_CF_MISC   0x0040  /* Enable miscellaneous error log messages */
     109: #define M_CF_OTHER  0x0020  /* Enable other host's error log messages */
     110: #define M_CF_THIS   0x0010  /* Enable this host's error log messages */
     111:
     112:
     113: /*
     114:  * Unit flags
     115:  */
     116: #define M_UF_CACH   0x8000      /* Set if caching capable */
     117: #define M_UF_WRTPH  0x2000      /* Write protect (hardware) */
     118: #define M_UF_WRTPS  0x1000      /* Write protect (software or volume) */
     119: #define M_UF_SCCHH  0x0800      /* Suppress caching */
     120: #define M_UF_EXACC  0x0400      /* Exclusive access */
     121: #define M_UF_LOADR  0x0200      /* Tape loader present */
     122: #define M_UF_WRTPD  0x0100      /* Write protect (data safety) */
     123: #define M_UF_RMVBL  0x0080      /* Removable media */
     124: #define M_UF_WBKNV  0x0040      /* Write back (enables cache) */
     125: #define M_UF_VSMSU  0x0020      /* Variable speed mode suppression */
     126: #define M_UF_VARSP  0x0010      /* Variable speed unit */
     127: #define M_UF_CACFL  0x0004      /* Cache has been flushed */
     128: #define M_UF_CMPWR  0x0002      /* Compare writes */
     129: #define M_UF_CMPRD  0x0001      /* Compare reads */
     130:
     131: /*
     132:  * Status codes
     133:  */
     134: #define M_ST_MASK   0x1f        /* Status code mask */
     135: #define M_ST_SBCOD  0x20        /* sub code multiplier */
     136: #define M_ST_SBBIT  0x05        /* Sub code starting bit position */
     137:
     138: #define M_ST_SUCC   0x00        /* Success */
     139: #define M_ST_ICMD   0x01        /* Invalid command */
     140: #define M_ST_ABRTD  0x02        /* Command aborted */
     141: #define M_ST_OFFLN  0x03        /* Unit offline */
     142: #define M_ST_AVLBL  0x04        /* Unit available */
     143: #define M_ST_MFMTE  0x05        /* Media format error */
     144: #define M_ST_WRTPR  0x06        /* Write protected */
     145: #define M_ST_COMP   0x07        /* Compare error */
     146: #define M_ST_DATA   0x08        /* Data error */
     147: #define M_ST_HSTBF  0x09        /* Host buffer access error */
     148: #define M_ST_CNTLR  0x0a        /* Controller error */
     149: #define M_ST_DRIVE  0x0b        /* Drive error */
     150: #define M_ST_FMTER  0x0c        /* Formatter error */
     151: #define M_ST_BOT    0x0d        /* BOT encountered */
     152: #define M_ST_TAPEM  0x0e        /* Tape mark encountered */
     153: #define M_ST_RDTRN  0x10        /* Record data truncated */
     154: #define M_ST_PLOST  0x11        /* Position lost */
     155: #define M_ST_SEX    0x12        /* Serious exception */
     156: #define M_ST_LED    0x13        /* LEOT detected */
     157: #define M_ST_BBR    0x14        /* Bad block replacement complete */
     158: #define M_ST_IPARM  0x15        /* Invalid parameter */
     159: #define M_ST_INFO   0x16        /* Informational message, not error */
     160: #define M_ST_LOADR  0x17        /* Media loader error */
     161: #define M_ST_DIAG   0x1f        /* Message from internal diagnostic */
     162:
     163: /*
     164:  * Success subcodes
     165: */
     166: #define M_SC_NORML  0x0000      /* Normal */
     167: #define M_SC_SDIGN  0x0001      /* Spin down ignored */
     168: #define M_SC_STCON  0x0002      /* Still connected */
     169: #define M_SC_DUPUN  0x0004      /* Duplicate unit number */
     170: #define M_SC_ALONL  0x0008      /* Already online */
     171: #define M_SC_STONL  0x0010      /* Still online */
     172: #define M_SC_UNIGN  0x0011      /* Still online/Unload ignored (T) */
     173: #define M_SC_EOT    0x0020      /* EOT seen */
     174: #ifdef  notnow
     175: #define M_SC_INREP  0x0020      /* Incomplete replacement (D)
     176: #define	M_SC_IVRCT	0x0040		/* Invalid RCT */
     177: #endif
     178: #define M_SC_ROVOL  0x0080      /* Read only volume */
     179:
     180: /*
     181:  * Invalid command subcodes
     182: */
     183: #define M_SC_INVML  0x0000      /* Invalid message length */
     184:
     185: /*
     186:  * Data error subcodes
     187: */
     188: #define M_SC_LGAP   0x0000      /* Long gap seen */
     189: #define M_SC_UREAD  0x0007      /* Unrecoverable read err */
     190:
     191: /*
     192:  * Unit offline subcodes
     193: */
     194: #define M_SC_UNKNO  0x0000      /* Unit unknown */
     195: #define M_SC_NOVOL  0x0001      /* No volume (turned off) */
     196: #define M_SC_INOPR  0x0002      /* Unit is inoperative */
     197: #define M_SC_UDSBL  0x0008      /* Unit disabled */
     198: #define M_SC_EXUSE  0x0010      /* Unit in use elsewhere */
     199: #define M_SC_LOADE  0x0020      /* Loader error */
     200:
     201: /*
     202:  * Unit available subcodes
     203: */
     204: #define M_SC_AVAIL  0x0000      /* Success */
     205: #ifdef  notnow
     206: #define M_SC_NOMEMB 0x0001      /* No members */
     207: #define M_SC_ALUSE  0x0020      /* Online to another host */
     208: #endif
     209:
     210: /*
     211:  * Write protect subcodes
     212: */
     213: #define M_SC_DATL   0x0008      /* Data loss write protected */
     214: #define M_SC_SOFTW  0x0080      /* Software write protected */
     215: #define M_SC_HARDW  0x0100      /* Hardware write protected */
     216:
     217: /*
     218:  * Invalid parameter sub-codes
     219: */
     220: #ifdef  notnow
     221: #define M_SC_IVKLN  0x0001      /* Invalid key length */
     222: #define M_SC_IVKTP  0x0002      /* Invalid key type */
     223: #define M_SC_IVKVL  0x0003      /* Invalid key value */
     224:
     225: /*
     226:  * Media format error sub-codes
     227: */
     228: #define M_SC_NO512  0x0005  /* 576 byte sectors on a 512 byte drive	     */
     229: #define M_SC_UNFMT  0x0006  /* Disk unformatted or FCT corrupted	     */
     230: #define M_SC_RCTBD  0x0008  /* RCT corrupted			     */
     231: #define M_SC_NORBL  0x0009  /* No replacement block available	     */
     232: #define M_SC_MULT   0x000A  /* Multi-copy protection warning	     */
     233:
     234: /*
     235:  * Data error sub-codes
     236:  *
     237:  * sub-codes marked (*) may also appear in media format errors
     238: */
     239: #define M_SC_FRCER  0x0000  /* Forced error (*)			     */
     240: #define M_SC_IVHDR  0x0002  /* Invalid header (*)			     */
     241: #define M_SC_SYNTO  0x0003  /* Data synch timeout (*)		     */
     242: #define M_SC_ECCFL  0x0004  /* Correctable error in ECC field	     */
     243: #define M_SC_UNECC  0x0007  /* Uncorrectable ECC error (*)		     */
     244: #define M_SC_1SECC  0x0008  /* 1 symbol correctable ECC error	     */
     245: #define M_SC_2SECC  0x0009  /* 2 symbol correctable ECC error	     */
     246: #define M_SC_3SECC  0x000a  /* 3 symbol correctable ECC error	     */
     247: #define M_SC_4SECC  0x000b  /* 4 symbol correctable ECC error	     */
     248: #define M_SC_5SECC  0x000c  /* 5 symbol correctable ECC error	     */
     249: #define M_SC_6SECC  0x000d  /* 6 symbol correctable ECC error	     */
     250: #define M_SC_7SECC  0x000e  /* 7 symbol correctable ECC error	     */
     251: #define M_SC_8SECC  0x000f  /* 8 symbol correctable ECC error	     */
     252:
     253: /*
     254:  * Host buffer access error sub-codes
     255:  */
     256: #define M_SC_ODDTA  0x0001  /* Odd transfer address			     */
     257: #define M_SC_ODDBC  0x0002  /* Odd byte count			     */
     258: #define M_SC_NXM    0x0003  /* Non-existent memory			     */
     259: #define M_SC_MPAR   0x0004  /* Host memory parity error		     */
     260: #define M_SC_IVPTE  0x0005  /* Invalid Page Table Entry (UQSSP)	     */
     261: #define M_SC_IVBFN  0x0006  /* Invalid buffer name			     */
     262: #define M_SC_BLENV  0x0007  /* Buffer length violation		     */
     263: #define M_SC_ACVIO  0x0008  /* Access violation			     */
     264:
     265: /*
     266:  * Controller error sub-codes
     267:  */
     268: #define M_SC_HDETO  0x0000  /* Host detected controller timeout	     */
     269: #define M_SC_DLATE  0x0001  /* Data late (SERDES) error		     */
     270: #define M_SC_EDCER  0x0002  /* EDC error				     */
     271: #define M_SC_DTSTR  0x0003  /* Data structure error			     */
     272: #define M_SC_IEDC   0x0004  /* Internal EDC error			     */
     273: #define M_SC_LACIN  0x0005  /* LESI adaptor card input error	     */
     274: #define M_SC_LACOU  0x0006  /* LESI adaptor card output error	     */
     275: #define M_SC_LACCB  0x0007  /* LESI adaptor card cable not in place	     */
     276: #define M_SC_OVRUN  0x0008  /* Controller overrun or underrun	     */
     277: #define M_SC_MEMER  0x0009  /* Controller memory error		     */
     278:
     279: /*
     280:  * Drive error sub-codes
     281:  */
     282: #define M_SC_CMDTO  0x0001  /* SDI command timed out		     */
     283: #define M_SC_XMSER  0x0002  /* Controller-detected transmission error    */
     284: #define M_SC_MISSK  0x0003  /* Positioner error (mis-seek)		     */
     285: #define M_SC_RWRDY  0x0004  /* Lost read/write ready between transfers   */
     286: #define M_SC_CLKDO  0x0005  /* Drive clock dropout			     */
     287: #define M_SC_RXRDY  0x0006  /* Lost receiver ready between sectors	     */
     288: #define M_SC_DRDET  0x0007  /* Drive-detected error			     */
     289: #define M_SC_PULSE  0x0008  /* Ctlr-detected pulse/state parity error    */
     290: #define M_SC_PRTCL  0x000a  /* Controller detected protocol error	     */
     291: #define M_SC_FLINI  0x000b  /* Drive failed initialization		     */
     292: #define M_SC_IGINI  0x000c  /* Drive ignored initialization		     */
     293: #define M_SC_RRCOL  0x000d  /* Receiver ready collision		     */
     294:
     295: /*
     296:  * Informational event only subcodes
     297: */
     298: #define M_SC_IQUAL  0x0001  /* Media Quality Log			     */
     299: #define M_SC_ISTAT  0x0002  /* Unload, spin down statistics		     */
     300:
     301: #endif /* notnow */
     302:
     303: /*
     304:  * Error Log message format codes.  Many of these are ifdef'd out so as to
     305:  * not overload the C preprocessor.  The symbols themselves are not used by
     306:  * the kernel but are very handy to have when deciphering datagrams logged
     307:  * to the console or the messages file.
     308:  */
     309: #define M_FM_CNTERR 0   /* Controller error */
     310: #define M_FM_BUSADDR    1   /* Host memory access error */
     311: #define M_FM_DISKTRN    2   /* Disk transfer error (D) */
     312: #define M_FM_SDI    3   /* SDI errors */
     313: #define M_FM_SMLDSK 4   /* Small disk errors */
     314: #define M_FM_TAPETRN    5   /* Tape transfer error (T) */
     315: #define M_FM_STIERR 6   /* STI communication or command failure (T) */
     316: #define M_FM_STIDEL 7   /* STI drive error log (T) */
     317: #define M_FM_STIFEL 0x8 /* STI formatter error log (T) */
     318: #ifdef  notnow
     319: #define M_FM_REPLACE    0x9 /* Bad block replacement attempt */
     320: #define M_FM_LDRERR 0xa /* Media loader errors */
     321: #define M_FM_IBMSENSE   0xb /* Sense data error log (T) */
     322: #endif
     323:
     324: /*
     325:  * Error Log message flags
     326:  */
     327: #define M_LF_SUCC   0x80    /* Operation successful */
     328: #define M_LF_CONT   0x40    /* Operation continuing */
     329: #ifdef  notnow
     330: #define M_LF_BBR    0x20    /* Bad block replacement attempt */
     331: #define M_LF_RPLER  0x10    /* Error during replacement */
     332: #define M_LF_INFO   0x02    /* Informational */
     333: #endif
     334: #define M_LF_SQNRS  0x01    /* Sequence number reset */
     335:
     336: /*
     337:  * Tape Format Flag Values
     338:  */
     339: #define M_TF_MASK   0x00ff  /* Density bits */
     340: #define M_TF_CODE   0x0100  /* Format code multiplier */
     341: #define M_TF_800    0x01    /* NRZI 800 bpi */
     342: #define M_TF_PE     0x02    /* Phase Encoded 1600 bpi */
     343: #define M_TF_GCR    0x04    /* Group Code Recording 6250 bpi */
     344: #define M_TF_BLK    0x08    /* Cartridge Block Mode */
     345:
     346: #ifdef  notnow
     347: /*
     348:  * Define a few of the common controller and drive types for reference but
     349:  * don't actually force the preprocessor to handle even more defines.
     350: */
     351: #define M_CM_UDA50  2
     352: #define M_CM_TU81   5
     353: #define M_CM_UDA50A 6
     354: #define M_CM_TK50   9
     355: #define M_CM_TQK50  9
     356: #define M_CM_TK70   14
     357: #define M_CM_TQK70  14
     358: #define M_CM_RQDX3  19
     359: #endif
     360:
     361: #endif	/* _MSCP_COMMON_H_ */

#### Defined struct's

mscp_header defined in line 12; used 12 times

- in /usr/src/sys/pdp/mscp.h line 31(2), 165(2)
- in /usr/src/sys/pdp/tmscp.h line 64(2), 183(2)
- in /usr/src/sys/pdpuba/ra.c line 947(2)
- in /usr/src/sys/pdpuba/tmscp.c line 879(2)

#### Defined macros

M_CF_ATTN defined in line 107; used 2 times

- in /usr/src/sys/pdpuba/ra.c line 866
- in /usr/src/sys/pdpuba/tmscp.c line 532

M_CF_MISC defined in line 108; used 2 times

- in /usr/src/sys/pdpuba/ra.c line 866
- in /usr/src/sys/pdpuba/tmscp.c line 532

M_CF_OTHER defined in line 109; never used
M_CF_THIS defined in line 110; used 2 times

- in /usr/src/sys/pdpuba/ra.c line 866
- in /usr/src/sys/pdpuba/tmscp.c line 532

M_CM_RQDX3 defined in line 358; never used
M_CM_TK50 defined in line 354; never used
M_CM_TK70 defined in line 356; never used
M_CM_TQK50 defined in line 355; never used
M_CM_TQK70 defined in line 357; never used
M_CM_TU81 defined in line 352; never used
M_CM_UDA50 defined in line 351; never used
M_CM_UDA50A defined in line 353; never used
M_EF_DLS defined in line 102; used 1 times

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

M_EF_EOT defined in line 100; used 2 times

- in /usr/src/sys/pdpuba/tmscp.c line 1870, 1936

M_EF_ERLOG defined in line 98; never used
M_EF_PLS defined in line 101; used 1 times

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

M_EF_SEREX defined in line 99; never used
M_FM_BUSADDR defined in line 310; never used
M_FM_CNTERR defined in line 309; never used
M_FM_DISKTRN defined in line 311; never used
M_FM_IBMSENSE defined in line 321; never used
M_FM_LDRERR defined in line 320; never used
M_FM_REPLACE defined in line 319; never used
M_FM_SDI defined in line 312; never used
M_FM_SMLDSK defined in line 313; never used
M_FM_STIDEL defined in line 316; never used
M_FM_STIERR defined in line 315; never used
M_FM_STIFEL defined in line 317; never used
M_FM_TAPETRN defined in line 314; never used
M_LF_BBR defined in line 330; never used
M_LF_CONT defined in line 328; never used
M_LF_INFO defined in line 332; never used
M_LF_RPLER defined in line 331; never used
M_LF_SQNRS defined in line 334; never used
M_LF_SUCC defined in line 327; never used
M_MD_ALLCD defined in line 75; never used
M_MD_CDATL defined in line 54; used 2 times

- in /usr/src/sys/pdpuba/tmscp.c line 1608, 1640

M_MD_CLSEX defined in line 53; used 5 times

- in /usr/src/sys/pdpstand/tmscp.c line 181
- in /usr/src/sys/pdpuba/tmscp.c line 1126, 1552, 1603, 1624

M_MD_COMP defined in line 52; never used
M_MD_DLEOT defined in line 68; never used
M_MD_EXCAC defined in line 92; used 1 times

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

M_MD_EXPRS defined in line 51; never used
M_MD_FLENU defined in line 82; never used
M_MD_IMMED defined in line 60; used 1 times

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

M_MD_NXUNT defined in line 87; never used
M_MD_OBJCT defined in line 69; used 5 times

- in /usr/src/sys/pdpstand/tmscp.c line 316
- in /usr/src/sys/pdpuba/tmscp.c line 1062-1065(2), 1098, 1555

M_MD_REVRS defined in line 63; used 3 times

- in /usr/src/sys/pdpstand/tmscp.c line 307
- in /usr/src/sys/pdpuba/tmscp.c line 1059, 1065

M_MD_REWND defined in line 70; used 3 times

- in /usr/src/sys/pdpstand/tmscp.c line 181
- in /usr/src/sys/pdpuba/tmscp.c line 1069-1071(2)

M_MD_SCCHH defined in line 55; never used
M_MD_SCCHL defined in line 56; never used
M_MD_SECOR defined in line 57; never used
M_MD_SEREC defined in line 58; never used
M_MD_SPNDW defined in line 76; never used
M_MD_STWRP defined in line 93; never used
M_MD_UNLOD defined in line 62; used 1 times

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

M_MD_VOLTL defined in line 81; never used
M_MD_WBKNV defined in line 59; never used
M_MD_WBKVL defined in line 61; never used
M_OP_ABORT defined in line 21; never used
M_OP_ACCES defined in line 31; never used
M_OP_ACCNM defined in line 25; never used
M_OP_ACPTH defined in line 44; never used
M_OP_AVAIL defined in line 27; used 1 times

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

M_OP_AVATN defined in line 42; never used
M_OP_CMPCD defined in line 32; never used
M_OP_COMP defined in line 36; never used
M_OP_DTACP defined in line 30; never used
M_OP_DUPUN defined in line 43; never used
M_OP_END defined in line 46; used 9 times

- in /usr/src/sys/pdpstand/ra.c line 173
- in /usr/src/sys/pdpstand/tmscp.c line 247
- in /usr/src/sys/pdpuba/ra.c line 1053-1054(2), 1386
- in /usr/src/sys/pdpuba/tmscp.c line 1218, 1810, 1861
- in /usr/src/sys/pdpuba/tmscpdump.c line 150

M_OP_ERASE defined in line 33; never used
M_OP_ERGAP defined in line 35; never used
M_OP_FLUSH defined in line 34; used 1 times

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

M_OP_GTCMD defined in line 22; never used
M_OP_GTUNT defined in line 23; used 3 times

- in /usr/src/sys/pdpstand/ra.c line 254
- in /usr/src/sys/pdpuba/ra.c line 1156
- in /usr/src/sys/pdpuba/tmscp.c line 1079

M_OP_ONLIN defined in line 28; used 8 times

- in /usr/src/sys/pdpstand/ra.c line 123
- in /usr/src/sys/pdpstand/tmscp.c line 147
- in /usr/src/sys/pdpuba/ra.c line 413, 1068, 1315
- in /usr/src/sys/pdpuba/tmscp.c line 692, 1019
- in /usr/src/sys/pdpuba/tmscpdump.c line 86

M_OP_READ defined in line 37; used 6 times

- in /usr/src/sys/pdpstand/ra.c line 209
- in /usr/src/sys/pdpstand/tmscp.c line 285
- in /usr/src/sys/pdpuba/ra.c line 762, 1106
- in /usr/src/sys/pdpuba/tmscp.c line 1114, 1122

M_OP_REPOS defined in line 40; used 6 times

- in /usr/src/sys/pdpstand/tmscp.c line 163, 181, 316
- in /usr/src/sys/pdpuba/tmscp.c line 1108, 1551, 1575

M_OP_RWATN defined in line 45; never used
M_OP_SEREX defined in line 26; never used
M_OP_STCON defined in line 24; used 8 times

- in /usr/src/sys/pdpstand/ra.c line 94
- in /usr/src/sys/pdpstand/tmscp.c line 134
- in /usr/src/sys/pdpuba/ra.c line 865, 1054, 1311
- in /usr/src/sys/pdpuba/tmscp.c line 540, 1224
- in /usr/src/sys/pdpuba/tmscpdump.c line 82

M_OP_STUNT defined in line 29; used 1 times

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

M_OP_WRITE defined in line 38; used 9 times

- in /usr/src/sys/pdpstand/ra.c line 209
- in /usr/src/sys/pdpstand/tmscp.c line 285
- in /usr/src/sys/pdpuba/ra.c line 762, 1107, 1347
- in /usr/src/sys/pdpuba/tmscp.c line 1114, 1120, 1810
- in /usr/src/sys/pdpuba/tmscpdump.c line 108

M_OP_WRITM defined in line 39; used 1 times

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

M_SC_1SECC defined in line 244; never used
M_SC_2SECC defined in line 245; never used
M_SC_3SECC defined in line 246; never used
M_SC_4SECC defined in line 247; never used
M_SC_5SECC defined in line 248; never used
M_SC_6SECC defined in line 249; never used
M_SC_7SECC defined in line 250; never used
M_SC_8SECC defined in line 251; never used
M_SC_ACVIO defined in line 263; never used
M_SC_ALONL defined in line 170; never used
M_SC_ALUSE defined in line 207; never used
M_SC_AVAIL defined in line 204; never used
M_SC_BLENV defined in line 262; never used
M_SC_CLKDO defined in line 286; never used
M_SC_CMDTO defined in line 282; never used
M_SC_DATL defined in line 213; never used
M_SC_DLATE defined in line 269; never used
M_SC_DRDET defined in line 288; never used
M_SC_DTSTR defined in line 271; never used
M_SC_DUPUN defined in line 169; never used
M_SC_ECCFL defined in line 242; never used
M_SC_EDCER defined in line 270; never used
M_SC_EOT defined in line 173; never used
M_SC_EXUSE defined in line 198; never used
M_SC_FLINI defined in line 291; never used
M_SC_FRCER defined in line 239; never used
M_SC_HARDW defined in line 215; never used
M_SC_HDETO defined in line 268; never used
M_SC_IEDC defined in line 272; never used
M_SC_IGINI defined in line 292; never used
M_SC_INOPR defined in line 196; never used
M_SC_INREP defined in line 175; never used
M_SC_INVML defined in line 183; never used
M_SC_IQUAL defined in line 298; never used
M_SC_ISTAT defined in line 299; never used
M_SC_IVBFN defined in line 261; never used
M_SC_IVHDR defined in line 240; never used
M_SC_IVKLN defined in line 221; never used
M_SC_IVKTP defined in line 222; never used
M_SC_IVKVL defined in line 223; never used
M_SC_IVPTE defined in line 260; never used
M_SC_LACCB defined in line 275; never used
M_SC_LACIN defined in line 273; never used
M_SC_LACOU defined in line 274; never used
M_SC_LGAP defined in line 188; never used
M_SC_LOADE defined in line 199; never used
M_SC_MEMER defined in line 277; never used
M_SC_MISSK defined in line 284; never used
M_SC_MPAR defined in line 259; never used
M_SC_MULT defined in line 232; never used
M_SC_NO512 defined in line 228; never used
M_SC_NOMEMB defined in line 206; never used
M_SC_NORBL defined in line 231; never used
M_SC_NORML defined in line 166; never used
M_SC_NOVOL defined in line 195; never used
M_SC_NXM defined in line 258; never used
M_SC_ODDBC defined in line 257; never used
M_SC_ODDTA defined in line 256; never used
M_SC_OVRUN defined in line 276; never used
M_SC_PRTCL defined in line 290; never used
M_SC_PULSE defined in line 289; never used
M_SC_RCTBD defined in line 230; never used
M_SC_ROVOL defined in line 178; never used
M_SC_RRCOL defined in line 293; never used
M_SC_RWRDY defined in line 285; never used
M_SC_RXRDY defined in line 287; never used
M_SC_SDIGN defined in line 167; never used
M_SC_SOFTW defined in line 214; never used
M_SC_STCON defined in line 168; never used
M_SC_STONL defined in line 171; never used
M_SC_SYNTO defined in line 241; never used
M_SC_UDSBL defined in line 197; never used
M_SC_UNECC defined in line 243; never used
M_SC_UNFMT defined in line 229; never used
M_SC_UNIGN defined in line 172; never used
M_SC_UNKNO defined in line 194; never used
M_SC_UREAD defined in line 189; never used
M_SC_XMSER defined in line 283; never used
M_ST_ABRTD defined in line 140; never used
M_ST_AVLBL defined in line 142; used 1 times

- in /usr/src/sys/pdpuba/ra.c line 1127

M_ST_BBR defined in line 157; never used
M_ST_BOT defined in line 151; never used
M_ST_CNTLR defined in line 148; never used
M_ST_COMP defined in line 145; never used
M_ST_DATA defined in line 146; never used
M_ST_DIAG defined in line 161; never used
M_ST_DRIVE defined in line 149; never used
M_ST_FMTER defined in line 150; never used
M_ST_HSTBF defined in line 147; never used
M_ST_ICMD defined in line 139; never used
M_ST_INFO defined in line 159; never used
M_ST_IPARM defined in line 158; never used
M_ST_LED defined in line 156; never used
M_ST_LOADR defined in line 160; never used
M_ST_MASK defined in line 134; used 15 times

- in /usr/src/sys/pdpstand/ra.c line 179
- in /usr/src/sys/pdpstand/tmscp.c line 248, 254
- in /usr/src/sys/pdpuba/ra.c line 1048, 1387
- in /usr/src/sys/pdpuba/tmscp.c line 1215-1217(2), 1657, 1686, 1710, 1743, 1760, 1804, 1858
- in /usr/src/sys/pdpuba/tmscpdump.c line 151

M_ST_MFMTE defined in line 143; never used
M_ST_OFFLN defined in line 141; used 1 times

- in /usr/src/sys/pdpuba/ra.c line 1127

M_ST_PLOST defined in line 154; never used
M_ST_RDTRN defined in line 153; never used
M_ST_SBBIT defined in line 136; used 2 times

- in /usr/src/sys/pdpuba/ra.c line 1052
- in /usr/src/sys/pdpuba/tmscp.c line 1859

M_ST_SBCOD defined in line 135; never used
M_ST_SEX defined in line 155; never used
M_ST_SUCC defined in line 138; used 26 times

- in /usr/src/sys/pdpstand/ra.c line 179
- in /usr/src/sys/pdpstand/tmscp.c line 248
- in /usr/src/sys/pdpuba/ra.c line 1049, 1055, 1073, 1148, 1387
- in /usr/src/sys/pdpuba/tmscp.c line 772, 1226, 1243, 1422, 1459, 1490-1499(5), 1660, 1690, 1712, 1732, 1745, 1764, 1808, 1864
- in /usr/src/sys/pdpuba/tmscpdump.c line 151

M_ST_TAPEM defined in line 152; used 2 times

- in /usr/src/sys/pdpstand/tmscp.c line 254
- in /usr/src/sys/pdpuba/tmscp.c line 1864

M_ST_WRTPR defined in line 144; used 1 times

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

M_TF_800 defined in line 341; used 12 times

- in /usr/src/sys/pdp/tmscp.h line 263
- in /usr/src/sys/pdpuba/tmscp.c line 278-281(11)

M_TF_BLK defined in line 344; never used
M_TF_CODE defined in line 340; never used
M_TF_GCR defined in line 343; used 8 times

- in /usr/src/sys/pdp/tmscp.h line 263
- in /usr/src/sys/pdpuba/tmscp.c line 278-281(7)

M_TF_MASK defined in line 339; used 1 times

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

M_TF_PE defined in line 342; used 11 times

- in /usr/src/sys/pdp/tmscp.h line 263
- in /usr/src/sys/pdpuba/tmscp.c line 278-281(10)

M_UF_CACFL defined in line 127; never used
M_UF_CACH defined in line 116; used 1 times

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

M_UF_CMPRD defined in line 129; never used
M_UF_CMPWR defined in line 128; never used
M_UF_EXACC defined in line 120; never used
M_UF_LOADR defined in line 121; never used
M_UF_RMVBL defined in line 123; never used
M_UF_SCCHH defined in line 119; used 4 times

- in /usr/src/sys/pdpuba/tmscp.c line 1086, 1092, 1781-1786(2)

M_UF_VARSP defined in line 126; never used
M_UF_VSMSU defined in line 125; never used
M_UF_WBKNV defined in line 124; used 4 times

- in /usr/src/sys/pdpuba/tmscp.c line 1085, 1091, 1780-1785(2)

M_UF_WRTPD defined in line 122; used 1 times

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

M_UF_WRTPH defined in line 117; used 1 times

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

M_UF_WRTPS defined in line 118; used 1 times

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

_MSCP_COMMON_H_ defined in line 10; used 1 times

- in line 9

#### Usage of this include

mscp_common.h used 2 times

- in /usr/src/sys/pdp/mscp.h line 24
- in /usr/src/sys/pdp/tmscp.h line 54

Last modified: 1999-02-26 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 2668 |