/**/ /***************************************************************************/ /** **/ /** © Copyright 2010, Hewlett-Packard Development Company, L.P. **/ /** **/ /** Confidential computer software. Valid license from HP and/or **/ /** its subsidiaries required for possession, use, or copying. **/ /** **/ /** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, **/ /** Computer Software Documentation, and Technical Data for Commercial **/ /** Items are licensed to the U.S. Government under vendor's standard **/ /** commercial license. **/ /** **/ /** Neither HP nor any of its subsidiaries shall be liable for technical **/ /** or editorial errors or omissions contained herein. The information **/ /** in this document is provided "as is" without warranty of any kind and **/ /** is subject to change without notice. The warranties for HP products **/ /** are set forth in the express limited warranty statements accompanying **/ /** such products. Nothing herein should be construed as constituting an **/ /** additional warranty. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:26:39 by OpenVMS SDL EV3-3 */ /* Source: 18-NOV-2005 14:19:37 $1$DGA7274:[LIB_H.SRC]CBBDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $CBBDEF ***/ #ifndef __CBBDEF_LOADED #define __CBBDEF_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 #define CBB$M_OVERRIDE_LOCK 1 #define CBB$M_ZERO 2 #define CBB$M_DUPLICATE_COPY 4 /*+ */ /* */ /* Common bitmask block definition. The purpose of this data structure */ /* is to represent a variable, potentially unlimited number of CPUs in */ /* bitmask format. The CBB is intended to be a generic construct as well; */ /* flexible enough for other applications that require bitmask support. */ /*- */ #define CBB$M_LOCK_BIT 0x1 #define CBB$M_AUTO_LOCK 0x2 #define CBB$M_TIMEOUT_CRASH 0x4 #define CBB$M_SUMMARY_BITS 0x8 #define CBB$M_SET_COUNT 0x10 #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 _cbb { #pragma __nomember_alignment unsigned int cbb$l_data_offset; /* Offset to start of bit data */ unsigned short int cbb$w_unit_count; /* Valid data units within block */ unsigned char cbb$b_unit_size; /* Size of data units in bytes */ unsigned char cbb$b_lock_ipl; /* Synchronization IPL for CBB */ unsigned short int cbb$w_size; /* Structure size */ unsigned char cbb$b_type; /* Structure type */ unsigned char cbb$b_subtype; /* Structure subtype */ unsigned int cbb$l_bit_count; /* Number of data bits set in block */ __union { unsigned __int64 cbb$q_interlock; /* Alias for locking */ __union { unsigned __int64 cbb$q_state; /* State bitmask */ __struct { unsigned cbb$v_lock_bit : 1; /* Atomic locking bit */ unsigned cbb$v_auto_lock : 1; /* Automatic locking state */ unsigned cbb$v_timeout_crash : 1; /* Crash if timeout exceeded */ unsigned cbb$v_summary_bits : 1; /* Summary masks to be updated */ unsigned cbb$v_set_count : 1; /* Count of bits set kept */ unsigned cbb$v_fill_2_ : 3; } cbb$r_fill_1_; } cbb$r_fill_0_; } cbb$r_flags_overlay; unsigned int cbb$l_timeout_count; /* Timeout interval in 10usec */ unsigned int cbb$l_saved_ipl; /* Caller's IPL upon entrance to */ /* Exe$cbb_lock */ unsigned int cbb$l_valid_bits; /* # of bits (specified by the user */ /* on input to allocate, get_size, and */ /* initialize) represented by this Cbb */ char cbb$b_cbb_padding_0 [4]; /* To preserve quadword alignment */ /* */ /* All new fields must be added before the SUMMARY_BITMASK field. The SUMMARY_BITMASK */ /* field below may be the 1st summary bitmask field of many. */ /* */ unsigned __int64 cbb$q_summary_bitmask; /* Summary bitmask of 64 unit bitmasks */ } CBB; #if !defined(__VAXC) #define cbb$q_interlock cbb$r_flags_overlay.cbb$q_interlock #define cbb$q_state cbb$r_flags_overlay.cbb$r_fill_0_.cbb$q_state #define cbb$v_lock_bit cbb$r_flags_overlay.cbb$r_fill_0_.cbb$r_fill_1_.cbb$v_lock_bit #define cbb$v_auto_lock cbb$r_flags_overlay.cbb$r_fill_0_.cbb$r_fill_1_.cbb$v_auto_lock #define cbb$v_timeout_crash cbb$r_flags_overlay.cbb$r_fill_0_.cbb$r_fill_1_.cbb$v_timeout_crash #define cbb$v_summary_bits cbb$r_flags_overlay.cbb$r_fill_0_.cbb$r_fill_1_.cbb$v_summary_bits #define cbb$v_set_count cbb$r_flags_overlay.cbb$r_fill_0_.cbb$r_fill_1_.cbb$v_set_count #endif /* #if !defined(__VAXC) */ #define CBB$K_LENGTH 48 /* Length of CBB */ #define CBB$C_LENGTH 48 /* Length of CBB */ /* Function code values for the function input parameter to the routine, */ /* Exe$cbb_boolean_oper. */ /* */ #define CBB$C_OR 0 /* Logical Sum */ #define CBB$C_AND 1 /* Logical Product */ #define CBB$C_XOR 2 /* Logical Difference */ #define CBB$C_BIC 3 /* Logical Product with Complement */ #define CBB$C_ORNOT 4 /* Logical Sum with Complement */ #define CBB$C_EQV 5 /* Logical Equivalence (XORNOT) */ #define CBB$C_COMP 6 /* Logical ones complement of source */ #define CBB$C_MAX_FUNCTION 6 #define CBB$K_STATIC_CPU_COUNT 64 #define CBB$K_STATIC_BLOCK 64 #if defined (__ALPHA) || defined (__ia64) # ifdef __INITIAL_POINTER_SIZE # pragma __required_pointer_size __save /* Save current pointer size */ # pragma __required_pointer_size 64 /* Pointers are 64-bits */ typedef struct _cbb * CBB_PQ; /* 64-bit pointer to a CBB */ typedef struct _cbb ** CBB_PPQ; /* 64-bit ptr to a ptr to a CBB */ # pragma __required_pointer_size __restore /* Return to previous ptr size */ # else typedef unsigned __int64 CBB_PQ; /* Size = 64-bit ptr to a CBB */ typedef unsigned __int64 CBB_PPQ; /* Size = 64-bit ptr to a ptr to CBB */ # endif #endif #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 /* __CBBDEF_LOADED */