/***************************************************************************/ /** **/ /** HPE CONFIDENTIAL. This software is confidential proprietary software **/ /** licensed by Hewlett-Packard Enterprise Development, LP, and is not **/ /** authorized to be used, duplicated OR disclosed to anyone without the **/ /** prior written permission of HPE. **/ /** © 2023 Copyright Hewlett-Packard Enterprise Development, LP **/ /** **/ /** VMS SOFTWARE, INC. CONFIDENTIAL. This software is confidential **/ /** proprietary software licensed by VMS Software, Inc., and is not **/ /** authorized to be used, duplicated or disclosed to anyone without **/ /** the prior written permission of VMS Software, Inc. **/ /** © 2023 Copyright VMS Software, Inc. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 9-Nov-2023 12:06:53 by OpenVMS SDL V3.7 */ /* Source: 06-FEB-2002 10:11:28 $1$DGA8345:[LIB_H.SRC]DCRDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $DCRDEF ***/ #ifndef __DCRDEF_LOADED #define __DCRDEF_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 /* */ /* Definitions for Default Control Register (DCR - CR0) */ /* */ #define DCR$M_PP 0x1 #define DCR$M_BE 0x2 #define DCR$M_IC 0x4 #define DCR$M_MBZ0 0xF8 #define DCR$M_DM 0x100 #define DCR$M_DP 0x200 #define DCR$M_DK 0x400 #define DCR$M_DX 0x800 #define DCR$M_DR 0x1000 #define DCR$M_DA 0x2000 #define DCR$M_DD 0x4000 #define DCR$M_DEFER_ALL 32512 /* Defer all faults */ #define DCR$M_MBZ1 0xFFFF8000 #define DCR$M_MBZ2 0xFFFFFFFF00000000 #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif typedef struct _dcr { #pragma __nomember_alignment __union { unsigned __int64 dcr$q_default_control; __struct { unsigned dcr$v_pp : 1; /* Privileged Performance monitor default */ unsigned dcr$v_be : 1; /* Big-Endian default */ unsigned dcr$v_ic : 1; /* IA-32 Lock Check enable */ unsigned dcr$v_mbz0 : 5; /* Reserved DCR{7:3} (MBZ) */ unsigned dcr$v_dm : 1; /* Defer TLB Miss faults only */ unsigned dcr$v_dp : 1; /* Defer Page no Present faults only */ unsigned dcr$v_dk : 1; /* Defer Key Miss faults only */ unsigned dcr$v_dx : 1; /* Defer Key Permission faults only */ unsigned dcr$v_dr : 1; /* Defer Access Rights faults only */ unsigned dcr$v_da : 1; /* Defer Access Bit faults only */ unsigned dcr$v_dd : 1; /* Defer Debug faults */ unsigned dcr$v_mbz1 : 17; /* Reserved DCR{31:15} */ unsigned dcr$v_mbz2 : 32; /* Reserved DCR{63:32} */ } dcr$r_dcrdef_bits; } dcr$r_dcr_union; } DCR; #if !defined(__VAXC) #define dcr$q_default_control dcr$r_dcr_union.dcr$q_default_control #define dcr$v_pp dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_pp #define dcr$v_be dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_be #define dcr$v_ic dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_ic #define dcr$v_mbz0 dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_mbz0 #define dcr$v_dm dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_dm #define dcr$v_dp dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_dp #define dcr$v_dk dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_dk #define dcr$v_dx dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_dx #define dcr$v_dr dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_dr #define dcr$v_da dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_da #define dcr$v_dd dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_dd #define dcr$v_mbz1 dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_mbz1 #define dcr$v_mbz2 dcr$r_dcr_union.dcr$r_dcrdef_bits.dcr$v_mbz2 #endif /* #if !defined(__VAXC) */ #ifdef __INITIAL_POINTER_SIZE #pragma __required_pointer_size __save /* Save current pointer size */ #pragma __required_pointer_size __long /* Pointers are 64-bit */ typedef struct _dcr * DCR_PQ; /* Pointer to a DCR structure. */ typedef struct _dcr ** DCR_PPQ; /* Pointer to a pointer to a DCR structure. */ #pragma __required_pointer_size __restore /* Return to previous pointer size */ #else typedef unsigned __int64 DCR_PQ; typedef unsigned __int64 DCR_PPQ; #endif /* __INITIAL_POINTER_SIZE */ #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 /* __DCRDEF_LOADED */