/***************************************************************************/ /** **/ /** 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:41 by OpenVMS SDL V3.7 */ /* Source: 14-JAN-2004 07:50:02 $1$DGA8345:[LIB_H.SRC]TTYDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $TTYMDMDEF ***/ #ifndef __TTYMDMDEF_LOADED #define __TTYMDMDEF_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 /* aka $TTYMODEM via hack in TTYMACS.MAR */ /* */ /* Modem control state table definitions */ /* */ /* */ /* state entry definitions */ /* */ #define MODEM$C_ST_LENGTH 8 /* LENGTH */ #define MODEM$S_MODEM_STATE 8 /* Old size name, synonym for MODEM$S_TT_MODEM_STATE */ typedef struct _tt_modem_state { unsigned char modem$b_st_onmask; /*output signals to activate */ unsigned char modem$b_st_offmask; /*output signals to disable */ unsigned short int modem$w_st_timer; /*timer amount to init */ int (*modem$l_st_routine)(); /*action routine ADDRESS */ } TT_MODEM_STATE; /* */ /* transition definitions */ /* */ #define MODEM$C_TRAN_LENGTH 8 /* LENGTH */ #define MODEM$S_MODEM_TRANS 8 /* Old size name, synonym for MODEM$S_TT_MODEM_TRANS */ typedef struct _tt_modem_trans { unsigned char modem$b_tran_type; /* element type */ unsigned char modem$b_tran_type2; /* unused element type */ unsigned char modem$b_tran_offmask; /* input signals test on */ unsigned char modem$b_tran_onmask; /* input signals test off */ void *modem$l_tran_nstate; /* next state ADDRESS */ } TT_MODEM_TRANS; /* */ /* transition type codes */ /* */ #define MODEM$C_TRAN_DATASET 0 /* dataset */ #define MODEM$C_TRAN_TIME 1 /* timer */ #define MODEM$C_TRAN_END 2 /* end of transition list */ #define MODEM$C_TRAN_DIALTYPE 3 /* test for sysgen parameter */ #define MODEM$C_TRAN_DZ11 4 /* controller = DZ11 */ #define MODEM$C_TRAN_NOMODEM 5 /* line not enabled for modem */ /* */ /* argument type codes */ /* */ #define MODEM$C_INIT 0 /* init line */ #define MODEM$C_SHUTDWN 1 /* hangup command */ #define MODEM$C_NULL 2 /* null, for detecting preset conditions */ #define MODEM$C_DATASET 3 /* dataset interrupt */ #define MODEM$C_TIMER 4 /* timer expiration */ #define MODEM$C_INIT_NORESET 5 /* init modem but not signals */ #define MODEM$C_SHUTDWN_NOHANGUP 6 /* stop modem but not signals */ #define TIMCTRL$M_CANCEL 0x1 #define TIMCTRL$M_ACTIVE 0x2 #define TIMCTRL$S_MODEM_BITS 1 /* Old size name, synonym for TIMCTRL$S_TT_MODEM_BITS */ typedef struct _tt_modem_bits { unsigned timctrl$v_cancel : 1; /*CANCEL TIMER REQUEST */ unsigned timctrl$v_active : 1; /*TIMER CURRENTLY ACTIVE */ unsigned timctrl$v_fill_12_ : 6; } TT_MODEM_BITS; #define MODEM$M_ENABLE 32768 /*mask enable */ #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 /* __TTYMDMDEF_LOADED */