00001 #ifndef scs_routines_h
00002 #define scs_routines_h
00003
00004 #if 0
00005 #include <ints.h>
00006 #include <bddef.h>
00007 #include <bdlptrdef.h>
00008 #include <bnamdef.h>
00009 #endif
00010 #include <cdrpdef.h>
00011 #include <cdtdef.h>
00012 #include <far_pointers.h>
00013 #include <fkbdef.h>
00014 #include <kpbdef.h>
00015 #include <pbdef.h>
00016 #if 0
00017 #include <pbodef.h>
00018 #endif
00019 #include <pdtdef.h>
00020 #include <rddef.h>
00021 #include <rdtdef.h>
00022 #include <sbdef.h>
00023 #if 0
00024
00025 #include <sbodef.h>
00026 #include <sppbdef.h>
00027 #endif
00028
00029 int scs_std_accept ( void (*msgadr_p)( unsigned int msg_length, void *msg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p ),
00030 void (*dgadr_p)( unsigned int dg_status, unsigned int dg_length, void *dg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p ),
00031 void (*erradr_p)( unsigned int err_status, unsigned int reason, struct _cdt *cdt_p, struct _pdt *pdt_p),
00032 int initcr,
00033 int minscr,
00034 int initdg,
00035 int blkpri,
00036 void *condat_p,
00037 void *auxstr_p,
00038 void (*badrsp_p)( __unknown_params ),
00039 void (*movadr_p)( unsigned int status, unsigned int move_status, struct _cdt *cdt_p, struct _pdt *pdt_p ),
00040 int load_rating,
00041 void (*complete_p)( unsigned int accept_status, void *unknown_1, void *unknown_2, struct _cdt *cdt_p,
00042 struct _pdt *pdt_p, int accept_parameter ),
00043 struct _cdt *cdt_p,
00044 int accept_parameter
00045 );
00046
00047 int scs_std_allocdg ( struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00048
00049
00050 int scs_std_alloc_msgbuf ( struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00051 void (*ravail_p)( unsigned int stall_return_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00052
00053
00054 int scs_std_alloc_rspid ( struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00055 void (*ravail_p)( unsigned int stall_return_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00056
00057
00058 void scs_std_cancel_mbx ( struct _sppb *sppb );
00059
00060
00061 int scs_std_cancel_wait ( int rwcptr_upd, struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00062
00063
00064 int scs_std_change_affinity( struct _ucb *ucb_p );
00065
00066
00067 void scs_std_cleanup_rbuns( int pooltype, struct _pdt *pdt_p );
00068
00069
00070 int scs_std_config_pth ( void *rmst_lclprt_p, struct _pbo *pbo_p, struct _pb **pb_p );
00071
00072
00073 int scs_std_config_sys ( void *scssystemid_p, struct _sbo *sbo_p, struct _sb **sb_p );
00074
00075
00076 int scs_std_connect ( void (*msgadr_p)( unsigned int msg_length, void *msg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p ),
00077 void (*dgadr_p)( unsigned int dg_status, unsigned int dg_length, void *dg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p ),
00078 void (*erradr_p)( unsigned int err_status, unsigned int reason, struct _cdt *cdt_p, struct _pdt *pdt_p),
00079 void *rsysid_p,
00080 void *rstadr_p,
00081 void *rprnam_p,
00082 void *lprnam_p,
00083 int initcr,
00084 int minscr,
00085 int initdg,
00086 int blkpri,
00087 void *condat_p,
00088 void *auxstr_p,
00089 void (*badrsp_p)( __unknown_params ),
00090 void (*movadr_p)( unsigned int status, unsigned int move_status, struct _cdt *cdt_p, struct _pdt *pdt_p ),
00091 int load_rating,
00092 int (*req_fast_recvmsg_p)( int msg_length, void *msg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp **cdrp_p ),
00093 void (*fast_recvmsg_pm_p)( void *msg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ),
00094 void (*change_aff_p)( struct _sb *sb_p, struct _pb *pb_p, struct _cdt *cdt_p, struct _pdt *pdt_p ),
00095 void (*complete_p)( unsigned int connect_status, unsigned int reject_reason, void *msg_buf_p,
00096 struct _cdt *cdt_p, struct _pdt *pdt_p, int connect_parameter ),
00097 int connect_parameter
00098 );
00099
00100
00101 void scs_std_credit_avail( struct _cdt *cdt_p, struct _pdt *pdt_p );
00102
00103
00104 void scs_std_deallocdg ( void *dgbuf, struct _pdt *pdt_p );
00105
00106
00107 void scs_std_deallocmsg ( struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00108
00109
00110 void scs_std_deall_cdt ( struct _cdt *cdt_p );
00111
00112
00113 int scs_std_deall_rspid ( struct _cdrp *cdrp_p );
00114
00115
00116 void scs_std_dealrgmsg ( void *msg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p );
00117
00118
00119 int scs_std_disconnect ( int distyp, struct _cdt *cdt_p,
00120 void (*complete_p)( unsigned int disconnect_status, void *unknown_1, void *unknown_2, void *unknown_3,
00121 void *unknown_4, int disconnect_parameter ),
00122 int disconnect_param );
00123
00124
00125 int scs_std_fast_recvmsg_chk_res ( struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00126
00127
00128 void scs_std_fast_recvmsg_pm( struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p, struct _bufdesc **bd_p );
00129
00130
00131 int scs_std_fast_recvmsg_request( void *msg_buf_p, struct _pdt *pdt_p, struct _cdt **cdt_p, struct _cdrp **cdrp_p );
00132
00133
00134 void scs_std_fast_sendmsg_ass_res_pm ( void *svapte_boff_bcnt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00135
00136
00137 void scs_std_fast_sendmsg_pm ( int msg_buf_len, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00138 void (*complete)( __unknown_params ) );
00139
00140
00141 int scs_std_fast_sendmsg_request ( void *svapte_boff_bcnt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00142
00143
00144 int scs_std_find_bd( struct _bdlptr *bdlt_p, struct _bnam bnam, struct _bufdesc **bd_p );
00145
00146
00147 int scs_std_find_rdte ( int rspid, struct _scs__rd **rdte_p );
00148
00149
00150 int scs_std_init_bdlt( struct _pdt *pdt_p );
00151
00152
00153 int scs_std_initialize_pdt( struct _pdt *pdt_p );
00154
00155
00156 int scs_std_listen ( void (*msgadr_p)(void *msg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p ),
00157 void (*erradr_p)( unsigned int err_status, unsigned int reason, struct _cdt *cdt_p, struct _pdt *pdt_p),
00158 void *lprnam_p,
00159 void *prinfo_p,
00160 struct _cdt **cdt_p );
00161
00162
00163 void scs_std_lkp_msgwait ( void (*action)( void *action_param, struct _cdt *cdt_p, struct _cdrp *cdrp_p ),
00164 void *action_param, struct _cdt *cdt_p );
00165
00166
00167 void scs_std_lkp_pb_pdt ( void (*action)( struct _sb *sb_p, struct _pb *pb_p, struct _pdt *pdt_p ), struct _pdt *pdt_p );
00168
00169
00170 void scs_std_lkp_rdtcdrp ( void (*action)( void *action_param, struct _cdt *cdt_p, struct _cdrp *cdrp_p ),
00171 void *action_param, struct _cdt *cdt_p );
00172
00173
00174 void scs_std_lkp_rdtwait ( void (*action)( void *action_param, struct _cdt *cdt_p, struct _cdrp *cdrp_p ),
00175 void *action_param, struct _cdt *cdt_p );
00176
00177
00178 int scs_std_map ( void *svapte_boff_bcnt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00179 void (*ravail_p)( unsigned int stall_return_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00180
00181
00182 int scs_std_mreset( int force_flag, void *rstation_p, struct _pdt *pdt_p );
00183
00184
00185 void scs_std_msg_buf_avail( struct _pdt *pdt_p );
00186
00187
00188 int scs_std_mstart( int boot_flag, void *rstation_p, void *boot_address, struct _pdt *pdt_p );
00189
00190
00191 void scs_std_new_pb( struct _pb *pb_p );
00192
00193
00194 void scs_std_new_sb( struct _sb *sb_p );
00195
00196
00197 void scs_std_notify_sysap( int status, struct _pb *pb_p, struct _pdt *pdt_p );
00198
00199
00200 int scs_std_poll_mbx ( int channel_number, void *sysap_name_p, struct _sppb **sppb_p );
00201
00202
00203 int scs_std_poll_mode ( int enable_disable, struct _sppb *sppb_p, void *scssystemid_p );
00204
00205
00206 int scs_std_poll_proc ( int (*notification_p)( unsigned int context_data, void *sysap_name_p,
00207 void *scssystemid_p, void *process_info_p,
00208 void *node_name_p ),
00209 unsigned int context_data, void *sysap_name_p, struct _sppb **sppb_p );
00210
00211
00212 void scs_std_port_init_done( struct _pdt *pdt_p );
00213
00214
00215 int scs_std_queuedg ( void *dg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p );
00216
00217
00218 int scs_std_queuemdgs ( int buffer_count, struct _cdt *cdt_p, struct _pdt *pdt_p, int *buffers_added_ );
00219
00220
00221 int scs_std_rchmsgbuf ( struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00222 void (*ravail_p)( unsigned int stall_return_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00223
00224
00225 int scs_std_rclmsgbuf ( struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00226 void (*ravail_p)( unsigned int stall_return_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00227
00228
00229 void scs_std_recyl_rspid ( struct _cdrp *cdrp_p );
00230
00231
00232 int scs_std_reject ( int rejtyp, struct _cdt *cdt_p,
00233 void (*complete_p)( unsigned int reject_status, void *unknown_1, void *unknown_2, void *unknown_3,
00234 void *unknown_4, int reject_parameter ),
00235 int reject_parameter );
00236
00237
00238 void scs_std_repossess_cdrp ( struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00239
00240
00241 int scs_std_reqdata ( struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00242 void (*complete)( unsigned int completion_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00243
00244
00245 int scs_std_request_data ( struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00246 void (*complete)( unsigned int completion_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00247
00248
00249 void scs_std_restore_credit ( struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00250
00251
00252 void scs_std_resumewaitr( unsigned int resume_status, struct _cdrp *cdrp_p );
00253
00254
00255 void scs_std_resume_thread( unsigned int resume_status, struct _cdrp *cdrp_p );
00256
00257
00258 int scs_std_senddata ( struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00259 void (*complete)( unsigned int completion_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00260
00261
00262 int scs_std_senddata_wmsg ( struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00263 void (*complete)( unsigned int completion_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00264
00265
00266 int scs_std_senddg ( int disposition_flag, int dg_msg_length, struct _cdrp *cdrp_p );
00267
00268
00269 int scs_std_sendmsg ( int msg_buf_len, struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00270 void (*complete)( unsigned int completion_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00271
00272
00273 int scs_std_sendrgdg ( unsigned int disposition_flag, unsigned int dg_msg_length, void *dg_buf_p, struct _cdt *cdt_p, struct _pdt *pdt_p );
00274
00275
00276 int scs_std_send_data ( struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00277 void (*complete)( unsigned int completion_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00278
00279
00280 int scs_std_send_data_wmsg ( int msg_buf_len, struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00281 void (*complete)( unsigned int completion_status, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p ) );
00282
00283
00284 int scs_std_set_load_rating ( int rating, struct _cdt *cdt_p );
00285
00286
00287 void scs_std_shutdown ();
00288
00289
00290 int scs_std_stall ( int stall_condition_code, struct _cdt *cdt_p, struct _pdt *pdt_p, struct _cdrp *cdrp_p,
00291 void (*ravail)( unsigned int stall_return_status, void *cdt_p, void *pdt_p, struct _cdrp *cdrp_p ) );
00292
00293
00294 void scs_std_start_pwf_recov( struct _pb *pb_p, struct _pdt *pdt_p );
00295
00296
00297 void scs_std_unmap ( struct _pdt *pdt_p, struct _cdrp *cdrp_p );
00298
00299
00300 void scs_std_unstallucb ( struct _ucb *ucb_p );
00301
00302
00303 void scs_std_vc_flush( struct _pb *pb_p, struct _pdt *pdt_p );
00304
00305 #endif
00306