/***************************************************************************/ /** **/ /** 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:34 by OpenVMS SDL V3.7 */ /* Source: 15-NOV-2001 14:50:54 $1$DGA8345:[LIB_H.SRC]RBUNDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $RBUNDEF ***/ #ifndef __RBUNDEF_LOADED #define __RBUNDEF_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 /*+ */ /* RBUN - SCS Resource bundle */ /* */ /* This structure contains a bundle of resources needed to do an I/O over */ /* a SCS port. There is a SCS port-independent resource portion that contains */ /* resources needed by all ports. There is also a port-dependent portion */ /* of the RBUN for port specific resources. */ /*- */ #define RBUN$C_MAX_SIZE 65535 /* Maximum transfer supported by RBUNs is 64K-1 */ /* RBUN port extensions */ #define RBUN$C_NPORT_PAGES 9 /* An unaligned 64K transfer can require the */ /* mapping of up to 9 Alpha 8KB port pages */ #define RBUN$C_TYP1_ARR_SIZE 72 /* Size of Type 1 arrary given */ /* max transfer size */ #define RBUN$R_CRCTX 64 /* CRCTX for this bundle */ #define RBUN$K_NPORT_LENGTH 208 #define RBUN$C_NPORT_LENGTH 208 #define RBUN$K_PEM_LENGTH 52 #define RBUN$C_PEM_LENGTH 52 #ifdef __cplusplus /* Define structure prototypes */ struct _bd; struct _pdt; struct _typ1; struct _vcrp; #endif /* #ifdef __cplusplus */ #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 _rbun { #pragma __nomember_alignment struct _rbun *rbun$l_link; /* Singly linked list of RBUNs */ unsigned int rbun$l_reserved; /* Unused longword */ unsigned short int rbun$w_size; /* Size of RBUN in bytes */ unsigned char rbun$b_type; /* Structure Type for RBUN */ unsigned char rbun$b_subtype; /* Structure Subtype for RBUN */ unsigned int rbun$l_rspid; /* RSPID */ int (*rbun$l_rdte)(); /* RDT entry address for the RSPID */ unsigned int rbun$l_rdt_seqnum; /* RDT sequence number for this RSPID */ int (*rbun$l_msg_buf)(); /* Message buffer */ unsigned int rbun$l_scs_credits; /* SCS credits sent to remote system */ struct _bd *rbun$l_bd_addr; /* Buffer descriptor */ struct _pdt *rbun$l_pdt; /* PDT of port this RBUN belongs to */ unsigned int rbun$l_reserved1; /* Unused */ unsigned int rbun$l_reserved2; /* Unused */ __union { /* The Nport extension consists of two Type 1 pointer arrays big enough to support */ /* the maximum RBUN transfer size. The array is allocated twice as Type 1 arrays */ /* are not allowed to cross 8KB boundary. Note Type 1 arrays must be hex aligned as well. */ __struct { struct _typ1 *rbun$l_typ1_addr; /* Virtual address of the Type 1 pointer array in TYP1_ARRAYS */ unsigned int rbun$l_fill1; /* Keep quadword alignment */ unsigned __int64 rbun$q_typ1_phy_addr; /* Physical address of the Type 1 pointer array in TYP1_ARRAYS */ /* NOTE: the following def for CRCTX assumes (CRCTX$K_LENGTH < RBUN$C_NPORT_PAGES*2*8) 96<144 */ /* this allows us to overlay a CRCTX structure when map registers are used instead of TYP1 arrays. */ unsigned __int64 rbun$q_typ1_arrays [18]; /* Two Type 1 pointer arrays */ } rbun$r_nport_extension; /* PEDRIVER extensions to RBUN */ __struct { struct _vcrp *rbun$l_vcrp; } rbun$r_pem_extension; } rbun$r_rbun_extensions; } RBUN; #if !defined(__VAXC) #define rbun$l_typ1_addr rbun$r_rbun_extensions.rbun$r_nport_extension.rbun$l_typ1_addr #define rbun$l_fill1 rbun$r_rbun_extensions.rbun$r_nport_extension.rbun$l_fill1 #define rbun$q_typ1_phy_addr rbun$r_rbun_extensions.rbun$r_nport_extension.rbun$q_typ1_phy_addr #define rbun$q_typ1_arrays rbun$r_rbun_extensions.rbun$r_nport_extension.rbun$q_typ1_arrays #define rbun$l_vcrp rbun$r_rbun_extensions.rbun$r_pem_extension.rbun$l_vcrp #endif /* #if !defined(__VAXC) */ #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 /* __RBUNDEF_LOADED */