00001 #ifndef opcdef_h 00002 #define opcdef_h 00003 00004 #define OPC__RQ_TERME 1 00005 #define OPC__RQ_LOGI 2 00006 #define OPC__RQ_RQST 3 00007 #define OPC__RQ_REPLY 4 00008 #define OPC__RQ_CANCEL 5 00009 #define OPC__RQ_STATUS 6 00010 #define OPC__RQ_SECURITY 7 00011 #define OPC__RQ_LICENSE 8 00012 #define OPC_M_RQ_NOOCS 128 00013 #define OPC_M_NM_CENTRL 0x1 00014 #define OPC_M_NM_PRINT 0x2 00015 #define OPC_M_NM_TAPES 0x4 00016 #define OPC_M_NM_DISKS 0x8 00017 #define OPC_M_NM_DEVICE 0x10 00018 #define OPC_M_NM_CARDS 0x20 00019 #define OPC_M_NM_NTWORK 0x40 00020 #define OPC_M_NM_CLUSTER 0x80 00021 #define OPC_M_NM_SECURITY 0x100 00022 #define OPC_M_NM_REPLY 0x200 00023 #define OPC_M_NM_SOFTWARE 0x400 00024 #define OPC_M_NM_LICENSE 0x800 00025 #define OPC_M_NM_OPER1 0x1000 00026 #define OPC_M_NM_OPER2 0x2000 00027 #define OPC_M_NM_OPER3 0x4000 00028 #define OPC_M_NM_OPER4 0x8000 00029 #define OPC_M_NM_OPER5 0x10000 00030 #define OPC_M_NM_OPER6 0x20000 00031 #define OPC_M_NM_OPER7 0x40000 00032 #define OPC_M_NM_OPER8 0x80000 00033 #define OPC_M_NM_OPER9 0x100000 00034 #define OPC_M_NM_OPER10 0x200000 00035 #define OPC_M_NM_OPER11 0x400000 00036 #define OPC_M_NM_OPER12 0x800000 00037 00038 struct _opcdef { 00039 unsigned char opc_b_ms_type; 00040 union { 00041 struct { 00042 union { 00043 unsigned char opc_b_ms_target; 00044 unsigned char opc_b_ms_enab; 00045 }; 00046 unsigned short int opc_w_ms_status; 00047 }; 00048 unsigned char opc_z_ms_target_classes [3]; 00049 unsigned char opc_z_ms_enab_terminals [3]; 00050 }; 00051 union { 00052 unsigned int opc_l_ms_rplyid; 00053 union { 00054 unsigned int opc_l_ms_mask; 00055 unsigned int opc_l_ms_rqstid; 00056 }; 00057 }; 00058 union { 00059 unsigned int opc_l_ms_text; 00060 struct { 00061 unsigned short int opc_w_ms_ounit; 00062 char opc_t_ms_oname; 00063 }; 00064 }; 00065 short int opcdef_$_fill_1 [7]; 00066 unsigned int opc_l_ms_otext [32]; 00067 union { 00068 unsigned int opc_l_ms_maxsz; 00069 00070 struct { 00071 unsigned opc_v_nm_centrl : 1; 00072 unsigned opc_v_nm_print : 1; 00073 unsigned opc_v_nm_tapes : 1; 00074 unsigned opc_v_nm_disks : 1; 00075 unsigned opc_v_nm_device : 1; 00076 unsigned opc_v_nm_cards : 1; 00077 unsigned opc_v_nm_ntwork : 1; 00078 unsigned opc_v_nm_cluster : 1; 00079 unsigned opc_v_nm_security : 1; 00080 unsigned opc_v_nm_reply : 1; 00081 unsigned opc_v_nm_software : 1; 00082 unsigned opc_v_nm_license : 1; 00083 unsigned opc_v_nm_oper1 : 1; 00084 unsigned opc_v_nm_oper2 : 1; 00085 unsigned opc_v_nm_oper3 : 1; 00086 unsigned opc_v_nm_oper4 : 1; 00087 unsigned opc_v_nm_oper5 : 1; 00088 unsigned opc_v_nm_oper6 : 1; 00089 unsigned opc_v_nm_oper7 : 1; 00090 unsigned opc_v_nm_oper8 : 1; 00091 unsigned opc_v_nm_oper9 : 1; 00092 unsigned opc_v_nm_oper10 : 1; 00093 unsigned opc_v_nm_oper11 : 1; 00094 unsigned opc_v_nm_oper12 : 1; 00095 }; 00096 }; 00097 }; 00098 00099 00100 #define OPC_M_OPR_CENTRAL 0x1 00101 #define OPC_M_OPR_PRINTER 0x2 00102 #define OPC_M_OPR_TAPES 0x4 00103 #define OPC_M_OPR_DISKS 0x8 00104 #define OPC_M_OPR_DEVICES 0x10 00105 #define OPC_M_OPR_CARDS 0x20 00106 #define OPC_M_OPR_NETWORK 0x40 00107 #define OPC_M_OPR_CLUSTER 0x80 00108 #define OPC_M_OPR_SECURITY 0x100 00109 #define OPC_M_OPR_REPLY 0x200 00110 #define OPC_M_OPR_SOFTWARE 0x400 00111 #define OPC_M_OPR_LICENSE 0x800 00112 #define OPC_M_OPR_USER1 0x1000 00113 #define OPC_M_OPR_USER2 0x2000 00114 #define OPC_M_OPR_USER3 0x4000 00115 #define OPC_M_OPR_USER4 0x8000 00116 #define OPC_M_OPR_USER5 0x10000 00117 #define OPC_M_OPR_USER6 0x20000 00118 #define OPC_M_OPR_USER7 0x40000 00119 #define OPC_M_OPR_USER8 0x80000 00120 #define OPC_M_OPR_USER9 0x100000 00121 #define OPC_M_OPR_USER10 0x200000 00122 #define OPC_M_OPR_USER11 0x400000 00123 #define OPC_M_OPR_USER12 0x800000 00124 00125 union _opc_oprdef { 00126 struct { 00127 unsigned opc_v_opr_central : 1; 00128 unsigned opc_v_opr_printer : 1; 00129 unsigned opc_v_opr_tapes : 1; 00130 unsigned opc_v_opr_disks : 1; 00131 unsigned opc_v_opr_devices : 1; 00132 unsigned opc_v_opr_cards : 1; 00133 unsigned opc_v_opr_network : 1; 00134 unsigned opc_v_opr_cluster : 1; 00135 unsigned opc_v_opr_security : 1; 00136 unsigned opc_v_opr_reply : 1; 00137 unsigned opc_v_opr_software : 1; 00138 unsigned opc_v_opr_license : 1; 00139 unsigned opc_v_opr_user1 : 1; 00140 unsigned opc_v_opr_user2 : 1; 00141 unsigned opc_v_opr_user3 : 1; 00142 unsigned opc_v_opr_user4 : 1; 00143 unsigned opc_v_opr_user5 : 1; 00144 unsigned opc_v_opr_user6 : 1; 00145 unsigned opc_v_opr_user7 : 1; 00146 unsigned opc_v_opr_user8 : 1; 00147 unsigned opc_v_opr_user9 : 1; 00148 unsigned opc_v_opr_user10 : 1; 00149 unsigned opc_v_opr_user11 : 1; 00150 unsigned opc_v_opr_user12 : 1; 00151 }; 00152 }; 00153 00154 00155 #define OPC opcdef 00156 00157 #include <opcmsg.h> 00158 00159 #define OPC_K_SYSTEM 1 00160 #define OPC_K_GROUP 2 00161 #define OPC_K_USER 3 00162 #define OPC_K_UNSPEC 4 00163 #define OPC_C_SYSTEM 1 00164 #define OPC_C_GROUP 2 00165 #define OPC_C_USER 3 00166 #define OPC_C_UNSPEC 4 00167 #define OPC_K_SW_VERSION 9 00168 #define OPC_K_MAXREAD 2560 00169 #define OPC_K_MAXMESSAGE 2048 00170 #define OPC_K_COMHDRSIZ 38 00171 #define OPC__OPCOMERROR 99999 00172 #define OPC__X_OPRENABLE 10 00173 #define OPC__X_LOGFILE 11 00174 #define OPC__X_REQUEST 12 00175 #define OPC__X_REPLY 13 00176 #define OPC__X_CANCEL 14 00177 #define OPC__X_STATUS 15 00178 #define OPC__X_SHUTDOWN 16 00179 #define OPC__X_TIMESTAMP 17 00180 #define OPC__X_SECURITY 18 00181 #define OPC__X_CLUSMSG 19 00182 #define OPC__X_DEBUG 20 00183 #define OPC__X_CNXMAN 21 00184 #define OPC__X_REQUEST_END_MARK 22 00185 #define OPC_K_CLMACKNOWLEDGEMENT 1 00186 #define OPC_K_CLMACKNOWLEDGE_PLEASE 2 00187 #define OPC_K_CLMCANCEL 3 00188 #define OPC_K_CLMCHECK_OPERATOR 4 00189 #define OPC_K_CLMCHECK_REQUEST 5 00190 #define OPC_K_CLMCLUMBX 6 00191 #define OPC_K_CLMCLUSTER 7 00192 #define OPC_K_CLMDEVICE 8 00193 #define OPC_K_CLMIMP_CANCEL 9 00194 #define OPC_K_CLMIMP_DISABLE 10 00195 #define OPC_K_CLMOPRENABLE 11 00196 #define OPC_K_CLMREPLY 12 00197 #define OPC_K_CLMREPLY_COMPLETE 13 00198 #define OPC_K_CLMREQUEST 14 00199 #define OPC_K_CLMRPYBRD 15 00200 #define OPC_K_CLMRPYBRD_LOCAL 16 00201 #define OPC_K_CLMRPYNOT 17 00202 #define OPC_K_CLMSECURITY 18 00203 #define OPC_K_CLMSHUTDOWN 19 00204 #define OPC_K_CLMLOGFILE 20 00205 #define OPC_K_CLMREQUEST_END_MARK 21 00206 #define OPC_K_HDR_SIZE 26 00207 00208 struct _header_message { 00209 unsigned char opc_b_rqstcode; 00210 unsigned char opc_b_scope; 00211 unsigned int opc_l_options; 00212 union { 00213 unsigned int opc_l_rq_options; 00214 struct { 00215 unsigned char opc_b_rqopt_code; 00216 unsigned char opc_b_rqopt_fillb; 00217 unsigned short int opc_w_rqopt_fillw; 00218 }; 00219 }; 00220 unsigned int opc_l_attnmask1; 00221 unsigned int opc_l_attnmask2; 00222 unsigned int opc_l_rqstid; 00223 unsigned int opc_l_uic; 00224 }; 00225 00226 #define OPC_M_NOLOG 0x1 00227 #define OPC_M_NOBRD 0x2 00228 #define OPC_M_NOCLUSTER 0x4 00229 00230 union _fill_0_ { 00231 unsigned int opc_l_header_options; 00232 struct { 00233 unsigned opc_v_nolog : 1; 00234 unsigned opc_v_nobrd : 1; 00235 unsigned opc_v_nocluster : 1; 00236 unsigned opc_v_fill_2_ : 5; 00237 }; 00238 }; 00239 00240 #define OPC_K_OPRENABLE_MIN_SIZE 30 00241 00242 struct _oprenable_message { 00243 char opc_b_oprenable_fill [26]; 00244 00245 }; 00246 00247 #define OPC_M_DISABLE 0x1 00248 #define OPC_M_PERMOPER 0x2 00249 #define OPC_M_NOREMIND 0x4 00250 00251 union _fill_3_ { 00252 unsigned int opc_l_oprenable_options; 00253 struct { 00254 unsigned opc_v_disable : 1; 00255 unsigned opc_v_permoper : 1; 00256 unsigned opc_v_noremind : 1; 00257 unsigned opc_v_fill_5_ : 5; 00258 }; 00259 }; 00260 00261 #define OPC_K_LOGFILE_MIN_SIZE 30 00262 #define OPC_K_INITLOG 0 00263 #define OPC_K_CLOSELOG 1 00264 #define OPC_K_ENABLELOG 2 00265 00266 #define OPC_K_DISABLELOG 3 00267 00268 #define OPC_K_MAX_LOGOPT 4 00269 00270 struct _logfile_message { 00271 char opc_b_logfile_fill [26]; 00272 }; 00273 00274 #define OPC_K_REQUEST_MIN_SIZE 28 00275 00276 struct _request_message { 00277 char opc_b_request_fill [26]; 00278 unsigned short int opc_w_request_length; 00279 }; 00280 00281 #define OPC_K_SECURITY_MIN_SIZE 28 00282 00283 struct _security_message { 00284 char opc_b_security_fill [26]; 00285 unsigned short int opc_w_security_length; 00286 }; 00287 00288 #define OPC_K_REPLY_MIN_SIZE 32 00289 00290 struct _reply_message { 00291 char opc_b_reply_fill [26]; 00292 }; 00293 00294 #define OPC_K_STATUS_MIN_SIZE 30 00295 00296 struct _status_message { 00297 char opc_b_status_fill [26]; 00298 }; 00299 00300 #define OPC_K_TIMESTAMP_MIN_SIZE 26 00301 00302 struct _timestamp_message { 00303 char opc_b_timestamp_fill [26]; 00304 }; 00305 00306 #define OPC_K_SHUTDOWN_MIN_SIZE 26 00307 00308 struct _shutdown_message { 00309 char opc_b_shutdown_fill [26]; 00310 }; 00311 00312 #define OPC_M_CLUSTER 0x1 00313 00314 union _fill_6_ { 00315 unsigned int opc_l_shutdown_options; 00316 struct { 00317 unsigned opc_v_cluster : 1; 00318 unsigned opc_v_fill_8_ : 7; 00319 }; 00320 }; 00321 00322 #define OPC_K_CANCEL_MIN_SIZE 26 00323 00324 struct _cancel_message { 00325 char opc_b_cancel_fill [26]; 00326 }; 00327 00328 #define OPC_M_RQSTDONE 0x1 00329 00330 union _fill_9_ { 00331 unsigned int opc_l_cancel_options; 00332 struct { 00333 unsigned opc_v_rqstdone : 1; 00334 unsigned opc_v_fill_11_ : 7; 00335 }; 00336 }; 00337 00338 union _opcf_arg { 00339 int opcf_arg_l_arg_data; 00340 struct { 00341 unsigned short int opcf_arg_w_arg_offset; 00342 unsigned short int opcf_arg_w_arg_cntrl; 00343 }; 00344 }; 00345 00346 struct _opcfao { 00347 unsigned short int opcf_w_msgtype; 00348 unsigned short int opcf_w_spare_1; 00349 unsigned int opcf_l_opc_msg; 00350 unsigned int opcf_l_opc_class_msk; 00351 unsigned int opcf_l_arg_count; 00352 union { 00353 union _opcf_arg opcf_r_item_arg [60]; 00354 char opcf_t_item_cd [240]; 00355 unsigned int opcf_l_item_ld [60]; 00356 }; 00357 }; 00358 00359 #define OPCF_K_AC 1 00360 #define OPCF_K_AD 2 00361 #define OPCF_K_AF 3 00362 #define OPCF_K_AS 4 00363 #define OPCF_K_AS_DEVICE_NAME 5 00364 #define OPCF_K_AZ 6 00365 #define OPCF_K_D 7 00366 #define OPCF_K_I 8 00367 #define OPCF_K_OA 9 00368 #define OPCF_K_OB 10 00369 #define OPCF_K_OH 11 00370 #define OPCF_K_OI 12 00371 #define OPCF_K_OJ 13 00372 #define OPCF_K_OL 14 00373 #define OPCF_K_OQ 15 00374 #define OPCF_K_OW 16 00375 #define OPCF_K_SA 17 00376 #define OPCF_K_SB 18 00377 #define OPCF_K_SH 19 00378 #define OPCF_K_SI 20 00379 #define OPCF_K_SJ 21 00380 #define OPCF_K_SL 22 00381 #define OPCF_K_SQ 23 00382 #define OPCF_K_SW 24 00383 #define OPCF_K_T 25 00384 #define OPCF_K_U 26 00385 #define OPCF_K_UA 27 00386 #define OPCF_K_UB 28 00387 #define OPCF_K_UH 29 00388 #define OPCF_K_UI 30 00389 #define OPCF_K_UJ 31 00390 #define OPCF_K_UL 32 00391 #define OPCF_K_UQ 33 00392 #define OPCF_K_UW 34 00393 #define OPCF_K_XA 35 00394 #define OPCF_K_XB 36 00395 #define OPCF_K_XH 37 00396 #define OPCF_K_XI 38 00397 #define OPCF_K_XJ 39 00398 #define OPCF_K_XL 40 00399 #define OPCF_K_XQ 41 00400 #define OPCF_K_XW 42 00401 #define OPCF_K_ZA 43 00402 #define OPCF_K_ZB 44 00403 #define OPCF_K_ZH 45 00404 #define OPCF_K_ZI 46 00405 #define OPCF_K_ZJ 47 00406 #define OPCF_K_ZL 48 00407 #define OPCF_K_ZQ 49 00408 #define OPCF_K_ZW 50 00409 #define OPCF_K_MIN_OPCFAO_CNTRL 1 00410 #define OPCF_K_MAX_OPCFAO_CNTRL 50 00411 #define OPCF_K_BY_REF 1 00412 #define OPCF_K_BY_VAL 2 00413 #define OPCF_K_BY_DESC 3 00414 00415 #endif 00416 00417