/**/ /***************************************************************************/ /** **/ /** © 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:27:09 by OpenVMS SDL EV3-3 */ /* Source: 29-APR-1993 16:32:31 $1$DGA7274:[LIB_H.SRC]CTSIDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $CTSIDEF ***/ #ifndef __CTSIDEF_LOADED #define __CTSIDEF_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 #define CTSI$K_REVISION 1 /* CTSI Revision 1 only. */ #define CTSI$C_REVISION 1 #define CTMD$K_SIZE 8 /* Size */ #define CTMD$C_SIZE 8 /* Size */ typedef struct _ctmd { /* Module descriptor in the CTSIA. */ unsigned short int ctmd$w_pgcount; /* Module length in pages */ short int ctmd$w_spare_1; /* Padding */ void *ctmd$l_baseaddr; /* Base physical addr. */ } CTMD; #define CTCB$K_SIZE 28 /* Length of channel block */ #define CTCB$C_SIZE 28 /* Length of channel block */ typedef struct _ctcb { /* Channel block in the CTSIA. */ unsigned char ctcb$b_dvatr; /* Device attributes */ unsigned char ctcb$b_chatr; /* Channel attributes */ unsigned short int ctcb$w_statesz; /* State size */ int (*ctcb$l_phy_entry)(); /* Physical entry point */ int (*ctcb$l_vir_entry)(); /* Virtual entry point */ void *ctcb$l_phy_segment; /* IO segment physical addr */ void *ctcb$l_vir_segment; /* IO segment virtual addr */ void *ctcb$l_phy_extend; /* Extended state phys. addr */ void *ctcb$l_vir_extend; /* Extended state virt. addr */ } CTCB; #define CTIOS$K_SIZE 8 /* Descriptor length */ #define CTIOS$C_SIZE 8 /* Descriptor length */ typedef struct _ctios { /* Console I/O segment array and descriptors */ __union { __struct { unsigned short int ctios$w_sgmt_count; /* # segments for channel */ short int ctios$w_spare_1; unsigned char ctios$b_base_segment; /* Offset for first segment dx. */ } ctios$r_segment_count; __struct { unsigned short int ctios$w_pgcount; /* Pages in this segment */ short int ctios$w_spare_2; void *ctios$l_segment; /* Physical Segment address */ } ctios$r_segment_descriptor; } ctios$r_counted_array; } CTIOS; #if !defined(__VAXC) #define ctios$w_sgmt_count ctios$r_counted_array.ctios$r_segment_count.ctios$w_sgmt_count #define ctios$b_base_segment ctios$r_counted_array.ctios$r_segment_count.ctios$b_base_segment #define ctios$w_pgcount ctios$r_counted_array.ctios$r_segment_descriptor.ctios$w_pgcount #define ctios$l_segment ctios$r_counted_array.ctios$r_segment_descriptor.ctios$l_segment #endif /* #if !defined(__VAXC) */ #define CTSI$K_MODULE_COUNT 6 #define CTSI$C_MODULE_COUNT 6 #define CTSI$K_CHN_COUNT 6 #define CTSI$C_CHN_COUNT 6 #define CTSI$M_CMUSE 0x3 #define CTSI$M_INUSE 0x4 #define CTSI$M_CM 0x10 #define CTSI$S_CTSIDEF 316 /* Old size name - synonym */ typedef struct _ctsi { struct _ctsi *ctsi$l_base; /* Physical base address of CTSI */ unsigned short int ctsi$w_size; /* Size in bytes of CTSI */ unsigned short int ctsi$w_ident; /* Indent string "CT" */ unsigned char ctsi$b_spare0; unsigned char ctsi$b_chksum; /* Checksum of first bytes */ __union { unsigned char ctsi$b_flags; /* Flags */ __struct { unsigned ctsi$v_cmuse : 2; unsigned ctsi$v_inuse : 1; /* Routine in use */ unsigned ctsi$v_spare0 : 1; unsigned ctsi$v_cm : 1; /* Console mode */ unsigned ctsi$v_fill_0_ : 3; } ctsi$r_flags_bits; } ctsi$r_flags_overlay; unsigned char ctsi$b_revisn; /* Console revision */ unsigned __int64 ctsi$q_module_desc [6]; /* Module descriptors */ unsigned int ctsi$l_chnblk [42]; /* Channel blocks of size = (7 longs) */ unsigned __int64 ctsi$q_save; /* Save ptrs */ unsigned __int64 ctsi$q_restore; /* Restore pointers */ unsigned __int64 ctsi$q_trans; /* Translate ptrs */ unsigned __int64 ctsi$q_getchr; /* GET CHAR ptrs */ unsigned int ctsi$l_getchr_state [4]; /* GET CHAR state */ unsigned __int64 ctsi$q_putchr; /* PUT CHAR ptrs */ unsigned int ctsi$l_putchr_state [4]; /* PUT CHAR state */ unsigned __int64 ctsi$q_putmsg; /* Put message routine */ unsigned __int64 ctsi$q_readprompt; /* Read with prompt routine */ } CTSI; #if !defined(__VAXC) #define ctsi$b_flags ctsi$r_flags_overlay.ctsi$b_flags #define ctsi$v_cmuse ctsi$r_flags_overlay.ctsi$r_flags_bits.ctsi$v_cmuse #define ctsi$v_inuse ctsi$r_flags_overlay.ctsi$r_flags_bits.ctsi$v_inuse #define ctsi$v_spare0 ctsi$r_flags_overlay.ctsi$r_flags_bits.ctsi$v_spare0 #define ctsi$v_cm ctsi$r_flags_overlay.ctsi$r_flags_bits.ctsi$v_cm #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 /* __CTSIDEF_LOADED */