/********************************************************************************************************************************/ /* Created: 9-Mar-2021 22:28:06 by OpenVMS SDL EV3-3 */ /* Source: 09-MAR-2021 22:28:01 $1$DGA8085:[STARLET_H.SRC]STARDEFQZ.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $XMDEF ***/ #ifndef __XMDEF_LOADED #define __XMDEF_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 /* */ /* DEFINITIONS FOR STATUS, CHARACTERISTICS AND ERRORS FOR DMC-11/DMR-11/DMP-11 */ /* */ #ifdef __NEW_STARLET typedef struct _xmdev { unsigned char xmdev$b_p1_class; /* Device Class */ unsigned char xmdev$b_p1_type; /* Device type */ unsigned short int xmdev$w_p1_mms; /* Maximum message size */ unsigned char xmdev$b_p1_char; /* Unit characteristics */ unsigned char xmdev$b_p1_sts; /* Unit Status */ unsigned char xmdev$b_p1_esum; /* Error Summary */ unsigned char xmdev$b_p1_tpi; /* Transmit Pipeline no. */ } XMDEV; #else /* __OLD_STARLET */ struct xmdev { unsigned char xmdev$b_p1_class; /* Device Class */ unsigned char xmdev$b_p1_type; /* Device type */ unsigned short int xmdev$w_p1_mms; /* Maximum message size */ unsigned char xmdev$b_p1_char; /* Unit characteristics */ unsigned char xmdev$b_p1_sts; /* Unit Status */ unsigned char xmdev$b_p1_esum; /* Error Summary */ unsigned char xmdev$b_p1_tpi; /* Transmit Pipeline no. */ } ; #endif /* #ifdef __NEW_STARLET */ #define XM$M_CHR_MOP 0x1 #define XM$M_CHR_LOOPB 0x2 #define XM$M_CHR_HDPLX 0x4 #define XM$M_CHR_SLAVE 0x8 #define XM$M_CHR_MBX 0x10 #define XM$M_CHR_DMC 0x20 #define XM$M_CHR_CTRL 0x40 #define XM$M_CHR_TRIB 0x80 #define XM$M_STS_DCHK 0x100 #define XM$M_STS_TIMO 0x200 #define XM$M_STS_ORUN 0x400 #define XM$M_STS_ACTIVE 0x800 #define XM$M_STS_BUFFAIL 0x1000 #define XM$M_STS_RUNNING 0x2000 #define XM$M_STS_DISC 0x4000 #define XM$M_ERR_FATAL 0x10000 #define XM$M_ERR_MAINT 0x80000 #define XM$M_ERR_LOST 0x100000 #define XM$M_ERR_THRESH 0x200000 #define XM$M_ERR_TRIB 0x400000 #define XM$M_ERR_START 0x800000 #define XM$M_MDM_RTSHLD 0x1 #define XM$M_MDM_STNDBY 0x2 #define XM$M_MDM_MAINT2 0x4 #define XM$M_MDM_MAINT1 0x8 #define XM$M_MDM_FREQ 0x20 #define XM$M_MDM_RDY 0x40 #define XM$M_MDM_POLL 0x80 #define XM$M_MDM_SELM 0x100 #define XM$M_MDM_INT 0x800 #define XM$M_MDM_V35 0x1000 #define XM$M_MDM_RS232 0x4000 #define XM$M_MDM_RS422 0x8000 #define XM$M_MDM_CARRDET 0x1 #define XM$M_MDM_MSTNDBY 0x2 #define XM$M_MDM_CTS 0x4 #define XM$M_MDM_DSR 0x8 #define XM$M_MDM_HDX 0x10 #define XM$M_MDM_RTS 0x20 #define XM$M_MDM_DTR 0x40 #define XM$M_MDM_RING 0x80 #define XM$M_MDM_CHRMOD 0x100 #define XM$M_MDM_MCLOCK 0x200 #define XM$M_MDM_MODTEST 0x400 #define XM$M_MDM_SIGQUAL 0x4000 #define XM$M_MDM_SIGRATE 0x8000 #ifdef __NEW_STARLET typedef union _xmdef { __struct { unsigned xm$v_chr_mop : 1; /* MOP MODE */ unsigned xm$v_chr_loopb : 1; /* LOOP BACK */ unsigned xm$v_chr_hdplx : 1; /* HALF DUPLEX */ unsigned xm$v_chr_slave : 1; /* HALF DUPLEX SLAVE STATION */ unsigned xm$v_chr_mbx : 1; /* MAILBOX IS ENABLED */ unsigned xm$v_chr_dmc : 1; /* DMC-11 COMPATABILITY MODE */ unsigned xm$v_chr_ctrl : 1; /* CONTROL STATION */ unsigned xm$v_chr_trib : 1; /* TRIBUTARY STATION */ unsigned xm$v_sts_dchk : 1; /* DATA CHECK OCCURED */ unsigned xm$v_sts_timo : 1; /* TIMEOUT OCCURED */ unsigned xm$v_sts_orun : 1; /* DATA OVER RUN OCCURED */ unsigned xm$v_sts_active : 1; /* ACTIVE UNIT */ unsigned xm$v_sts_buffail : 1; /* BUFFER ALLOCATION FAILURE OCCURED */ unsigned xm$v_sts_running : 1; /* PROTOCOL RUNNING */ unsigned xm$v_sts_disc : 1; /* LINE DISCONNECT OCCURED */ unsigned xmdef$$_fill_1 : 1; /* SPARE */ unsigned xm$v_err_fatal : 1; /* HARDWARE ERROR */ unsigned xmdef$$_fill_2 : 2; unsigned xm$v_err_maint : 1; /* DDCMP MAINT MESSAGE RECEIVED */ unsigned xm$v_err_lost : 1; /* DATA LOST BECAUSE OF BUFFER SIZE MISMATCH */ unsigned xm$v_err_thresh : 1; /* THRESHOLD ERRORS */ unsigned xm$v_err_trib : 1; /* TRIBUTARY MALFUNCTIONING */ unsigned xm$v_err_start : 1; /* DDCMP START MESSAGE RECEIVED */ } xm$r_xmdef_bits0; __struct { unsigned xm$v_mdm_rtshld : 1; /* RTS HOLD */ unsigned xm$v_mdm_stndby : 1; /* SELECT STANDBY */ unsigned xm$v_mdm_maint2 : 1; /* MAINTENANCE MODE 2 */ unsigned xm$v_mdm_maint1 : 1; /* MAINTENANCE MODE 1 */ unsigned xmdef$$_fill_3 : 1; /* HALF-DUPLEX */ unsigned xm$v_mdm_freq : 1; /* SELECT FREQUENCY */ unsigned xm$v_mdm_rdy : 1; /* DATA TERMINAL READY */ unsigned xm$v_mdm_poll : 1; /* SELECT POLLING MODEM MODE */ unsigned xm$v_mdm_selm : 1; /* MODEM INTERFACE PROGRAM SELECTED */ unsigned xmdef$$_fill_4 : 2; /* UNUSED */ unsigned xm$v_mdm_int : 1; /* INTEGRAL MODEM */ unsigned xm$v_mdm_v35 : 1; /* V.35 */ unsigned xmdef$$_fill_5 : 1; /* UNUSED */ unsigned xm$v_mdm_rs232 : 1; /* RS-232-C OR RS423 */ unsigned xm$v_mdm_rs422 : 1; /* RS-422 */ } xm$r_xmdef_bits1; __struct { unsigned xm$v_mdm_carrdet : 1; /* CARRIER DETECT */ unsigned xm$v_mdm_mstndby : 1; /* MODEM STANDBY */ unsigned xm$v_mdm_cts : 1; /* CLEAR TO SEND */ unsigned xm$v_mdm_dsr : 1; /* DATA SET READY */ unsigned xm$v_mdm_hdx : 1; /* HALF-DUPLEX */ unsigned xm$v_mdm_rts : 1; /* REQUEST TO SEND */ unsigned xm$v_mdm_dtr : 1; /* DATA TERMINAL READY */ unsigned xm$v_mdm_ring : 1; /* RING */ unsigned xm$v_mdm_chrmod : 1; /* CHARACTER OR BIT PROTOCOL MODE */ unsigned xm$v_mdm_mclock : 1; /* MAINTENANCE CLOCK */ unsigned xm$v_mdm_modtest : 1; /* MODEM TEST MODE */ unsigned xmdef$$_fill_6 : 3; /* UNUSED */ unsigned xm$v_mdm_sigqual : 1; /* SIGNAL QUALITY */ unsigned xm$v_mdm_sigrate : 1; /* SIGNAL RATE */ } xm$r_xmdef_bits2; } XMDEF; #if !defined(__VAXC) #define xm$v_chr_mop xm$r_xmdef_bits0.xm$v_chr_mop #define xm$v_chr_loopb xm$r_xmdef_bits0.xm$v_chr_loopb #define xm$v_chr_hdplx xm$r_xmdef_bits0.xm$v_chr_hdplx #define xm$v_chr_slave xm$r_xmdef_bits0.xm$v_chr_slave #define xm$v_chr_mbx xm$r_xmdef_bits0.xm$v_chr_mbx #define xm$v_chr_dmc xm$r_xmdef_bits0.xm$v_chr_dmc #define xm$v_chr_ctrl xm$r_xmdef_bits0.xm$v_chr_ctrl #define xm$v_chr_trib xm$r_xmdef_bits0.xm$v_chr_trib #define xm$v_sts_dchk xm$r_xmdef_bits0.xm$v_sts_dchk #define xm$v_sts_timo xm$r_xmdef_bits0.xm$v_sts_timo #define xm$v_sts_orun xm$r_xmdef_bits0.xm$v_sts_orun #define xm$v_sts_active xm$r_xmdef_bits0.xm$v_sts_active #define xm$v_sts_buffail xm$r_xmdef_bits0.xm$v_sts_buffail #define xm$v_sts_running xm$r_xmdef_bits0.xm$v_sts_running #define xm$v_sts_disc xm$r_xmdef_bits0.xm$v_sts_disc #define xm$v_err_fatal xm$r_xmdef_bits0.xm$v_err_fatal #define xm$v_err_maint xm$r_xmdef_bits0.xm$v_err_maint #define xm$v_err_lost xm$r_xmdef_bits0.xm$v_err_lost #define xm$v_err_thresh xm$r_xmdef_bits0.xm$v_err_thresh #define xm$v_err_trib xm$r_xmdef_bits0.xm$v_err_trib #define xm$v_err_start xm$r_xmdef_bits0.xm$v_err_start #define xm$v_mdm_rtshld xm$r_xmdef_bits1.xm$v_mdm_rtshld #define xm$v_mdm_stndby xm$r_xmdef_bits1.xm$v_mdm_stndby #define xm$v_mdm_maint2 xm$r_xmdef_bits1.xm$v_mdm_maint2 #define xm$v_mdm_maint1 xm$r_xmdef_bits1.xm$v_mdm_maint1 #define xm$v_mdm_freq xm$r_xmdef_bits1.xm$v_mdm_freq #define xm$v_mdm_rdy xm$r_xmdef_bits1.xm$v_mdm_rdy #define xm$v_mdm_poll xm$r_xmdef_bits1.xm$v_mdm_poll #define xm$v_mdm_selm xm$r_xmdef_bits1.xm$v_mdm_selm #define xm$v_mdm_int xm$r_xmdef_bits1.xm$v_mdm_int #define xm$v_mdm_v35 xm$r_xmdef_bits1.xm$v_mdm_v35 #define xm$v_mdm_rs232 xm$r_xmdef_bits1.xm$v_mdm_rs232 #define xm$v_mdm_rs422 xm$r_xmdef_bits1.xm$v_mdm_rs422 #define xm$v_mdm_carrdet xm$r_xmdef_bits2.xm$v_mdm_carrdet #define xm$v_mdm_mstndby xm$r_xmdef_bits2.xm$v_mdm_mstndby #define xm$v_mdm_cts xm$r_xmdef_bits2.xm$v_mdm_cts #define xm$v_mdm_dsr xm$r_xmdef_bits2.xm$v_mdm_dsr #define xm$v_mdm_hdx xm$r_xmdef_bits2.xm$v_mdm_hdx #define xm$v_mdm_rts xm$r_xmdef_bits2.xm$v_mdm_rts #define xm$v_mdm_dtr xm$r_xmdef_bits2.xm$v_mdm_dtr #define xm$v_mdm_ring xm$r_xmdef_bits2.xm$v_mdm_ring #define xm$v_mdm_chrmod xm$r_xmdef_bits2.xm$v_mdm_chrmod #define xm$v_mdm_mclock xm$r_xmdef_bits2.xm$v_mdm_mclock #define xm$v_mdm_modtest xm$r_xmdef_bits2.xm$v_mdm_modtest #define xm$v_mdm_sigqual xm$r_xmdef_bits2.xm$v_mdm_sigqual #define xm$v_mdm_sigrate xm$r_xmdef_bits2.xm$v_mdm_sigrate #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ union xmdef { __struct { unsigned xm$v_chr_mop : 1; /* MOP MODE */ unsigned xm$v_chr_loopb : 1; /* LOOP BACK */ unsigned xm$v_chr_hdplx : 1; /* HALF DUPLEX */ unsigned xm$v_chr_slave : 1; /* HALF DUPLEX SLAVE STATION */ unsigned xm$v_chr_mbx : 1; /* MAILBOX IS ENABLED */ unsigned xm$v_chr_dmc : 1; /* DMC-11 COMPATABILITY MODE */ unsigned xm$v_chr_ctrl : 1; /* CONTROL STATION */ unsigned xm$v_chr_trib : 1; /* TRIBUTARY STATION */ unsigned xm$v_sts_dchk : 1; /* DATA CHECK OCCURED */ unsigned xm$v_sts_timo : 1; /* TIMEOUT OCCURED */ unsigned xm$v_sts_orun : 1; /* DATA OVER RUN OCCURED */ unsigned xm$v_sts_active : 1; /* ACTIVE UNIT */ unsigned xm$v_sts_buffail : 1; /* BUFFER ALLOCATION FAILURE OCCURED */ unsigned xm$v_sts_running : 1; /* PROTOCOL RUNNING */ unsigned xm$v_sts_disc : 1; /* LINE DISCONNECT OCCURED */ unsigned xmdef$$_fill_1 : 1; /* SPARE */ unsigned xm$v_err_fatal : 1; /* HARDWARE ERROR */ unsigned xmdef$$_fill_2 : 2; unsigned xm$v_err_maint : 1; /* DDCMP MAINT MESSAGE RECEIVED */ unsigned xm$v_err_lost : 1; /* DATA LOST BECAUSE OF BUFFER SIZE MISMATCH */ unsigned xm$v_err_thresh : 1; /* THRESHOLD ERRORS */ unsigned xm$v_err_trib : 1; /* TRIBUTARY MALFUNCTIONING */ unsigned xm$v_err_start : 1; /* DDCMP START MESSAGE RECEIVED */ } xm$r_xmdef_bits0; __struct { unsigned xm$v_mdm_rtshld : 1; /* RTS HOLD */ unsigned xm$v_mdm_stndby : 1; /* SELECT STANDBY */ unsigned xm$v_mdm_maint2 : 1; /* MAINTENANCE MODE 2 */ unsigned xm$v_mdm_maint1 : 1; /* MAINTENANCE MODE 1 */ unsigned xmdef$$_fill_3 : 1; /* HALF-DUPLEX */ unsigned xm$v_mdm_freq : 1; /* SELECT FREQUENCY */ unsigned xm$v_mdm_rdy : 1; /* DATA TERMINAL READY */ unsigned xm$v_mdm_poll : 1; /* SELECT POLLING MODEM MODE */ unsigned xm$v_mdm_selm : 1; /* MODEM INTERFACE PROGRAM SELECTED */ unsigned xmdef$$_fill_4 : 2; /* UNUSED */ unsigned xm$v_mdm_int : 1; /* INTEGRAL MODEM */ unsigned xm$v_mdm_v35 : 1; /* V.35 */ unsigned xmdef$$_fill_5 : 1; /* UNUSED */ unsigned xm$v_mdm_rs232 : 1; /* RS-232-C OR RS423 */ unsigned xm$v_mdm_rs422 : 1; /* RS-422 */ } xm$r_xmdef_bits1; __struct { unsigned xm$v_mdm_carrdet : 1; /* CARRIER DETECT */ unsigned xm$v_mdm_mstndby : 1; /* MODEM STANDBY */ unsigned xm$v_mdm_cts : 1; /* CLEAR TO SEND */ unsigned xm$v_mdm_dsr : 1; /* DATA SET READY */ unsigned xm$v_mdm_hdx : 1; /* HALF-DUPLEX */ unsigned xm$v_mdm_rts : 1; /* REQUEST TO SEND */ unsigned xm$v_mdm_dtr : 1; /* DATA TERMINAL READY */ unsigned xm$v_mdm_ring : 1; /* RING */ unsigned xm$v_mdm_chrmod : 1; /* CHARACTER OR BIT PROTOCOL MODE */ unsigned xm$v_mdm_mclock : 1; /* MAINTENANCE CLOCK */ unsigned xm$v_mdm_modtest : 1; /* MODEM TEST MODE */ unsigned xmdef$$_fill_6 : 3; /* UNUSED */ unsigned xm$v_mdm_sigqual : 1; /* SIGNAL QUALITY */ unsigned xm$v_mdm_sigrate : 1; /* SIGNAL RATE */ } xm$r_xmdef_bits2; } ; #if !defined(__VAXC) #define xm$v_chr_mop xm$r_xmdef_bits0.xm$v_chr_mop #define xm$v_chr_loopb xm$r_xmdef_bits0.xm$v_chr_loopb #define xm$v_chr_hdplx xm$r_xmdef_bits0.xm$v_chr_hdplx #define xm$v_chr_slave xm$r_xmdef_bits0.xm$v_chr_slave #define xm$v_chr_mbx xm$r_xmdef_bits0.xm$v_chr_mbx #define xm$v_chr_dmc xm$r_xmdef_bits0.xm$v_chr_dmc #define xm$v_chr_ctrl xm$r_xmdef_bits0.xm$v_chr_ctrl #define xm$v_chr_trib xm$r_xmdef_bits0.xm$v_chr_trib #define xm$v_sts_dchk xm$r_xmdef_bits0.xm$v_sts_dchk #define xm$v_sts_timo xm$r_xmdef_bits0.xm$v_sts_timo #define xm$v_sts_orun xm$r_xmdef_bits0.xm$v_sts_orun #define xm$v_sts_active xm$r_xmdef_bits0.xm$v_sts_active #define xm$v_sts_buffail xm$r_xmdef_bits0.xm$v_sts_buffail #define xm$v_sts_running xm$r_xmdef_bits0.xm$v_sts_running #define xm$v_sts_disc xm$r_xmdef_bits0.xm$v_sts_disc #define xm$v_err_fatal xm$r_xmdef_bits0.xm$v_err_fatal #define xm$v_err_maint xm$r_xmdef_bits0.xm$v_err_maint #define xm$v_err_lost xm$r_xmdef_bits0.xm$v_err_lost #define xm$v_err_thresh xm$r_xmdef_bits0.xm$v_err_thresh #define xm$v_err_trib xm$r_xmdef_bits0.xm$v_err_trib #define xm$v_err_start xm$r_xmdef_bits0.xm$v_err_start #define xm$v_mdm_rtshld xm$r_xmdef_bits1.xm$v_mdm_rtshld #define xm$v_mdm_stndby xm$r_xmdef_bits1.xm$v_mdm_stndby #define xm$v_mdm_maint2 xm$r_xmdef_bits1.xm$v_mdm_maint2 #define xm$v_mdm_maint1 xm$r_xmdef_bits1.xm$v_mdm_maint1 #define xm$v_mdm_freq xm$r_xmdef_bits1.xm$v_mdm_freq #define xm$v_mdm_rdy xm$r_xmdef_bits1.xm$v_mdm_rdy #define xm$v_mdm_poll xm$r_xmdef_bits1.xm$v_mdm_poll #define xm$v_mdm_selm xm$r_xmdef_bits1.xm$v_mdm_selm #define xm$v_mdm_int xm$r_xmdef_bits1.xm$v_mdm_int #define xm$v_mdm_v35 xm$r_xmdef_bits1.xm$v_mdm_v35 #define xm$v_mdm_rs232 xm$r_xmdef_bits1.xm$v_mdm_rs232 #define xm$v_mdm_rs422 xm$r_xmdef_bits1.xm$v_mdm_rs422 #define xm$v_mdm_carrdet xm$r_xmdef_bits2.xm$v_mdm_carrdet #define xm$v_mdm_mstndby xm$r_xmdef_bits2.xm$v_mdm_mstndby #define xm$v_mdm_cts xm$r_xmdef_bits2.xm$v_mdm_cts #define xm$v_mdm_dsr xm$r_xmdef_bits2.xm$v_mdm_dsr #define xm$v_mdm_hdx xm$r_xmdef_bits2.xm$v_mdm_hdx #define xm$v_mdm_rts xm$r_xmdef_bits2.xm$v_mdm_rts #define xm$v_mdm_dtr xm$r_xmdef_bits2.xm$v_mdm_dtr #define xm$v_mdm_ring xm$r_xmdef_bits2.xm$v_mdm_ring #define xm$v_mdm_chrmod xm$r_xmdef_bits2.xm$v_mdm_chrmod #define xm$v_mdm_mclock xm$r_xmdef_bits2.xm$v_mdm_mclock #define xm$v_mdm_modtest xm$r_xmdef_bits2.xm$v_mdm_modtest #define xm$v_mdm_sigqual xm$r_xmdef_bits2.xm$v_mdm_sigqual #define xm$v_mdm_sigrate xm$r_xmdef_bits2.xm$v_mdm_sigrate #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #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 /* __XMDEF_LOADED */