/**/ /***************************************************************************/ /** **/ /** © 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:40 by OpenVMS SDL EV3-3 */ /* Source: 24-OCT-1994 14:54:28 $1$DGA7274:[LIB_H.SRC]CCBDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $CCBDEF ***/ #ifndef __CCBDEF_LOADED #define __CCBDEF_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 /*+ */ /* CCB - CHANNEL CONTROL BLOCK */ /* */ /* THERE IS ONE CHANNEL CONTROL BLOCK FOR EACH SOFTWARE CHANNEL THAT A */ /* PROCESS MAY INITIATE I/O REQUESTS ON. THE NUMBER OF SUCH I/O CHANNELS */ /* IS DETERMINED BY THE FIXED NUMBER ASSIGNED TO A PROCESS PLUS ANY */ /* ADDITIONAL CHANNELS REQUIRED BY THE IMAGE CURRENTLY BEING EXECUTED */ /* BY THE PROCESS. */ /* */ /*- */ #define CCB$M_AMB 0x1 #define CCB$M_IMGTMP 0x2 #define CCB$M_RDCHKDON 0x4 #define CCB$M_WRTCHKDON 0x8 #define CCB$M_LOGCHKDON 0x10 #define CCB$M_PHYCHKDON 0x20 #define CCB$M_NOREADACC 0x40 #define CCB$M_NOWRITEACC 0x80 #define CCB$M_CLONE 0x100 #ifdef __cplusplus /* Define structure prototypes */ struct _ucb; struct _irp; struct _wcb; #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 _ccb { #pragma __nomember_alignment struct _ucb *ccb$l_ucb; /*ADDRESS OF ASSIGNED DEVICE UCB */ __union { unsigned int ccb$l_sts; /*CHANNEL STATUS */ __struct { unsigned ccb$v_amb : 1; /* MAILBOX ASSOCIATED WITH CHANNEL */ unsigned ccb$v_imgtmp : 1; /* IMAGE TEMPORARY */ unsigned ccb$v_rdchkdon : 1; /* READ PROTECTION CHECK COMPLETED */ unsigned ccb$v_wrtchkdon : 1; /* WRITE PROTECTION CHECK COMPLETED */ unsigned ccb$v_logchkdon : 1; /* LOGICAL I/O ACCESS CHECK DONE */ unsigned ccb$v_phychkdon : 1; /* PHYSICAL I/O ACCESS CHECK DONE */ unsigned ccb$v_noreadacc : 1; /* READ ACCESS TO DEVICE DISABLED */ unsigned ccb$v_nowriteacc : 1; /* WRITE ACCESS TO DEVICE DISABLED */ unsigned ccb$v_clone : 1; /* Clone channel after Posix fork() */ unsigned ccb$v_fill_0_ : 7; } ccb$r_sts_bits; } ccb$r_sts_overlay; unsigned int ccb$l_ioc; /* Number of outstanding I/O requests on channel */ struct _irp *ccb$l_dirp; /*DEACCESS I/O REQUEST PACKET ADDRESS */ char ccb$b_amod; /*ACCESS MODE THAT ASSIGNED CHANNEL */ unsigned char ccb$b_spare_1; unsigned short int ccb$w_spare_2; struct _wcb *ccb$l_wind; /* Address of Window Control Block */ __union { int ccb$l_chan; /* associated channel number */ unsigned short int ccb$w_chan; } ccb$r_chan_overlay; int ccb$l_reserved; } CCB; #if !defined(__VAXC) #define ccb$l_sts ccb$r_sts_overlay.ccb$l_sts #define ccb$v_amb ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_amb #define ccb$v_imgtmp ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_imgtmp #define ccb$v_rdchkdon ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_rdchkdon #define ccb$v_wrtchkdon ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_wrtchkdon #define ccb$v_logchkdon ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_logchkdon #define ccb$v_phychkdon ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_phychkdon #define ccb$v_noreadacc ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_noreadacc #define ccb$v_nowriteacc ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_nowriteacc #define ccb$v_clone ccb$r_sts_overlay.ccb$r_sts_bits.ccb$v_clone #define ccb$l_chan ccb$r_chan_overlay.ccb$l_chan #define ccb$w_chan ccb$r_chan_overlay.ccb$w_chan #endif /* #if !defined(__VAXC) */ #define CCB$K_LENGTH 32 /*LENGTH OF CCB */ #define CCB$S_CCBDEF 32 /*OLD SIZE NAME, SYNONYM FOR CCB$S_CCB */ #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 /* __CCBDEF_LOADED */