/*********************************************************************** * file: extty.h * part#: * internal sequence#: * * ************************************************************** * * " c Copyright Hewlett-Packard Company, 1984.* All * * * rights are reserved. Copying or other reproduction * * * of this program except for archival purposes is * * * prohibited without the prior written consent of * * * Hewlett-Packard Company." * * ************************************************************** * * Pisces Q-DOS project * Fred Taft * ----------------------------------------------------- * initial 12/83 fdt * * *********************************************************************/ /* Define the size of the handshake array */ #define NHSC 4 /* Define the new structure to be used by calls to Ioctl */ struct ocio { unsigned long cntl_bits; /* cntl & status bits */ unsigned char handshake [NHSC]; /* handshake characters */ }; /* Define the structure to be used for dialing digits */ struct dial_data { unsigned char dial_type; unsigned char digit; }; /* Dialing types */ #define PULSE_DIAL 0x00 #define DTMF_DIAL 0x01 /* Default handshaking character definitions */ #define CENQ 5 /* Ascii ENQ */ #define CACK 6 /* Ascii ACK */ #define CXON 17 /* Ascii XON */ #define CXOFF 19 /* Ascii XOFF */ /* Indices into handshaking array */ #define VENQ 0 #define VACK 1 #define VXON 2 #define VXOFF 3 /* Control Setting Equates */ #define MODEM3_12 0x0001 /* Device type = 300/1200 baud modem */ #define RS232 0x0003 /* Device type = RS232 card */ #define DEV_TYPE 0x0003 /* Mask for device type field */ #define ENABLETX 0x0020 /* Enable Hardware Hndske - xmitter */ #define ENABLERX 0x0040 /* Enable Hardware Hndske - rcvr */ #define ANSWER 0x0400 /* Place modem in answer mode */ #define ENQACKON 0x2000 /* Enable terminal ENQ/ACK Hndske */ /* Event Flags */ #define DELTACTS 0x0001 /* CTS line has changed state */ #define DELTADSR 0x0002 /* DSR line has changed state */ #define DELTARI 0x0004 /* RI line has changed state */ #define DELTADCD 0x0008 /* DCD line has changed state */ #define BREAK_RECVD 0x0010 /* Break was received */ #define INPUT_OVERRUN 0x0020 /* The input buffer has overrun */ /* Ioctl calls */ #define sIOC ('s'<<8) #define GETCTLBITS (sIOC|1) #define SETCTLBITS (sIOC|2) #define GETEVENTS (sIOC|3) #define DIALDIGIT (sIOC|4) #define START_DIAL (sIOC|6) #define END_DIAL (sIOC|7) #define PICKUP_PHONE (sIOC|8) #define HANGUP (sIOC|9) #define AUTO_ANSWER (sIOC|0xA)