/********************************************************************************************************************************/ /* 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 $MT2DEF ***/ #ifndef __MT2DEF_LOADED #define __MT2DEF_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 /*+ */ /* EXTENDED MAGTAPE CHARACTERISTICS BITS */ /*- */ #define MT2$M_SUP_DENS 0xFFFF #define MT2$M_WBC_ENABLE 0x10000 #define MT2$M_RDC_DISABLE 0x20000 #define MT2$M_CACHED_DATA 0x40000 #define MT2$M_CD_LOST 0x80000 #define MT2$M_TAPE_MARK 0x100000 #define MT2$M_COMP_SUP 0x200000 #define MT2$M_COMP_ENA 0x400000 #define MT2$M_MT3_SUPPORTED 0x800000 #define MT2$M_ALLOWFAST_SUP 0x1000000 #define MT2$M_ALLOWFAST_ALWAYS 0x2000000 #define MT2$M_ALLOWFAST_PER_IO 0x4000000 #define MT2$M_ALLOWFAST_NEVER 0x8000000 #ifdef __NEW_STARLET typedef union _mt2def { __struct { unsigned mt2$v_sup_dens : 16; /* SUPPORTED DENSITIES */ unsigned mt2$v_wbc_enable : 1; /* WRITE-BACK CACHING IS ENABLED */ unsigned mt2$v_rdc_disable : 1; /* READ CACHING IS DISABLED */ unsigned mt2$v_cached_data : 1; /* CLASS DRIVER DETECTED DATA IN CACHE */ unsigned mt2$v_cd_lost : 1; /* CLASS DRIVER DETECTED CACHED DATA LOST */ unsigned mt2$v_tape_mark : 1; /* TAPE MARK HAS BEEN WRITTEN */ unsigned mt2$v_comp_sup : 1; /* COMPACTION supported */ unsigned mt2$v_comp_ena : 1; /* COMPACTION enabled */ unsigned mt2$v_mt3_supported : 1; /* Driver supports Multiple Tape Densities. */ unsigned mt2$v_allowfast_sup : 1; /* SCSI Fast Search supported */ unsigned mt2$v_allowfast_always : 1; /* ALWAYS use Fast Search */ unsigned mt2$v_allowfast_per_io : 1; /* PER_IO use of Fast Search */ unsigned mt2$v_allowfast_never : 1; /* NEVER use Fast Search */ unsigned mt2$v_fill_11_ : 4; } mt2$r_mt2def_bits; } MT2DEF; #if !defined(__VAXC) #define mt2$v_sup_dens mt2$r_mt2def_bits.mt2$v_sup_dens #define mt2$v_wbc_enable mt2$r_mt2def_bits.mt2$v_wbc_enable #define mt2$v_rdc_disable mt2$r_mt2def_bits.mt2$v_rdc_disable #define mt2$v_cached_data mt2$r_mt2def_bits.mt2$v_cached_data #define mt2$v_cd_lost mt2$r_mt2def_bits.mt2$v_cd_lost #define mt2$v_tape_mark mt2$r_mt2def_bits.mt2$v_tape_mark #define mt2$v_comp_sup mt2$r_mt2def_bits.mt2$v_comp_sup #define mt2$v_comp_ena mt2$r_mt2def_bits.mt2$v_comp_ena #define mt2$v_mt3_supported mt2$r_mt2def_bits.mt2$v_mt3_supported #define mt2$v_allowfast_sup mt2$r_mt2def_bits.mt2$v_allowfast_sup #define mt2$v_allowfast_always mt2$r_mt2def_bits.mt2$v_allowfast_always #define mt2$v_allowfast_per_io mt2$r_mt2def_bits.mt2$v_allowfast_per_io #define mt2$v_allowfast_never mt2$r_mt2def_bits.mt2$v_allowfast_never #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ union mt2def { __struct { unsigned mt2$v_sup_dens : 16; /* SUPPORTED DENSITIES */ unsigned mt2$v_wbc_enable : 1; /* WRITE-BACK CACHING IS ENABLED */ unsigned mt2$v_rdc_disable : 1; /* READ CACHING IS DISABLED */ unsigned mt2$v_cached_data : 1; /* CLASS DRIVER DETECTED DATA IN CACHE */ unsigned mt2$v_cd_lost : 1; /* CLASS DRIVER DETECTED CACHED DATA LOST */ unsigned mt2$v_tape_mark : 1; /* TAPE MARK HAS BEEN WRITTEN */ unsigned mt2$v_comp_sup : 1; /* COMPACTION supported */ unsigned mt2$v_comp_ena : 1; /* COMPACTION enabled */ unsigned mt2$v_mt3_supported : 1; /* Driver supports Multiple Tape Densities. */ unsigned mt2$v_allowfast_sup : 1; /* SCSI Fast Search supported */ unsigned mt2$v_allowfast_always : 1; /* ALWAYS use Fast Search */ unsigned mt2$v_allowfast_per_io : 1; /* PER_IO use of Fast Search */ unsigned mt2$v_allowfast_never : 1; /* NEVER use Fast Search */ unsigned mt2$v_fill_11_ : 4; } mt2$r_mt2def_bits; } ; #if !defined(__VAXC) #define mt2$v_sup_dens mt2$r_mt2def_bits.mt2$v_sup_dens #define mt2$v_wbc_enable mt2$r_mt2def_bits.mt2$v_wbc_enable #define mt2$v_rdc_disable mt2$r_mt2def_bits.mt2$v_rdc_disable #define mt2$v_cached_data mt2$r_mt2def_bits.mt2$v_cached_data #define mt2$v_cd_lost mt2$r_mt2def_bits.mt2$v_cd_lost #define mt2$v_tape_mark mt2$r_mt2def_bits.mt2$v_tape_mark #define mt2$v_comp_sup mt2$r_mt2def_bits.mt2$v_comp_sup #define mt2$v_comp_ena mt2$r_mt2def_bits.mt2$v_comp_ena #define mt2$v_mt3_supported mt2$r_mt2def_bits.mt2$v_mt3_supported #define mt2$v_allowfast_sup mt2$r_mt2def_bits.mt2$v_allowfast_sup #define mt2$v_allowfast_always mt2$r_mt2def_bits.mt2$v_allowfast_always #define mt2$v_allowfast_per_io mt2$r_mt2def_bits.mt2$v_allowfast_per_io #define mt2$v_allowfast_never mt2$r_mt2def_bits.mt2$v_allowfast_never #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 /* __MT2DEF_LOADED */