home *** CD-ROM | disk | FTP | other *** search
- /*
- * rmxdef.h - iRMX (reg. TM) defines for system calls
- * Copyright (C) 1992 Intel Corporation, ALL RIGHTS RESERVED
- */
-
- #ifndef _rmxdefh
- #define _rmxdefh
-
- /* Selection codes used in rq_get_task_tokens */
-
- #define CALLING_TASK_SELECTION (unsigned char) 0
- #define CALLING_JOB_SELECTION (unsigned char) 1
- #define PARAMETER_OBJECT_SELECTION (unsigned char) 2
- #define ROOT_JOB_SELECTION (unsigned char) 3
-
- /* Object type codes used in rq_get_type. */
-
- #define T_JOB (unsigned short) 1
- #define T_TASK (unsigned short) 2
- #define T_MAILBOX (unsigned short) 3
- #define T_SEMAPHORE (unsigned short) 4
- #define T_REGION (unsigned short) 5
- #define T_SEGMENT (unsigned short) 6
- #define T_EXTENSION (unsigned short) 7
- #define T_USER (unsigned short) 0x100
- #define T_CONNECTION (unsigned short) 0x101
- #define T_IO_JOB (unsigned short) 0x300
- #define T_LOG_DEVICE (unsigned short) 0x301
-
-
- /* Exception mode codes used in rq_set_exception_handler. */
-
- #define NO_EXCEPTIONS (unsigned char) 0
- #define AVOIDABLE_EXCEPTIONS (unsigned char) 1
- #define UNAVOIDABLE_EXCEPTIONS (unsigned char) 2
- #define ALL_EXCEPTIONS (unsigned char) 3
-
- /*
- * Bit masks for clearing connection, terminal, special, and link
- * parameter modes used in the BIOS system call rq_a_special
- * and the EIOS system call rq_s_special.
- */
-
- #define CMASK_LINE_EDIT 0x3
- #define CMASK_ECHO 0x4
- #define CMASK_INPUT_PARITY 0x8
- #define CMASK_OUTPUT_PARITY 0x10
- #define CMASK_OUTPUT_CONTROL 0x20
- #define CMASK_OSC 0xC0
-
- #define TMASK_LINE_PROTOCOL 0x2
- #define TMASK_MEDIUM 0x4
- #define TMASK_MODEM 0x8
- #define TMASK_INPUT_PARITY 0x30
- #define TMASK_OUTPUT_PARITY 0x1C0
- #define TMASK_TRANSLATION 0x200
- #define TMASK_AXES 0x400
- #define TMASK_HORIZONTAL 0x800
- #define TMASK_VERTICAL 0x1000
-
- #define SMASK_FLOW 0x1
- #define SMASK_SPECIAL_CHARACTER 0x2
- #define SMASK_BUFFER_DEVICE 0x8000
-
- #define LMASK_LINK_PARITY 0x3
- #define LMASK_LINK_CHAR_LENGTH 0xC
- #define LMASK_LINK_STOP 0x30
- #define LMASK_LINK_USED 0x8000
-
- /*
- * Mode parameter of open, and the mode field of connection_status
- */
-
- #define READ_ONLY (unsigned char) 1
- #define WRITE_ONLY (unsigned char) 2
- #define READ_WRITE (unsigned char) 3
- #define READ_ONLY_NO_SHARE (unsigned char) 4
- #define WRITE_ONLY_NO_SHARE (unsigned char) 5
- #define READ_WRITE_NO_SHARE (unsigned char) 6
-
- /*
- * Share parameter of open and the share field of get_connection_status
- * and get_file_status
- */
-
- #define NO_SHARE (unsigned char) 0
- #define SHARE_READ (unsigned char) 1
- #define SHARE_WRITE (unsigned char) 2
- #define SHARE_ALL (unsigned char) 3
-
- /* Seek modes */
-
- #define SEEK_BACKWARD (unsigned char) 1
- #define SEEK_ABSOLUTE (unsigned char) 2
- #define SEEK_FORWARD (unsigned char) 3
- #define SEEK_END_OF_FILE (unsigned char) 4
-
- /* Used in the access fields of get_file_status */
-
- #define NO_ACCESS 0x00
- #define DELETE_ACCESS_BIT 0x01
- #define READ_ACCESS_BIT 0x02
- #define ADD_ACCESS_BIT 0x04
- #define UPDATE_ACCESS_BIT 0x08
- #define ALL_ACCESS 0x0F
-
- /*
- * Used in the file driver parameter of attach_device and
- * the file driver field of get_connection_status
- */
-
- #define SOA_PHYSICAL_FILE (unsigned char) 1
- #define SOA_STREAM_FILE (unsigned char) 2
- #define SOA_NAMED_FILE (unsigned char) 4
- #define SOA_REMOTE_FILE (unsigned char) 5
- #define SOA_EDOS_FILE (unsigned char) 6
-
- /* Used in the file_drivers field of file_status */
-
- #define FD_PHYSICAL_BIT (unsigned short) 0x01
- #define FD_STREAM_BIT (unsigned short) 0x02
- #define FD_NAMED_BIT (unsigned short) 0x08
- #define FD_REMOTE_BIT (unsigned short) 0x10
- #define FD_EDOS_BIT (unsigned short) 0x20
-
- /* function codes for SPECIAL primitives */
-
- #define SPECIAL_FORMAT (unsigned short) 0
- #define SPECIAL_QUERY (unsigned short) 0
- #define SPECIAL_SATISFY (unsigned short) 1
- #define SPECIAL_NOTIFY (unsigned short) 2
- #define SPECIAL_GET_DEVICE_DATA (unsigned short) 3
- #define SPECIAL_GET_TERM_DATA (unsigned short) 4
- #define SPECIAL_SET_TERM_DATA (unsigned short) 5
- #define SPECIAL_SET_SIGNAL (unsigned short) 6
- #define SPECIAL_REWIND_TAPE (unsigned short) 7
- #define SPECIAL_READ_FILE_MARK (unsigned short) 8
- #define SPECIAL_WRITE_FILE_MARK (unsigned short) 9
- #define SPECIAL_RETENSION_TAPE (unsigned short) 10
- #define SPECIAL_SET_CHAR_FONT (unsigned short) 11
- #define SPECIAL_SET_BAD_INFO (unsigned short) 12
- #define SPECIAL_GET_BAD_INFO (unsigned short) 13
-
- /*
- * Constants with no underscores for compatibility with previous
- * versions of this file.
- */
-
- #define READONLY 1
- #define WRITEONLY 2
- #define READWRITE 3
- #define READONLYNOSHARE 4
- #define WRITEONLYNOSHARE 5
- #define READWRITENOSHARE 6
- #define NOSHARE 0
- #define SHAREREAD 1
- #define SHAREWRITE 2
- #define SHAREALL 3
- #define SEEKBACKWARD 1
- #define SEEKABSOLUTE 2
- #define SEEKFORWARD 3
- #define SEEKENDOFFILE 4
- #define NOACCESS 0x00
- #define DELETEACCESSBIT 0x01
- #define READACCESSBIT 0x02
- #define ADDACCESSBIT 0x04
- #define UPDATEACCESSBIT 0x08
- #define ALLACCESS 0x0F
- #define SOAPHYSICALFILE 1
- #define SOASTREAMFILE 2
- #define SOANAMEDFILE 4
- #define SOAREMOTEFILE 5
- #define FDPHYSICALBIT 0x01
- #define FDSTREAMBIT 0x02
- #define FDNAMEDBIT 0x08
- #define FDREMOTEBIT 0x10
- #define SPECIALFORMAT (unsigned short) 0
- #define SPECIALQUERY (unsigned short) 0
- #define SPECIALSATISFY (unsigned short) 1
- #define SPECIALNOTIFY (unsigned short) 2
- #define SPECIALGETDEVICEDATA (unsigned short) 3
- #define SPECIALGETTERMDATA (unsigned short) 4
- #define SPECIALSETTERMDATA (unsigned short) 5
- #define SPECIALSETSIGNAL (unsigned short) 6
- #define SPECIALREWINDTAPE (unsigned short) 7
- #define SPECIALREADFILEMARK (unsigned short) 8
- #define SPECIALWRITEFILEMARK (unsigned short) 9
- #define SPECIALRETENSIONTAPE (unsigned short) 10
- #define SPECIALSETCHARFONT (unsigned short) 11
- #define SPECIALSETBADINFO (unsigned short) 12
- #define SPECIALGETBADINFO (unsigned short) 13
- #endif
-