/**/ /***************************************************************************/ /** **/ /** © 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:25:08 by OpenVMS SDL EV3-3 */ /* Source: 28-SEP-2001 10:11:02 $1$DGA7274:[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$M_CMN_LOCKED 0x1 #define DCBE$M_CMN_RETBUF 0x2 #define DCBE$M_CMN_CACHE 0x4 #define DCBE$G_SCRATCH 92 /* Start of DCBE scratch area */ #define DCBE$S_SCRATCH 4 /* Length of scratch area */ #define DCBE$S_DCB_HEADER_PE 96 /* 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 */ __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 */ void *dcbe$a_dcb_link; /* Address of next DCB in chain */ void *dcbe$l_svapte; /* Address of System Virtual Address PTE */ void *dcbe$l_buffer_address; /* VM Address of buffer specified in SVAPTE */ unsigned int dcbe$l_boff; /* Offset to start of data in buffer */ unsigned int dcbe$l_bcnt; /* Byte count of data in buffer */ int dcbe$l_fill_2; #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 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 */