home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s038 / 10.ddi / 017.LIF / RMX_DEF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-02  |  6.3 KB  |  193 lines

  1. /*
  2.  * rmxdef.h - iRMX (reg. TM) defines for system calls
  3.  * Copyright (C) 1992 Intel Corporation, ALL RIGHTS RESERVED
  4.  */
  5.  
  6. #ifndef _rmxdefh
  7. #define _rmxdefh
  8.  
  9.     /* Selection codes used in rq_get_task_tokens */
  10.  
  11. #define    CALLING_TASK_SELECTION        (unsigned char) 0
  12. #define    CALLING_JOB_SELECTION        (unsigned char) 1
  13. #define    PARAMETER_OBJECT_SELECTION    (unsigned char) 2
  14. #define    ROOT_JOB_SELECTION            (unsigned char) 3
  15.  
  16.     /* Object type codes used in rq_get_type. */
  17.  
  18. #define    T_JOB                        (unsigned short) 1
  19. #define    T_TASK                        (unsigned short) 2
  20. #define    T_MAILBOX                    (unsigned short) 3
  21. #define    T_SEMAPHORE                    (unsigned short) 4
  22. #define    T_REGION                    (unsigned short) 5
  23. #define    T_SEGMENT                    (unsigned short) 6
  24. #define    T_EXTENSION                    (unsigned short) 7
  25. #define    T_USER                        (unsigned short) 0x100
  26. #define    T_CONNECTION                (unsigned short) 0x101
  27. #define    T_IO_JOB                    (unsigned short) 0x300
  28. #define    T_LOG_DEVICE                (unsigned short) 0x301
  29.  
  30.  
  31.     /* Exception mode codes used in rq_set_exception_handler. */
  32.  
  33. #define NO_EXCEPTIONS                (unsigned char) 0
  34. #define AVOIDABLE_EXCEPTIONS        (unsigned char) 1
  35. #define UNAVOIDABLE_EXCEPTIONS        (unsigned char) 2
  36. #define ALL_EXCEPTIONS                (unsigned char) 3
  37.  
  38.     /*
  39.      * Bit masks for clearing connection, terminal, special, and link
  40.      * parameter modes used in the BIOS system call rq_a_special
  41.      * and the EIOS system call rq_s_special.
  42.      */
  43.  
  44. #define CMASK_LINE_EDIT                0x3
  45. #define CMASK_ECHO                    0x4
  46. #define CMASK_INPUT_PARITY            0x8
  47. #define CMASK_OUTPUT_PARITY            0x10
  48. #define CMASK_OUTPUT_CONTROL        0x20
  49. #define CMASK_OSC                    0xC0
  50.  
  51. #define TMASK_LINE_PROTOCOL            0x2
  52. #define TMASK_MEDIUM                0x4
  53. #define TMASK_MODEM                    0x8
  54. #define TMASK_INPUT_PARITY            0x30
  55. #define TMASK_OUTPUT_PARITY            0x1C0
  56. #define TMASK_TRANSLATION            0x200
  57. #define TMASK_AXES                    0x400
  58. #define TMASK_HORIZONTAL            0x800
  59. #define TMASK_VERTICAL                0x1000
  60.  
  61. #define SMASK_FLOW                    0x1
  62. #define SMASK_SPECIAL_CHARACTER        0x2
  63. #define SMASK_BUFFER_DEVICE            0x8000
  64.  
  65. #define LMASK_LINK_PARITY            0x3
  66. #define LMASK_LINK_CHAR_LENGTH        0xC
  67. #define LMASK_LINK_STOP                0x30
  68. #define LMASK_LINK_USED                0x8000
  69.  
  70.     /*
  71.      * Mode parameter of open, and the mode field of connection_status
  72.      */
  73.  
  74. #define READ_ONLY                    (unsigned char) 1
  75. #define WRITE_ONLY                    (unsigned char) 2
  76. #define READ_WRITE                    (unsigned char) 3
  77. #define READ_ONLY_NO_SHARE            (unsigned char) 4
  78. #define WRITE_ONLY_NO_SHARE            (unsigned char) 5
  79. #define READ_WRITE_NO_SHARE            (unsigned char) 6
  80.     
  81.     /*
  82.      * Share parameter of open and the share field of get_connection_status
  83.      * and get_file_status
  84.      */
  85.  
  86. #define NO_SHARE                    (unsigned char) 0
  87. #define SHARE_READ                    (unsigned char) 1
  88. #define SHARE_WRITE                    (unsigned char) 2
  89. #define SHARE_ALL                    (unsigned char) 3
  90.  
  91.     /* Seek modes */
  92.  
  93. #define SEEK_BACKWARD                (unsigned char) 1
  94. #define SEEK_ABSOLUTE                (unsigned char) 2
  95. #define SEEK_FORWARD                (unsigned char) 3
  96. #define SEEK_END_OF_FILE            (unsigned char) 4
  97.  
  98.     /* Used in the access fields of get_file_status */
  99.  
  100. #define NO_ACCESS                    0x00
  101. #define DELETE_ACCESS_BIT            0x01
  102. #define READ_ACCESS_BIT                0x02
  103. #define ADD_ACCESS_BIT                0x04
  104. #define UPDATE_ACCESS_BIT            0x08
  105. #define ALL_ACCESS                    0x0F
  106.  
  107.     /*
  108.      * Used in the file driver parameter of attach_device and
  109.      * the file driver field of get_connection_status
  110.      */
  111.  
  112. #define SOA_PHYSICAL_FILE            (unsigned char) 1
  113. #define SOA_STREAM_FILE                (unsigned char) 2
  114. #define SOA_NAMED_FILE                (unsigned char) 4
  115. #define    SOA_REMOTE_FILE                (unsigned char) 5
  116. #define    SOA_EDOS_FILE                (unsigned char) 6
  117.  
  118.      /* Used in the file_drivers field of file_status */
  119.  
  120. #define FD_PHYSICAL_BIT                (unsigned short) 0x01
  121. #define FD_STREAM_BIT                (unsigned short) 0x02
  122. #define FD_NAMED_BIT                (unsigned short) 0x08
  123. #define FD_REMOTE_BIT                (unsigned short) 0x10
  124. #define FD_EDOS_BIT                    (unsigned short) 0x20
  125.  
  126.      /* function codes for SPECIAL primitives */
  127.  
  128. #define SPECIAL_FORMAT                (unsigned short) 0
  129. #define SPECIAL_QUERY                (unsigned short) 0
  130. #define SPECIAL_SATISFY                (unsigned short) 1
  131. #define SPECIAL_NOTIFY                (unsigned short) 2
  132. #define SPECIAL_GET_DEVICE_DATA        (unsigned short) 3
  133. #define SPECIAL_GET_TERM_DATA        (unsigned short) 4
  134. #define SPECIAL_SET_TERM_DATA        (unsigned short) 5
  135. #define SPECIAL_SET_SIGNAL            (unsigned short) 6
  136. #define SPECIAL_REWIND_TAPE            (unsigned short) 7
  137. #define SPECIAL_READ_FILE_MARK        (unsigned short) 8
  138. #define SPECIAL_WRITE_FILE_MARK        (unsigned short) 9
  139. #define SPECIAL_RETENSION_TAPE        (unsigned short) 10
  140. #define SPECIAL_SET_CHAR_FONT        (unsigned short) 11
  141. #define SPECIAL_SET_BAD_INFO        (unsigned short) 12
  142. #define SPECIAL_GET_BAD_INFO        (unsigned short) 13
  143.  
  144.     /*
  145.      * Constants with no underscores for compatibility with previous
  146.      * versions of this file.
  147.      */
  148.  
  149. #define READONLY              1
  150. #define WRITEONLY            2
  151. #define READWRITE            3
  152. #define READONLYNOSHARE      4
  153. #define WRITEONLYNOSHARE     5
  154. #define READWRITENOSHARE     6
  155. #define NOSHARE              0
  156. #define SHAREREAD            1
  157. #define SHAREWRITE           2
  158. #define SHAREALL             3
  159. #define SEEKBACKWARD          1
  160. #define SEEKABSOLUTE         2
  161. #define SEEKFORWARD          3
  162. #define SEEKENDOFFILE        4
  163. #define NOACCESS             0x00
  164. #define DELETEACCESSBIT      0x01
  165. #define READACCESSBIT        0x02
  166. #define ADDACCESSBIT         0x04
  167. #define UPDATEACCESSBIT      0x08
  168. #define ALLACCESS              0x0F
  169. #define SOAPHYSICALFILE      1
  170. #define SOASTREAMFILE        2
  171. #define SOANAMEDFILE         4
  172. #define    SOAREMOTEFILE         5
  173. #define FDPHYSICALBIT        0x01
  174. #define FDSTREAMBIT          0x02
  175. #define FDNAMEDBIT           0x08
  176. #define FDREMOTEBIT          0x10
  177. #define SPECIALFORMAT        (unsigned short) 0
  178. #define SPECIALQUERY         (unsigned short) 0
  179. #define SPECIALSATISFY       (unsigned short) 1
  180. #define SPECIALNOTIFY        (unsigned short) 2
  181. #define SPECIALGETDEVICEDATA (unsigned short) 3
  182. #define SPECIALGETTERMDATA   (unsigned short) 4
  183. #define SPECIALSETTERMDATA   (unsigned short) 5
  184. #define SPECIALSETSIGNAL     (unsigned short) 6
  185. #define SPECIALREWINDTAPE     (unsigned short) 7
  186. #define SPECIALREADFILEMARK  (unsigned short) 8
  187. #define SPECIALWRITEFILEMARK (unsigned short) 9
  188. #define SPECIALRETENSIONTAPE (unsigned short) 10
  189. #define SPECIALSETCHARFONT   (unsigned short) 11
  190. #define SPECIALSETBADINFO    (unsigned short) 12
  191. #define SPECIALGETBADINFO    (unsigned short) 13
  192. #endif
  193.