📄 mscp_msg.h
字号:
#define MSCP_SC_STONL 0x0010 /* Still online */#define MSCP_SC_UNIGN 0x0011 /* Still online/Unload ignored (T) */#define MSCP_SC_EOT 0x0020 /* EOT encountered (T) */#define MSCP_SC_INREP 0x0020 /* Incomplete replacement (D) */#define MSCP_SC_IVRCT 0x0040 /* Invalid RCT */#define MSCP_SC_ROVOL 0x0080 /* Read-only volume format *//* Invalid command sub-code values */#define MSCP_SC_INVML 0x0000 /* Invalid message length *//* Command aborted sub-code values * Subcode values are not used for this status. *//* Data error sub-code values */#define MSCP_SC_LGAP 0x0000 /* Long Gap Encountered */#define MSCP_SC_UREAD 0x0007 /* Unrecoverable read error *//* Unit-offline sub-code values */#define MSCP_SC_UNKNO 0x0000 /* Unit unknown or online to another ctlr */#define MSCP_SC_NOVOL 0x0001 /* No volume mounted/drive switched off */#define MSCP_SC_INOPR 0x0002 /* Unit is inoperative */#define MSCP_SC_UDSBL 0x0008 /* Unit is disabled by field service */#define MSCP_SC_EXUSE 0x0010 /* Unit is seized by another host */#define MSCP_SC_LOADE 0x0020 /* Loader cycle error *//* Unit-available sub-code values */#define MSCP_SC_AVAIL 0x0000 /* Implies success to set exclusive access */#define MSCP_SC_NOMEMB 0x0001 /* No members */#define MSCP_SC_ALUSE 0x0020 /* Can't seize unit, online to other host *//* Write-protected sub-code values (MSCP specification table B-2) */#define MSCP_SC_DATL 0x0008 /* Unit is data loss write protected */#define MSCP_SC_SOFTW 0x0080 /* Unit is software write protected */#define MSCP_SC_HARDW 0x0100 /* Unit is hardware write protected *//* Invalid parameter sub-code values (MSCP specification table B-2) */#define MSCP_SC_IVKLN 0x0001 /* Invalid key length */#define MSCP_SC_IVKTP 0x0002 /* Invalid key type */#define MSCP_SC_IVKVL 0x0003 /* Invalid key value *//* Compare error sub-code values (MSCP specification table B-2) * Sub-codes are not used for this status. */ /* Message from an internal diagnostic sub-code values (MSCP specification * table B-2). Sub-codes are not used for this status. *//* Record data truncated sub-code values (MSCP specification table B-2) * Sub-codes are not used for this status. *//* Access denied sub-code values (MSCP specification table B-2) * Sub-codes are not used for this status. *//* Media format error sub-code values (MSCP specification table B-3) *//* In addition to the following codes, some data error sub-codes (those * marked with "(*)") may also appear as media format error sub-codes. */#define MSCP_SC_NO512 0x0005 /* 576 byte sectors on a 512 byte drive */#define MSCP_SC_UNFMT 0x0006 /* Disk unformatted or FCT corrupted */#define MSCP_SC_RCTBD 0x0008 /* RCT corrupted */#define MSCP_SC_NORBL 0x0009 /* No replacement block available */#define MSCP_SC_MULT 0x000A /* Multi-copy protection warning *//* Data error sub-code values (MSCP specification table B-5) *//* Those sub-codes marked (*) may also appear in media format errors */#define MSCP_SC_FRCER 0x0000 /* Forced error (*) */#define MSCP_SC_IVHDR 0x0002 /* Invalid header (*) */#define MSCP_SC_SYNTO 0x0003 /* Data synch timeout (*) */#define MSCP_SC_ECCFL 0x0004 /* Correctable error in ECC field */#define MSCP_SC_UNECC 0x0007 /* Uncorrectable ECC error (*) */#define MSCP_SC_1SECC 0x0008 /* 1 symbol correctable ECC error */#define MSCP_SC_2SECC 0x0009 /* 2 symbol correctable ECC error */#define MSCP_SC_3SECC 0x000a /* 3 symbol correctable ECC error */#define MSCP_SC_4SECC 0x000b /* 4 symbol correctable ECC error */#define MSCP_SC_5SECC 0x000c /* 5 symbol correctable ECC error */#define MSCP_SC_6SECC 0x000d /* 6 symbol correctable ECC error */#define MSCP_SC_7SECC 0x000e /* 7 symbol correctable ECC error */#define MSCP_SC_8SECC 0x000f /* 8 symbol correctable ECC error *//* Host buffer access error sub-code values (MSCP specification table B-6) */#define MSCP_SC_ODDTA 0x0001 /* Odd transfer address */#define MSCP_SC_ODDBC 0x0002 /* Odd byte count */#define MSCP_SC_NXM 0x0003 /* Non-existent memory */#define MSCP_SC_MPAR 0x0004 /* Host memory parity error */#define MSCP_SC_IVPTE 0x0005 /* Invalid Page Table Entry (UQSSP) */#define MSCP_SC_IVBFN 0x0006 /* Invalid buffer name */#define MSCP_SC_BLENV 0x0007 /* Buffer length violation */#define MSCP_SC_ACVIO 0x0008 /* Access violation *//* Controller error sub-code values (MSCP specification table B-7) */#define MSCP_SC_HDETO 0x0000 /* Host detected controller timeout */#define MSCP_SC_DLATE 0x0001 /* Data late (SERDES) error */#define MSCP_SC_EDCER 0x0002 /* EDC error */#define MSCP_SC_DTSTR 0x0003 /* Data structure error */#define MSCP_SC_IEDC 0x0004 /* Internal EDC error */#define MSCP_SC_LACIN 0x0005 /* LESI adaptor card input error */#define MSCP_SC_LACOU 0x0006 /* LESI adaptor card output error */#define MSCP_SC_LACCB 0x0007 /* LESI adaptor card cable not in place */#define MSCP_SC_OVRUN 0x0008 /* Controller overrun or underrun */#define MSCP_SC_MEMER 0x0009 /* Controller memory error *//* Drive error sub-code values (MSCP specification table B-8) */#define MSCP_SC_CMDTO 0x0001 /* SDI command timed out */#define MSCP_SC_XMSER 0x0002 /* Controller-detected transmission error */#define MSCP_SC_MISSK 0x0003 /* Positioner error (mis-seek) */#define MSCP_SC_RWRDY 0x0004 /* Lost read/write ready between transfers */#define MSCP_SC_CLKDO 0x0005 /* Drive clock dropout */#define MSCP_SC_RXRDY 0x0006 /* Lost receiver ready between sectors */#define MSCP_SC_DRDET 0x0007 /* Drive-detected error */#define MSCP_SC_PULSE 0x0008 /* Ctlr-detected pulse/state parity error */#define MSCP_SC_PRTCL 0x000a /* Controller detected protocol error */#define MSCP_SC_FLINI 0x000b /* Drive failed initialization */#define MSCP_SC_IGINI 0x000c /* Drive ignored initialization */#define MSCP_SC_RRCOL 0x000d /* Receiver ready collision *//* Bad block replacement sub-code values (MSCP specification table B-9) */#define MSCP_SC_BBROK 0x0000 /* Bad block successfully replaced */#define MSCP_SC_NOTRP 0x0001 /* Block verified OK, not replaced */#define MSCP_SC_RPLFL 0x0002 /* REPLACE command failure */#define MSCP_SC_ICRCT 0x0003 /* Inconsistent RCT */#define MSCP_SC_RPLACC 0x0004 /* Drive access failure */#define MSCP_SC_RCTFL 0x0005 /* RCT full */#define MSCP_SC_RCTRC 0x0006 /* RCT recursion failure *//* Media loader error sub-code values (MSCP specification table B-10) */#define MSCP_SC_LTIMO 0x0001 /* Loader command time out */#define MSCP_SC_LTERR 0x0002 /* Loader controller transmission error */#define MSCP_SC_LPERR 0x0003 /* Loader controller protocol error */#define MSCP_SC_LDERR 0x0004 /* Loader error */#define MSCP_SC_LDONL 0x0005 /* Drive online */#define MSCP_SC_INVSRC 0x0006 /* Invalid SOURCE slot ID */#define MSCP_SC_INVDST 0x0007 /* Invalid DESTINATION slot ID */#define MSCP_SC_SRCEMP 0x0008 /* SOURCE slot is empty */#define MSCP_SC_DSTFUL 0x0009 /* DESTINATION slot is full */#define MSCP_SC_LDMOT 0x000a /* Loader motion error */#define MSCP_SC_LDDRIE 0x000b /* Loader/drive interface error */#define MSCP_SC_LDSLIE 0x000c /* Loader/slot interface error */#define MSCP_SC_LDMECH 0x000d /* Loader mechanical error */#define MSCP_SC_LDHARD 0x000e /* Loader hardware error */#define MSCP_SC_LDCTLR 0x000f /* Loader controller error */#define MSCP_SC_LDUNRE 0x0010 /* Unrecognized loader subcommand */#define MSCP_SC_LDREXC 0x0011 /* Exception - recoverable via RESET */#define MSCP_SC_LDUEXC 0x0012 /* Exception - unrecoverable *//* Informational event only subcode values (MSCP specification table B-11) */#define MSCP_SC_IQUAL 0x0001 /* Media Quality Log */#define MSCP_SC_ISTAT 0x0002 /* Unload, spin down statistics *//* TMSCP tape format bitflags (from TMSCP specification Table C-1) */#define MSCP_TF_MASK 0x00ff /* Bitfield mask */#define MSCP_TF_CODE 0x0100 /* Format Code multiplier */#define MSCP_TC_OLD 0x0000 /* Backwards compatible */#define MSCP_TC_9TRACK 0x0100 /* New 9 track devices */#define MSCP_TC_CTP 0x0200 /* TK50 compatible cartridges */#define MSCP_TC_3480 0x0300 /* IBM 3480 compatible cartridge */#define MSCP_TC_W1 0x0400 /* RV20 compatible cartridges *//* TMSCP tape format flags (from TMSCP specification Table C-2) */#define MSCP_TF_NORML 0x0001 /* Normal (low) Density */#define MSCP_TF_800 0x0001 /* NRZI 800 bpi */#define MSCP_TF_PE 0x0002 /* Phase Encoded 1600 bpi */#define MSCP_TF_BLKHD 0x0002 /* High Density */#define MSCP_TF_ENHD 0x0002 /* Enhanced Density */#define MSCP_TF_GCR 0x0004 /* Group Code Recording 6250 bpi */#define MSCP_TF_NDCP 0x0004 /* Normal density compacted */#define MSCP_TF_BLOCK 0x0008 /* Cartridge Block Mode */#define MSCP_TF_EDCP 0x0008 /* Enhanced density compacted *//**//* Controller and Unit Identifier "Class" Values * (from MSCP specification Table C-1) */#define MSCP_CL_CNTRL 1 /* Mass storage controller */#define MSCP_CL_DISK 2 /* DEC STD 166 disk class device */#define MSCP_CL_TAPE 3 /* Tape class device */#define MSCP_CL_D144 4 /* DEC STD 144 disk class device */#define MSCP_CL_LOADER 5 /* Loader Class Devices *//* Controller "Model" values (from MSCP specification Table C-2) * * (TODO Put a few comments back in here.) */#define MSCP_CM_HSC50 1#define MSCP_CM_UDA50 2#define MSCP_CM_RC25 3#define MSCP_CM_VMS 4#define MSCP_CM_TU81 5#define MSCP_CM_UDA50A 6#define MSCP_CM_RDRX 7#define MSCP_CM_TOPS 8#define MSCP_CM_TK50 9#define MSCP_CM_TQK50 9#define MSCP_CM_RUX50 10#define MSCP_CM_AIO 12#define MSCP_CM_KFBTA 12#define MSCP_CM_KDA50 13#define MSCP_CM_TK70 14#define MSCP_CM_TQK70 14#define MSCP_CM_RV20 15#define MSCP_CM_RRD50 16#define MSCP_CM_KRQ50 16#define MSCP_CM_KDB50 18#define MSCP_CM_RQDX3 19#define MSCP_CM_RQDX4 20#define MSCP_CM_SII_DISK 21#define MSCP_CM_SII_TAPE 22#define MSCP_CM_SII_DISK_TAPE 23#define MSCP_CM_SII_OTHER 24#define MSCP_CM_TUK50 25#define MSCP_CM_KRU50 26#define MSCP_CM_KDM70 27#define MSCP_CM_TQL70 28#define MSCP_CM_TM32 29#define MSCP_CM_HSC70 32#define MSCP_CM_HSC40 33#define MSCP_CM_HSC60 34#define MSCP_CM_HSC90 35#define MSCP_CM_DEBNT 65#define MSCP_CM_TBK70 66#define MSCP_CM_TBK7L 68#define MSCP_CM_RF30 96#define MSCP_CM_RF71 97#define MSCP_CM_TF85 98#define MSCP_CM_TF70 99#define MSCP_CM_RF31 100#define MSCP_CM_RF72 101#define MSCP_CM_RF73 102#define MSCP_CM_TF70L 103#define MSCP_CM_ULTRIX32 248#define MSCP_CM_SVS 249#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -