/***************************************************************************/ /** **/ /** 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:39 by OpenVMS SDL V3.7 */ /* Source: 26-FEB-2022 14:50:20 $1$DGA8345:[LIB_H.SRC]DCBEDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $DCBEDEF ***/ #ifndef __DCBEDEF_LOADED #define __DCBEDEF_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 #include /* Define the DIOBM type; DCBE contains an embedded DIOBM type */ /*+ */ /* DCBE - Data Chain Block */ /* */ /* The DCBE is the data structure used to chain data packets together. A */ /* chain may consist of on buffer or may buffers each pointed to by a DCBE. */ /* the format of the DCBE is the same as a VCRP data request, so that a */ /* VCRP may be the first DCBE in the chain, and describe the entire */ /* data request. */ /* */ /* THE FORMAT OF THIS PACKET SHOULD NOT CHANGE WITHOUT CORRESPONDING CHANGES */ /* BEING MAY TO A VCRP DATA REQUEST PACKET. */ /*- */ #define DCBE$G_SCRATCH 40 /* Start of DCBE scratch area */ #define DCBE$S_SCRATCH 4 /* Length of scratch area */ #define DCBE$M_CMN_LOCKED 0x1 #define DCBE$M_CMN_RETBUF 0x2 #define DCBE$M_CMN_CACHE 0x4 #define DCBE$S_DCB_HEADER_PE 104 /* Length of PEDRIVER-specific DCBE header */ #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 _dcbe { #pragma __nomember_alignment struct _dcbe *dcbe$l_flink; /* Forward Queue link */ struct _dcbe *dcbe$l_blink; /* Backward Queue link */ unsigned short int dcbe$w_size; /* Size of structure */ unsigned char dcbe$b_type; /* Type of structure - DYN$C_NET */ unsigned char dcbe$b_sub_type; /* Subtype of structure - DYN$C_VCI_DCB */ int dcbe$l_reserved [13]; /* Reserved to ensure that VCRP and */ /* DCB look the same up to DCB_HEADER */ /* The DCBE scratch area is 4 bytes long, overlaying the spare longword at VCRP$L_FILLER2 */ /* which is the 7th longword of this reserved area, so 24 bytes back from here. */ __union { unsigned short int dcbe$w_common_flags; /* Common flags used by all users of DCBs */ __struct { unsigned dcbe$v_cmn_locked : 1; /* Indicates buffer is locked down for direct I/O */ unsigned dcbe$v_cmn_retbuf : 1; /* Indicates buffer must be return to owner immediately */ unsigned dcbe$v_cmn_cache : 1; /* Indicates buffer came from creator's cache */ unsigned dcbe$v_fill_0_ : 5; } dcbe$r_common_flags_bit; } dcbe$r_common_flags_overlay; unsigned char dcbe$b_flags; /* User controlled DCB flags */ unsigned char dcbe$b_mode; /* */ void *dcbe$a_dealloc_rtn; /* Address of routine to deallocate VCRP */ #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __long /* And set ptr size default to 64-bit pointers */ void *dcbe$pq_buffer_addr64; /* 64-bit buffer address (upper-level VCM only) */ #else unsigned __int64 dcbe$pq_buffer_addr64; #endif #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif void *dcbe$l_buffer_address; /* VM Address of buffer specified in SVAPTE */ void *dcbe$a_dcb_link; /* Address of next DCB in chain */ unsigned int dcbe$l_boff; /* Offset to start of data in buffer */ unsigned int dcbe$l_bcnt; /* Byte count of data in buffer */ #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __long /* And set ptr size default to 64-bit pointers */ void *dcbe$pq_svapte_sva; /* Address of list of extents (EXT_PQ) */ #else unsigned __int64 dcbe$pq_svapte_sva; #endif #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif DIOBM dcbe$r_diobm; /* Embedded DIOBM to handle cross-process 32-bit PTE access */ } DCBE; #if !defined(__VAXC) #define dcbe$w_common_flags dcbe$r_common_flags_overlay.dcbe$w_common_flags #define dcbe$v_cmn_locked dcbe$r_common_flags_overlay.dcbe$r_common_flags_bit.dcbe$v_cmn_locked #define dcbe$v_cmn_retbuf dcbe$r_common_flags_overlay.dcbe$r_common_flags_bit.dcbe$v_cmn_retbuf #define dcbe$v_cmn_cache dcbe$r_common_flags_overlay.dcbe$r_common_flags_bit.dcbe$v_cmn_cache #endif /* #if !defined(__VAXC) */ #define DCBE$K_DCB_HEADER 192 /* Length of DCB header */ #define DCBE$S_DCBEDEF 192 #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 /* __DCBEDEF_LOADED */