/**/ /***************************************************************************/ /** **/ /** © 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:26:26 by OpenVMS SDL EV3-3 */ /* Source: 22-APR-1993 10:11:31 $1$DGA7274:[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 */