/**/ /***************************************************************************/ /** **/ /** © 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:33 by OpenVMS SDL EV3-3 */ /* Source: 21-JUL-1995 17:34:51 $1$DGA7274:[LIB_H.SRC]VCRPDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $VCRPDEF ***/ #ifndef __VCRPDEF_LOADED #define __VCRPDEF_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; VCRP contains an embedded DIOBM type */ /*+ */ /* VCRP - VAX Communication Request Packet */ /* */ /* The VCRP is the data structure used to pass requests between VCMs. A */ /* single VCRP may traverse more than two VCMs. Only the common fields */ /* within the VCRP are defined here. All layer-specific fields are defined */ /* elsewhere. The common VCRP function codes are also defined here. */ /* */ /* THE FORMAT OF A VCRP DATA REQUEST PACKET SHOULD NOT CHANGE WITHOUT */ /* CORRESPONDING CHANGES BEING MAY TO THE DCBE. */ /*- */ /* Function codes used in the VCRP$L_FUNCTION field. The function codes */ /* are separated numerically by layer as follows: */ /* */ /* 0000-01FF Common function codes from the VCI functional specification */ /* 0200-02FF DLL Data Link function codes */ /* 0300-03FF NRL Network Routing function codes */ /* 0400-04FF TPL Transport function codes */ /* 0500-05FF SCL Session function codes */ /* 0600-06FF APP Application function codes */ #define VCRP$K_FC_ENABLE_PORT 0 #define VCRP$K_FC_DISABLE_PORT 1 #define VCRP$K_FC_GET 2 #define VCRP$K_FC_SET 3 #define VCRP$K_FC_TRANSMIT 4 #define VCRP$K_FC_RECEIVE 5 /* Define the fields used within the STACK area of the VCRP. */ #define STACK$K_STACK_HEADER 12 /* Size of Stack Header */ #define STACK$K_STACK_SIZE 208 /* Size of Stack in bytes */ #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __longword #else #pragma __nomember_alignment #endif typedef struct _vcrpstack { #pragma __nomember_alignment void *stack$l_lastused; /* Stack Last Used position pointer */ void *stack$l_btm; /* Stack Bottom */ void *stack$l_top; /* Stack Top */ char stack$t_stack [208]; /* Context stack */ /* Size of entire stack area */ } VCRPSTACK; #define STACK$S_VCRPSTACKDEF 220 #define vcrpstackdef _vcrpstack /* VCRP data structure */ /* */ /* The common fields within the VCRP are defined now. The VCRP is created */ /* such that it can be used as an ACB, a DCBE, or a VCRP. So the fields at */ /* the beginning of the VCRP mimic the fields in the ACB and the DCBE. */ #define VCRP$M_ACB_FLAGS_VALID 0x4 #define VCRP$M_PKAST 0x10 #define VCRP$M_NODELETE 0x20 #define VCRP$M_QUOTA 0x40 #define VCRP$M_KAST 0x80 #define VCRP$K_ACB_LENGTH 64 /* Length of VCRP ACB Block */ #define VCRP$M_CMN_LOCKED 0x1 #define VCRP$M_CMN_RETBUF 0x2 #define VCRP$M_CMN_CACHE 0x4 #define VCRP$M_CMN_MGMT 0x8 #define VCRP$K_DATA_INFORMATION_OFFSET 196 #define VCRP$K_DATA_INFORMATION_LENGTH 7 #define VCRP$K_MGMT_INFORMATION_OFFSET 84 #define VCRP$K_MGMT_INFORMATION_LENGTH 19 #define VCRP$K_CREATOR_DATA_OFFSET 228 #define VCRP$K_CREATOR_DATA_LENGTH 8 #define VCRP$K_INTERNAL_STACK_OFFSET 248 #define VCRP$K_INTERNAL_STACK_LENGTH 220 #define VCRP$K_SCRATCH_AREA_OFFSET 468 #define VCRP$K_SCRATCH_AREA_LENGTH 64 #define VCRP$K_FIXED_LENGTH 532 /* Length of fixed part of VCRP */ /* If this VCM contains data, it will start here or after here. */ #define VCRP$C_DATA 532 /* Offset into start of data */ #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 _vcrp { #pragma __nomember_alignment void *vcrp$l_flink; /* Forward Queue link */ void *vcrp$l_blink; /* Backward Queue link */ unsigned short int vcrp$w_size; /* Size of structure */ unsigned char vcrp$b_type; /* Type of structure - DYN$C_VCRP */ __union { unsigned char vcrp$b_rmod; /* Request Modifier for ACB */ __struct { unsigned vcrp$v_mode : 2; /* Mode for final delivery */ unsigned vcrp$v_acb_flags_valid : 1; /* Flags in ACB_FLAGS cell are valid */ unsigned vcrpdef$$_filler_1 : 1; unsigned vcrp$v_pkast : 1; /* Piggy back special kernel AST */ unsigned vcrp$v_nodelete : 1; /* Don't delete ACB on delivery */ unsigned vcrp$v_quota : 1; /* Account for quota */ unsigned vcrp$v_kast : 1; /* Special kernel AST */ } vcrp$r_rmod_bits; } vcrp$r_rmod_overlay; unsigned int vcrp$l_pid; /* Process Identifier */ __union { void (*vcrp$a_astadr)(); /* Address of 32-bit user AST routine */ int vcrp$l_acb64x_offset; /* Offset to ACB64X extension */ } vcrp$r_astadr_overlay; unsigned int vcrp$l_astprm; /* User 32-bit AST input parameter */ unsigned int vcrp$l_acb_flags; /* Flags for QAST, valid iff VCRP$V_ACB_FLAGS_VALID is set */ unsigned int vcrp$l_thread_id; /* Kernel thread ID */ void (*vcrp$a_kast)(); /* Special kernel mode AST routine */ int vcrp$l_filler_2; /* fill to match ACB64 */ #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 (*vcrp$pq_acb64_ast)(); /* 64-bit user AST routine address */ #else unsigned __int64 vcrp$pq_acb64_ast; #endif unsigned __int64 vcrp$q_acb64_astprm; /* 64-bit user AST parameter value */ unsigned __int64 vcrp$q_user_thread_id; /* Unique user thread identifier */ #pragma __nomember_alignment __union { unsigned short int vcrp$w_common_flags; /* Common flags */ __struct { unsigned vcrp$v_cmn_locked : 1; /* Buffer is locked down */ unsigned vcrp$v_cmn_retbuf : 1; /* Return buffer immediately */ unsigned vcrp$v_cmn_cache : 1; /* Owner's cache buffer */ unsigned vcrp$v_cmn_mgmt : 1; /* Mgmt VCRP; not data VCRP */ unsigned vcrp$v_fill_2_ : 4; } vcrp$r_common_flags_bit; } vcrp$r_common_flags_overlay; unsigned char vcrp$b_flags; /* User controlled VCRP flags */ unsigned char vcrp$b_mode; /* */ #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 *vcrp$a_dealloc_rtn; /* Address of VCRP deallocation routine */ /* */ /* This part of the VCRP contains the request specific information. */ /* VCRPs can contain either a Management request or a Data request. The */ /* type of VCRP request is determined by the VCRP$W_COMMON_FLAGS field. */ /* If VCRP$V_CMN_MGMT is set, then the VCRP is using the Management */ /* request format. IF VCRP$V_CMN_MGMT is NOT set, then the VCRP is */ /* using the Data request format. */ /* */ __struct { __union { /* */ /* Data Request Format. The position of these field are to be the same */ /* as the DCB fields of the same name. */ /* */ __struct { void *vcrp$a_dcb_link; /* Address of next DCB in chain */ void *vcrp$l_svapte; /* Address of System Virtual Address PTE */ void *vcrp$l_buffer_address; /* VM Address of buffer specified in SVAPTE */ unsigned int vcrp$l_boff; /* Offset to start of data in buffer */ unsigned int vcrp$l_bcnt; /* Byte count of data in buffer */ int vcrp$l_filler_3; #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 *vcrp$pq_buffer_addr64; /* 64-bit buffer address (upper-level VCM only) */ #else unsigned __int64 vcrp$pq_buffer_addr64; #endif DIOBM vcrp$r_diobm; /* Embedded DIOBM to handle cross-process 32-bit PTE access */ /* */ /* All fields preceeding this comment should be similar in layout,name and size */ /* to a DCB. A programmer should verify that these fields are similar by */ /* adding the appropriate ASSUMES to his or her code. */ /* */ #pragma __nomember_alignment unsigned int vcrp$l_total_pdu_size; /* Total PDU Size */ /* This 7 byte portion of the data request area can be used by each */ /* layer to allow its client to pass more information in the request. */ char vcrp$t_data_information [7]; } vcrp$r_data_request; /* */ /* Management Request Format. */ /* */ __struct { #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 *vcrp$a_input_list; /* Address of Input item list */ void *vcrp$a_template_list; /* Address of Template item list */ void *vcrp$a_output_list; /* Address of Output item list */ /* This 19 byte portion of the mgmt request area can be used by each */ /* layer to allow its client to pass more information in the request. */ char vcrp$t_mgmt_information [19]; } vcrp$r_mgmt_request; } vcrp$r_request_overlay; unsigned char vcrp$b_les_flags; /* LES flags */ } vcrp$r_vcrp_request; unsigned int vcrp$l_function; /* Function for this request */ unsigned int vcrp$l_association_id; unsigned int vcrp$l_connection_id; __union { /* Status of request upon completion */ __struct { unsigned __int64 vcrp$q_request_status; } vcrp$r_quad_request; __struct { unsigned int vcrp$l_request_status; unsigned int vcrp$l_request_status_qual; } vcrp$r_long_request; } vcrp$r_status_overlay; void *vcrp$a_creator; /* VCIB address of creator of VCRP */ /* The creator data section is a section that is used privately by the */ /* creator of the VCRP. */ __union { char vcrp$t_creator_data_structure [8]; __struct { __union { __struct { unsigned __int64 vcrp$q_creator_data; } vcrp$r_quad_creator_data; __struct { unsigned int vcrp$l_creator_data1; unsigned int vcrp$l_creator_data2; } vcrp$r_long_creator_data; } vcrp$r_creator_data_overlay; } vcrp$r_fill_1_; } vcrp$r_fill_0_; unsigned __int64 vcrp$q_les; /* LES information */ /* The following fields describe the VCRP context stack, which is used by */ /* by VCM's to preserve request context. The use of the fields is as */ /* follows: */ /* */ /* STACK - contains an address which will point to a stack block. The */ /* stack block will contain the last used stack pointer */ /* (LASTUSED), the address of the end of the stack (BTM), the */ /* address of the top of the stack, and the stack itself */ /* (STACK). This is layout is used to insure that if the */ /* context stack is removed from the VCRP and allocated in a */ /* buffer pointed to by VCRP$A_STACK, that no VCM's will be */ /* adversely affected. */ /* LASTUSED - pointer to the last used location in the stack. */ /* BTM - pointer to the bottom of the stack */ /* TOP - pointer to the top of the stack */ /* STACK - Start of context stack. */ /* */ /* Saving on and restoring from the context stack can be done by using the */ /* VCRP_PUSH and VCRP_POP macros. */ void *vcrp$a_stack; /* Pointer stack block */ char vcrp$t_internal_stack [220]; /* VCRP scratch area. This area is not guaranteed to be preserved across */ /* VCM's. It is intended to be used as VCM temporary data. */ char vcrp$t_scratch [64]; #if defined(__VAXC) char vcrp$t_data[]; #else #define vcrp$t_data vcrp$b_fill_3_ #endif /* #if defined(__VAXC) */ char vcrp$b_fill_3_ [4]; } VCRP; #if !defined(__VAXC) #define vcrp$b_rmod vcrp$r_rmod_overlay.vcrp$b_rmod #define vcrp$v_mode vcrp$r_rmod_overlay.vcrp$r_rmod_bits.vcrp$v_mode #define vcrp$v_acb_flags_valid vcrp$r_rmod_overlay.vcrp$r_rmod_bits.vcrp$v_acb_flags_valid #define vcrp$v_pkast vcrp$r_rmod_overlay.vcrp$r_rmod_bits.vcrp$v_pkast #define vcrp$v_nodelete vcrp$r_rmod_overlay.vcrp$r_rmod_bits.vcrp$v_nodelete #define vcrp$v_quota vcrp$r_rmod_overlay.vcrp$r_rmod_bits.vcrp$v_quota #define vcrp$v_kast vcrp$r_rmod_overlay.vcrp$r_rmod_bits.vcrp$v_kast #define vcrp$a_astadr vcrp$r_astadr_overlay.vcrp$a_astadr #define vcrp$l_acb64x_offset vcrp$r_astadr_overlay.vcrp$l_acb64x_offset #define vcrp$w_common_flags vcrp$r_common_flags_overlay.vcrp$w_common_flags #define vcrp$v_cmn_locked vcrp$r_common_flags_overlay.vcrp$r_common_flags_bit.vcrp$v_cmn_locked #define vcrp$v_cmn_retbuf vcrp$r_common_flags_overlay.vcrp$r_common_flags_bit.vcrp$v_cmn_retbuf #define vcrp$v_cmn_cache vcrp$r_common_flags_overlay.vcrp$r_common_flags_bit.vcrp$v_cmn_cache #define vcrp$v_cmn_mgmt vcrp$r_common_flags_overlay.vcrp$r_common_flags_bit.vcrp$v_cmn_mgmt #define vcrp$r_request_overlay vcrp$r_vcrp_request.vcrp$r_request_overlay #define vcrp$r_data_request vcrp$r_request_overlay.vcrp$r_data_request #define vcrp$a_dcb_link vcrp$r_data_request.vcrp$a_dcb_link #define vcrp$l_svapte vcrp$r_data_request.vcrp$l_svapte #define vcrp$l_buffer_address vcrp$r_data_request.vcrp$l_buffer_address #define vcrp$l_boff vcrp$r_data_request.vcrp$l_boff #define vcrp$l_bcnt vcrp$r_data_request.vcrp$l_bcnt #define vcrp$pq_buffer_addr64 vcrp$r_data_request.vcrp$pq_buffer_addr64 #define vcrp$r_diobm vcrp$r_data_request.vcrp$r_diobm #define vcrp$l_total_pdu_size vcrp$r_data_request.vcrp$l_total_pdu_size #define vcrp$t_data_information vcrp$r_data_request.vcrp$t_data_information #define vcrp$r_mgmt_request vcrp$r_request_overlay.vcrp$r_mgmt_request #define vcrp$a_input_list vcrp$r_mgmt_request.vcrp$a_input_list #define vcrp$a_template_list vcrp$r_mgmt_request.vcrp$a_template_list #define vcrp$a_output_list vcrp$r_mgmt_request.vcrp$a_output_list #define vcrp$t_mgmt_information vcrp$r_mgmt_request.vcrp$t_mgmt_information #define vcrp$b_les_flags vcrp$r_vcrp_request.vcrp$b_les_flags #define vcrp$r_quad_request vcrp$r_status_overlay.vcrp$r_quad_request #define vcrp$q_request_status vcrp$r_quad_request.vcrp$q_request_status #define vcrp$r_long_request vcrp$r_status_overlay.vcrp$r_long_request #define vcrp$l_request_status vcrp$r_long_request.vcrp$l_request_status #define vcrp$l_request_status_qual vcrp$r_long_request.vcrp$l_request_status_qual #define vcrp$r_creator_data_overlay vcrp$r_fill_0_.vcrp$r_fill_1_.vcrp$r_creator_data_overlay #define vcrp$r_quad_creator_data vcrp$r_creator_data_overlay.vcrp$r_quad_creator_data #define vcrp$q_creator_data vcrp$r_quad_creator_data.vcrp$q_creator_data #define vcrp$r_long_creator_data vcrp$r_creator_data_overlay.vcrp$r_long_creator_data #define vcrp$l_creator_data1 vcrp$r_long_creator_data.vcrp$l_creator_data1 #define vcrp$l_creator_data2 vcrp$r_long_creator_data.vcrp$l_creator_data2 #endif /* #if !defined(__VAXC) */ #define VCRP$S_VCRPDEF 536 #define vcrpdef _vcrp #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 /* __VCRPDEF_LOADED */