/**/ /***************************************************************************/ /** **/ /** © 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:30 by OpenVMS SDL EV3-3 */ /* Source: 23-JAN-1997 11:19:54 $1$DGA7274:[LIB_H.SRC]IDBDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $IDBDEF ***/ #ifndef __IDBDEF_LOADED #define __IDBDEF_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 /*+ */ /* IDB - INTERRUPT DISPATCH BLOCK */ /* */ /* AN INTERRUPT DISPATCH BLOCK PROVIDES THE INFORMATION NECESSARY FOR A */ /* UNIT INDEPENDENT, BUT CONTROLLER SPECIFIC, INTERRUPT DISPATCHER TO */ /* DISPATCH INTERRUPTS TO THE PROPER DRIVER TO HANDLE AN INTERRUPT ON */ /* A DEVICE UNIT. */ /*- */ #define IDB$M_CRAM_ALLOC 0x1 #define IDB$M_VLE 0x2 #define IDB$M_NORESIZE 0x4 #define IDB$M_MCJ 0x8 #define IDB$M_SHARED_INT 0x10 #define IDB$M_DISTRIBUTED_INT 0x20 #define IDB$M_ISR_CALLABLE 0x40 #define IDB$K_BASE_LENGTH 56 /*length without UCBLST */ #define IDB$C_BASE_LENGTH 56 /*length without UCBLST */ #ifdef __cplusplus /* Define structure prototypes */ struct _ucb; struct _cram; struct _spl; struct _adp; #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 _idb { #pragma __nomember_alignment unsigned __int64 idb$q_csr; /*CONTROLLER CSR "ADDRESS" */ unsigned short int idb$w_size; /*SIZE OF IDB IN BYTES */ unsigned char idb$b_type; /*STRUCTURE TYPE OF IDB */ char idb$b_spare; unsigned short int idb$w_units; /*NUMBER OF UNITS (SIZE OF UCBLST) */ unsigned short int idb$w_tt_enable; /* DZ32 line enable field */ struct _ucb *idb$ps_owner; /*OWNER UCB ADDRESS */ struct _cram *idb$ps_cram; /*Per-controller CRAM list */ struct _spl *idb$ps_spl; /*ADDRESS OF DEVICE SPINLOCK */ struct _adp *idb$ps_adp; /*ADDRESS OF ADAPTER CONTROL BLOCK */ __union { unsigned int idb$l_flags; /* IDB flags */ __struct { unsigned idb$v_cram_alloc : 1; /* $LOAD_DRIVER has done CRAM allocation for this IDB */ unsigned idb$v_vle : 1; /* IDB$L_VECTOR points to a VLE */ unsigned idb$v_noresize : 1; /* IDB isn't in pool and shouldn't be resized */ unsigned idb$v_mcj : 1; /* IDB$Q_CSR points to an MCJ */ unsigned idb$v_shared_int : 1; /* Connected as Shared Interrupt */ unsigned idb$v_distributed_int : 1; /* Connected as Distributed Interrupt */ unsigned idb$v_isr_callable : 1; /* Ints can be delivered to the ISR */ unsigned idb$v_fill_0_ : 1; } idb$r_flags_bits; } idb$r_flags_overlay; unsigned int idb$l_device_specific; /*Available to device drivers */ int idb$l_vector; /*SCB offset for interrupts */ void *idb$ps_auxstruc; /*driver specific data */ unsigned int idb$l_interrupt_cpu; /*Target CPU for Distributed Interrupts */ unsigned int idb$l_reserved; /*...for future expansion */ struct _ucb *idb$l_ucblst [8]; /*UCB OR SECONDARY IDB ADDRESSES */ /*(DEFAULT OF 8) */ } IDB; #if !defined(__VAXC) #define idb$l_flags idb$r_flags_overlay.idb$l_flags #define idb$v_cram_alloc idb$r_flags_overlay.idb$r_flags_bits.idb$v_cram_alloc #define idb$v_vle idb$r_flags_overlay.idb$r_flags_bits.idb$v_vle #define idb$v_noresize idb$r_flags_overlay.idb$r_flags_bits.idb$v_noresize #define idb$v_mcj idb$r_flags_overlay.idb$r_flags_bits.idb$v_mcj #define idb$v_shared_int idb$r_flags_overlay.idb$r_flags_bits.idb$v_shared_int #define idb$v_distributed_int idb$r_flags_overlay.idb$r_flags_bits.idb$v_distributed_int #define idb$v_isr_callable idb$r_flags_overlay.idb$r_flags_bits.idb$v_isr_callable #endif /* #if !defined(__VAXC) */ #define IDB$K_LENGTH 88 /*LENGTH OF STANDARD IDB */ #define IDB$C_LENGTH 88 /*LENGTH OF STANDARD IDB */ #define IDB$S_IDBDEF 88 /*OLD IDB SIZE FOR COMPATIBILITY */ #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 /* __IDBDEF_LOADED */