00001 #ifndef scsdef_h
00002 #define scsdef_h
00003
00004 #define SCS_C_OVHD 14
00005 #define SCS_C_CON_REQL 66
00006 #define SCS_C_CON_RSPL 22
00007 #define SCS_C_ACCP_REQL 66
00008 #define SCS_C_ACCP_RSPL 18
00009 #define SCS_C_REJ_REQL 18
00010 #define SCS_C_REJ_RSPL 14
00011 #define SCS_C_DISC_REQL 18
00012 #define SCS_C_DISC_RSPL 14
00013 #define SCS_C_CR_REQL 14
00014 #define SCS_C_CR_RSPL 14
00015 #define SCS_C_CON_REQ 0
00016 #define SCS_C_CON_RSP 1
00017 #define SCS_C_ACCP_REQ 2
00018 #define SCS_C_ACCP_RSP 3
00019 #define SCS_C_REJ_REQ 4
00020 #define SCS_C_REJ_RSP 5
00021 #define SCS_C_DISC_REQ 6
00022 #define SCS_C_DISC_RSP 7
00023 #define SCS_C_CR_REQ 8
00024 #define SCS_C_CR_RSP 9
00025 #define SCS_C_APPL_MSG 10
00026 #define SCS_C_APPL_DG 11
00027 #define SCS_K_APPL_BASE 0
00028 #define SCS_C_APPL_BASE 0
00029 #define SCS_M_UAP 0x1
00030 #define SCS_K_STNORMAL 1
00031 #define SCS_C_STNORMAL 1
00032 #define SCS_K_STNOMAT 10
00033 #define SCS_C_STNOMAT 10
00034 #define SCS_K_STNORS 18
00035 #define SCS_C_STNORS 18
00036 #define SCS_K_STDISC 25
00037 #define SCS_C_STDISC 25
00038 #define SCS_K_STINSFCR 33
00039 #define SCS_C_STINSFCR 33
00040 #define SCS_K_STBALANCE 41
00041 #define SCS_C_STBALANCE 41
00042 #define SCS_K_USE_ALTERNATE_PORT 42
00043 #define SCS_C_USE_ALTERNATE_PORT 42
00044 #define SCS_K_CON_BASE 4
00045 #define SCS_C_CON_BASE 4
00046
00047 #define SCS_S_SCSDEF 84
00048
00049 struct _scs {
00050 union {
00051 unsigned char scs_b_ppd[16];
00052 };
00053 unsigned short scs_w_length;
00054 short fill;
00055 unsigned short scs_w_mtype;
00056 unsigned short scs_w_credit;
00057 unsigned long scs_l_dst_conid;
00058 unsigned long scs_l_src_conid;
00059 unsigned short int scs_w_min_cr;
00060 unsigned short int scs_w_status;
00061 char scs_t_dst_proc [16];
00062 unsigned char scs_b_subnode;
00063 unsigned char scs_b_pgrp;
00064 unsigned short int scs_w_rsv;
00065 char scs_t_src_proc [16];
00066 unsigned char scs_b_con_dat [16];
00067 };
00068
00069 #define SCS_S_SCSDEF1 28
00070
00071 struct _scs1 {
00072 unsigned long scs_l_lconid;
00073 unsigned long scs_l_rspid;
00074 unsigned long scs_l_xct_len;
00075 unsigned long scs_l_snd_name;
00076 unsigned int scs_l_snd_boff;
00077 unsigned int scs_l_rec_name;
00078 unsigned int scs_l_rec_boff;
00079 } ;
00080
00081 #define PPD_C_CNFREC 0x0023
00082 #define PPD_C_CNFWMREC 0x003D
00083 #define PPD_C_DATREC 0x0031
00084 #define PPD_C_DGREC 0x0021
00085 #define PPD_C_EXTCNTLEN 0x0040
00086 #define PPD_C_FU_DG 0x0007
00087 #define PPD_C_IDREC 0x002B
00088 #define PPD_C_INVFS 0x0008
00089 #define PPD_C_INVTC 0x0018
00090 #define PPD_C_LBREC 0x002D
00091 #define PPD_C_LB_LENGTH 0x0046
00092 #define PPD_C_LCB_DATA 0x0013
00093 #define PPD_C_LENGTH 0x0012
00094 #define PPD_C_MCNFREC 0x0029
00095 #define PPD_C_MDATREC 0x0033
00096 #define PPD_C_MIN_DGSIZ 0x0050
00097 #define PPD_C_MSGREC 0x0022
00098 #define PPD_C_OPTCNTLEN 0x0028
00099 #define PPD_C_PSAUTO 0
00100 #define PPD_C_PSP0 0x0001
00101 #define PPD_C_PSP1 0x0002
00102 #define PPD_C_QUEOFFSET 0x000C
00103
00104 #define PPD_C_RDCNT 0x001A
00105 #define PPD_C_REQDAT 0x0008
00106 #define PPD_C_REQDAT0 0x0008
00107 #define PPD_C_REQDAT1 0x0009
00108 #define PPD_C_REQDAT2 0x000A
00109 #define PPD_C_REQID 0x0005
00110 #define PPD_C_REQID_LEN 0x0018
00111 #define PPD_C_REQMDAT 0x000E
00112 #define PPD_C_RETCNF 0x0003
00113 #define PPD_C_RETCNFWM 0x003E
00114 #define PPD_C_RETDAT 0x0011
00115 #define PPD_C_SCSOFFSET_SNODE 0x0008
00116 #define PPD_C_SETCKT 0x0019
00117 #define PPD_C_SETCKT_LEN 0x001C
00118 #define PPD_C_SNDDAT 0x0010
00119 #define PPD_C_SNDDATWM 0x003C
00120 #define PPD_C_SNDDG 0x0001
00121 #define PPD_C_SNDLB 0x000D
00122 #define PPD_C_SNDMDAT 0x0012
00123 #define PPD_C_SNDMSG 0x0002
00124 #define PPD_C_SNDRST 0x0006
00125 #define PPD_C_SNDSTRT 0x0007
00126
00127 #define PPD_C_STABO 0x0004
00128 #define PPD_C_STINVDP 0x0002
00129 #define PPD_C_STINVSN 0x0006
00130 #define PPD_C_STPSV 0
00131 #define PPD_C_STURC 0x0003
00132 #define PPD_C_STURP 0x0001
00133 #define PPD_C_TYPACCV 0x0004
00134 #define PPD_C_TYPBLV 0x0003
00135 #define PPD_C_TYPBMSE 0x0006
00136 #define PPD_C_TYPINVBN 0x0002
00137 #define PPD_C_TYPNP 0x0005
00138 #define PPD_C_TYPOK 0
00139 #define PPD_C_TYPOTHER 0x0007
00140 #define PPD_C_TYPVCC 0x0001
00141 #define PPD_C_UNIMCMD 0x0007
00142 #define PPD_K_LB_LENGTH 0x0046
00143 #define PPD_K_LENGTH 0x0012
00144 #define PPD_K_QUEOFFSET 0x000C
00145 #define PPD_K_REQID_LEN 0x0018
00146 #define PPD_K_SETCKT_LEN 0x001C
00147 #define PPD_M_DISPOSE 0x0001
00148 #define PPD_M_DSTART 0x0080
00149 #define PPD_M_EXTCNT 0x0080
00150 #define PPD_M_FORCE 0x0080
00151 #define PPD_M_RSP 0x0001
00152 #define PPD_V_DISPOSE 0
00153 #define PPD_V_ERR 0
00154 #define PPD_V_EXTCNT 0x0007
00155 #define PPD_V_PS 0x0001
00156 #define PPD_V_RCD 0x0005
00157 #define PPD_V_RSP 0
00158 #define PPD_V_STSST 0x0001
00159 #define PPD_V_STSTYP 0x0005
00160 #define ppd_s_ststyp 3
00161 #define ppd_s_stsst 4
00162
00163 struct _ppd {
00164 union {
00165 unsigned long ppd_l_flink;
00166 unsigned long ppd_l_quefl;
00167 };
00168 union {
00169 unsigned long ppd_l_blink;
00170 unsigned long ppd_l_quebl;
00171 };
00172 union {
00173 unsigned short ppd_w_qsize;
00174 unsigned short ppd_w_size;
00175 };
00176 union {
00177 unsigned char ppd_b_qtype;
00178 unsigned char ppd_b_type;
00179 };
00180 union {
00181 unsigned char ppd_b_spare;
00182 unsigned char ppd_b_swflag;
00183 };
00184 union {
00185 struct {
00186 unsigned char ppd_b_port;
00187 unsigned char ppd_b_status;
00188 };
00189 unsigned short ppd_w_lcb_len7;
00190 };
00191 union {
00192 unsigned char ppd_b_lcb_port;
00193 unsigned char ppd_b_opc;
00194 };
00195 union {
00196 unsigned char ppd_b_flags;
00197 unsigned char ppd_b_lcb_nport;
00198 };
00199
00200 unsigned short ppd_w_length;
00201 unsigned short ppd_w_mtype;
00202 #if 0
00203 10 unsigned long long ppd_q_xct_id
00204 10 unsigned char ppd_b_d_snode
00205 10 unsigned char ppd_b_lcb_lport
00206 10 unsigned long ppd_l_p0_ack
00207 10 unsigned short ppd_w_d_xport
00208 10 unsigned short ppd_w_length
00209 10 unsigned short ppd_w_mask
00210 11 unsigned char ppd_b_d_pgrp
00211 11 unsigned char ppd_b_lcb_opc
00212 12 unsigned char ppd_b_lbdata
00213 12 unsigned char ppd_b_lcb_0
00214 12 unsigned char ppd_b_s_snode
00215 12 unsigned short ppd_w_mtype
00216 12 unsigned short ppd_w_s_xport
00217 13 unsigned char ppd_b_s_pgrp
00218 14 unsigned char ppd_b_systemid
00219 14 unsigned long ppd_l_p0_nak
00220 14 unsigned long ppd_l_rsvd_test
00221 14 unsigned short ppd_w_m_val
00222 18 unsigned long ppd_l_in_vcd
00223 18 unsigned long ppd_l_p0_nrsp
00224 18 unsigned long ppd_l_rport_typ
00225 18 unsigned long ppd_l_st_addr
00226 18 unsigned long ppd_l_xct_len
00227 1a unsigned char ppd_b_protocol
00228 1c unsigned char ppd_b_def_st
00229 1c unsigned long ppd_l_p1_ack
00230 1c unsigned long ppd_l_rport_rev
00231 1c unsigned long ppd_l_snd_name
00232 1c unsigned short ppd_w_maxdg
00233 1e unsigned short ppd_w_maxmsg
00234 20 unsigned long ppd_l_p1_nak
00235 20 unsigned long ppd_l_rport_fcn
00236 20 unsigned long ppd_l_snd_boff
00237 20 unsigned char ppd_t_swtype[4]
00238 24 unsigned char ppd_b_rst_port
00239 24 unsigned long ppd_l_p1_nrsp
00240 24 unsigned long ppd_l_rec_name
00241 24 unsigned char ppd_t_swvers
00242 25 unsigned char ppd_b_rstate
00243 28 unsigned long ppd_l_dg_disc
00244 28 unsigned long ppd_l_port_fcn_ext
00245 28 unsigned long ppd_l_rec_boff
00246 28 unsigned long long ppd_q_swincarn
00247 2c unsigned char ppd_b_prtctr_len
00248 2c unsigned long ppd_l_port_fcn_ext2
00249 2d unsigned char ppd_b_impctr_len
00250 30 unsigned long ppd_l_spare1_cnt
00251 30 unsigned long long ppd_q_sub_map
00252 30 unsigned char ppd_t_hwtype[4]
00253 34 unsigned char ppd_b_hwvers
00254 34 unsigned long ppd_l_spare2_cnt
00255 38 unsigned long ppd_l_spare3_cnt
00256 3c unsigned long ppd_l_spare4_cnt
00257 40 unsigned long ppd_l_snddat_oper_snt
00258 40 unsigned long long ppd_q_nodename
00259 42 unsigned long ppd_l_lbcrc
00260 44 unsigned long ppd_l_snddat_data_snt
00261 48 unsigned long ppd_l_snddat_bodies_snt
00262 48 unsigned long long ppd_q_curtime
00263 4c unsigned long ppd_l_reqdat_oper_snt
00264 50 unsigned long ppd_l_retdat_data_rcv
00265 54 unsigned long ppd_l_retdat_bodies_rcv
00266 58 unsigned long ppd_l_sntdat_bodies_rec
00267 58 unsigned long ppd_l_sntdat_bodies_rec
00268 5c unsigned long ppd_l_sntdat_data_rec
00269 5c unsigned long ppd_l_sntdat_data_rec
00270 60 unsigned long ppd_l_cnf_snt
00271 64 unsigned long ppd_l_datreq_bodies_rcv
00272 68 unsigned long ppd_l_retdat_bodies_snt
00273 6c unsigned long ppd_l_retdat_data_snt
00274 70 unsigned long ppd_l_dgsnt
00275 70 unsigned long ppd_l_pckt_xmit
00276 74 unsigned long ppd_l_dg_txt_snt
00277 74 unsigned long ppd_l_pckt_rcv
00278 78 unsigned long ppd_l_msg_snt
00279 78 unsigned long ppd_l_pckt_rcrc
00280 7c unsigned long ppd_l_msg_txt_snt
00281 7c unsigned short ppd_w_rspr_wpe
00282 7e unsigned short ppd_w_mbpb_wpe
00283 7e unsigned short ppd_w_mbpb_wpe
00284 80 unsigned long ppd_l_misc_snt
00285 80 unsigned short ppd_w_cmdr_wpe
00286 82 unsigned short ppd_w_intr_wpe
00287 84 unsigned long ppd_l_dg_rec
00288 84 unsigned short ppd_w_mar_wpe
00289 86 unsigned short ppd_w_mbr_wpe
00290 88 unsigned long ppd_l_dg_txtrec
00291 88 unsigned short ppd_w_mpb_rpe
00292 8a unsigned short ppd_w_tbuf_pe
00293 8c unsigned long ppd_l_msg_rec
00294 8c unsigned short ppd_w_mib_pe
00295 8e unsigned short ppd_w_mcwi_pe
00296 90 unsigned long ppd_l_msg_txt_rec
00297 90 unsigned short ppd_w_yreg_pe
00298 92 unsigned short ppd_w_xreg_pe
00299 94 unsigned long ppd_l_misc_rec
00300 #endif
00301 };
00302
00303 #endif
00304