/********************************************************************************************************************************/ /* Created: 9-Mar-2021 22:28:06 by OpenVMS SDL EV3-3 */ /* Source: 09-MAR-2021 22:28:01 $1$DGA8085:[STARLET_H.SRC]STARDEFMP.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $MTDEF ***/ #ifndef __MTDEF_LOADED #define __MTDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /*+ */ /* MAGTAPE STATUS BITS */ /*- */ #define MT$M_SEREXCP 0x1 #define MT$M_ENAUTOPACK 0x2 #define MT$M_ENSEREXCP 0x4 #define MT$M_PARITY 0x8 #define MT$M_FORMAT 0xF0 #define MT$M_DENSITY 0x1F00 #define MT$M_FASTSKIP_USED 0x2000 #define MT$M_LOGSOFT 0x4000 #define MT$M_LOGSOFTOG 0x8000 #define MT$M_BOT 0x10000 #define MT$M_EOF 0x20000 #define MT$M_EOT 0x40000 #define MT$M_HWL 0x80000 #define MT$M_LOST 0x100000 #define MT$M_SUP_NRZI 0x200000 #define MT$M_SUP_PE 0x400000 #define MT$M_SUP_GCR 0x800000 #define MT$M_SPEED 0xFF000000 #define MT$K_DEFAULT 0 /* DEFAULT FORMAT */ #define MT$K_NORMAL11 12 /* PDP-11 NORMAL */ #define MT$K_CORDMP11 13 /* PDP-11 CORE DUMP */ #define MT$K_NORMAL15 14 /* PDP-15 NORMAL */ /* */ #define MT$K_NRZI_800 3 /* NRZI 800 BPI */ #define MT$K_PE_1600 4 /* PE 1600 BPI */ #define MT$K_GCR_6250 5 /* GCR 6250 BPI */ #define MT$K_WOD_6250 8 /* RV80 6250 BPI EQUIVALENT */ #define MT$K_SCSI_DC1 10 /* Data Compaction algorithm 1 */ #define MT$K_HPC_40K 12 /* HPC 39872 BPI */ #define MT$K_HPC_COMP 13 /* HPC 39872 compacted */ #define MT$K_XPC_80K 14 /* */ #define MT$K_XPC_COMP 15 /* */ #define MT$K_BLK_833 17 /* BLOCK (TK50) 833 BPI */ #define MT$K_BLK_1250 18 /* BLOCK (TK70) 1250 BPI */ #define MT$K_BLK_10K 19 /* BLOCK (TF85) 10625 BPI */ #define MT$K_BLK_20K 20 /* BLOCK (TF86) 10626 */ #define MT$K_BLK_60K 21 /* BLOCK (Tx87) 62500 */ #define MT$K_BLK_COMP 22 /* BLOCK (Tx87) COMPRESSED 62501 */ #define MT$K_DAT_61K 24 /* DAT CARTRIDGE 61000 BPI EQUIVALENT */ /* */ #define MT$K_SPEED_DEF 0 /* DEFAULT SPEED */ #define MT$K_SPEED_25 25 /* 25 IPS */ #define MT$K_SPEED_75 75 /* 75 IPS */ #ifdef __NEW_STARLET typedef union _mtdef { __struct { unsigned mt$v_serexcp : 1; /* SERIOUS EXCEPTION PRESENT */ unsigned mt$v_enautopack : 1; /* ENABLE AUTO PACKACK */ unsigned mt$v_enserexcp : 1; /* ENABLE SERIOUS EXCEPTION MODE */ unsigned mt$v_parity : 1; /* PARITY SELECT (0=ODD, 1=EVEN) */ unsigned mt$v_format : 4; /* RECORDING FORMAT */ unsigned mt$v_density : 5; /* RECORDING DENSITY AND METHOD */ unsigned mt$v_fastskip_used : 1; /* IO$_SKIPFILE USED SKIP BY FILEMARKS */ unsigned mt$v_logsoft : 1; /* LOG SOFT (TU78) ERRORS (0=NO, 1=YES) */ unsigned mt$v_logsoftog : 1; /* TOGGLE TO REVERSE LOGSOFT STATE BIT */ unsigned mt$v_bot : 1; /* AT BEGINNING OF TAPE */ unsigned mt$v_eof : 1; /* AT END OF FILE */ unsigned mt$v_eot : 1; /* AT END OF TAPE */ unsigned mt$v_hwl : 1; /* TAPE IS HARDWARE WRITELOCKED */ unsigned mt$v_lost : 1; /* TAPE POSITION LOST */ unsigned mt$v_sup_nrzi : 1; /* DRIVE SUPPORTS NRZI (800 BPI) */ unsigned mt$v_sup_pe : 1; /* DRIVE SUPPORTS PE (1600 BPI) */ unsigned mt$v_sup_gcr : 1; /* DRIVE SUPPORTS GCR (6250 BPI) */ unsigned mt$v_speed : 8; /* TAPE SPEED */ } mt$r_mtdef_bits; /* */ /* RECORDING FORMAT DEFINTIONS */ /* */ /* */ /* RECORDING DENSITY AND METHOD DEFINITIONS */ /* */ /* Default 0 */ /* 9 Track 1 - 7 */ /* Optical Disk 8 - 9 */ /* SCSI Compaction codes 10 - 11 */ /* High Performance Cartridge 12 - 15 */ /* Block Mode 16 - 23 */ /* Reserved 24 - 31 */ /* */ /* */ /* DEFAULT,0 /* DEFAULT DENSITY (SAME AS ABOVE) */ /* TAPE SPEED VALUE DEFINITIONS */ /* */ } MTDEF; #if !defined(__VAXC) #define mt$v_serexcp mt$r_mtdef_bits.mt$v_serexcp #define mt$v_enautopack mt$r_mtdef_bits.mt$v_enautopack #define mt$v_enserexcp mt$r_mtdef_bits.mt$v_enserexcp #define mt$v_parity mt$r_mtdef_bits.mt$v_parity #define mt$v_format mt$r_mtdef_bits.mt$v_format #define mt$v_density mt$r_mtdef_bits.mt$v_density #define mt$v_fastskip_used mt$r_mtdef_bits.mt$v_fastskip_used #define mt$v_logsoft mt$r_mtdef_bits.mt$v_logsoft #define mt$v_logsoftog mt$r_mtdef_bits.mt$v_logsoftog #define mt$v_bot mt$r_mtdef_bits.mt$v_bot #define mt$v_eof mt$r_mtdef_bits.mt$v_eof #define mt$v_eot mt$r_mtdef_bits.mt$v_eot #define mt$v_hwl mt$r_mtdef_bits.mt$v_hwl #define mt$v_lost mt$r_mtdef_bits.mt$v_lost #define mt$v_sup_nrzi mt$r_mtdef_bits.mt$v_sup_nrzi #define mt$v_sup_pe mt$r_mtdef_bits.mt$v_sup_pe #define mt$v_sup_gcr mt$r_mtdef_bits.mt$v_sup_gcr #define mt$v_speed mt$r_mtdef_bits.mt$v_speed #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ union mtdef { __struct { unsigned mt$v_serexcp : 1; /* SERIOUS EXCEPTION PRESENT */ unsigned mt$v_enautopack : 1; /* ENABLE AUTO PACKACK */ unsigned mt$v_enserexcp : 1; /* ENABLE SERIOUS EXCEPTION MODE */ unsigned mt$v_parity : 1; /* PARITY SELECT (0=ODD, 1=EVEN) */ unsigned mt$v_format : 4; /* RECORDING FORMAT */ unsigned mt$v_density : 5; /* RECORDING DENSITY AND METHOD */ unsigned mt$v_fastskip_used : 1; /* IO$_SKIPFILE USED SKIP BY FILEMARKS */ unsigned mt$v_logsoft : 1; /* LOG SOFT (TU78) ERRORS (0=NO, 1=YES) */ unsigned mt$v_logsoftog : 1; /* TOGGLE TO REVERSE LOGSOFT STATE BIT */ unsigned mt$v_bot : 1; /* AT BEGINNING OF TAPE */ unsigned mt$v_eof : 1; /* AT END OF FILE */ unsigned mt$v_eot : 1; /* AT END OF TAPE */ unsigned mt$v_hwl : 1; /* TAPE IS HARDWARE WRITELOCKED */ unsigned mt$v_lost : 1; /* TAPE POSITION LOST */ unsigned mt$v_sup_nrzi : 1; /* DRIVE SUPPORTS NRZI (800 BPI) */ unsigned mt$v_sup_pe : 1; /* DRIVE SUPPORTS PE (1600 BPI) */ unsigned mt$v_sup_gcr : 1; /* DRIVE SUPPORTS GCR (6250 BPI) */ unsigned mt$v_speed : 8; /* TAPE SPEED */ } mt$r_mtdef_bits; /* */ /* RECORDING FORMAT DEFINTIONS */ /* */ /* */ /* RECORDING DENSITY AND METHOD DEFINITIONS */ /* */ /* Default 0 */ /* 9 Track 1 - 7 */ /* Optical Disk 8 - 9 */ /* SCSI Compaction codes 10 - 11 */ /* High Performance Cartridge 12 - 15 */ /* Block Mode 16 - 23 */ /* Reserved 24 - 31 */ /* */ /* */ /* DEFAULT,0 /* DEFAULT DENSITY (SAME AS ABOVE) */ /* TAPE SPEED VALUE DEFINITIONS */ /* */ } ; #if !defined(__VAXC) #define mt$v_serexcp mt$r_mtdef_bits.mt$v_serexcp #define mt$v_enautopack mt$r_mtdef_bits.mt$v_enautopack #define mt$v_enserexcp mt$r_mtdef_bits.mt$v_enserexcp #define mt$v_parity mt$r_mtdef_bits.mt$v_parity #define mt$v_format mt$r_mtdef_bits.mt$v_format #define mt$v_density mt$r_mtdef_bits.mt$v_density #define mt$v_fastskip_used mt$r_mtdef_bits.mt$v_fastskip_used #define mt$v_logsoft mt$r_mtdef_bits.mt$v_logsoft #define mt$v_logsoftog mt$r_mtdef_bits.mt$v_logsoftog #define mt$v_bot mt$r_mtdef_bits.mt$v_bot #define mt$v_eof mt$r_mtdef_bits.mt$v_eof #define mt$v_eot mt$r_mtdef_bits.mt$v_eot #define mt$v_hwl mt$r_mtdef_bits.mt$v_hwl #define mt$v_lost mt$r_mtdef_bits.mt$v_lost #define mt$v_sup_nrzi mt$r_mtdef_bits.mt$v_sup_nrzi #define mt$v_sup_pe mt$r_mtdef_bits.mt$v_sup_pe #define mt$v_sup_gcr mt$r_mtdef_bits.mt$v_sup_gcr #define mt$v_speed mt$r_mtdef_bits.mt$v_speed #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __MTDEF_LOADED */