/***************************************************************************/ /** **/ /** 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:43 by OpenVMS SDL V3.7 */ /* Source: 22-APR-1993 10:11:31 $1$DGA8345:[LIB_H.SRC]BDLPTRDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $BDLPTRDEF ***/ #ifndef __BDLPTRDEF_LOADED #define __BDLPTRDEF_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 /*+ */ /* BDLPTR - NPORT Buffer Descriptor Leaf pointer */ /* */ /* This table is sharable among all SCS ports using the NPORT architectured */ /* named buffer convention. buffer descriptors (BD's) are allocated for SCS */ /* block transfers. the BDLT must be aligned on a an 8K boundary. The BDLT can */ /* support up to 4096 BDL pointers but in this implementation will only */ /* support up to 32 BDL pointers for a maximum of 8148 buffer descriptors. This */ /* definition only defines a single BDL pointer, each BDL pointer has the */ /* identical structure. The VMS implementation uses the first few pointers as */ /* defined in CMNBDLTDEF. */ /* */ /* 63 1 0 */ /* ----------------------------------------------------- */ /* | BDL_PTR_PHY |V| V=valid */ /* ----------------------------------------------------- */ /* | BDL_PTR_VIR | */ /* ----------------------------------------------------- */ /*- */ #define BDLPTR$M_VALID 0x1 #define BDLPTR$C_LENGTH 16 /* Length of structure */ #define BDLPTR$S_SHIFT_SIZE 4 /* Factor for shift left of BDLT index to get BDL address */ #define BDLPTR$S_BDLPTRDEF 16 typedef struct _bdlptr { __union { unsigned __int64 bdlptr$q_phy_addr; /* Buffer Descriptor 0 Leaf Physical Pointer */ __struct { unsigned bdlptr$v_valid : 1; /* Valid Bit */ unsigned bdlptr$v_fill_0_ : 7; } bdlptr$r_flags_bits; } bdlptr$r_phy_overlay; unsigned __int64 bdlptr$q_vir_addr; /* Buffer Descriptor 0 Leaf Virtual Pointer */ } BDLPTR; #if !defined(__VAXC) #define bdlptr$q_phy_addr bdlptr$r_phy_overlay.bdlptr$q_phy_addr #define bdlptr$v_valid bdlptr$r_phy_overlay.bdlptr$r_flags_bits.bdlptr$v_valid #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 /* __BDLPTRDEF_LOADED */