00001 #ifndef dsrvdef_h 00002 #define dsrvdef_h 00003 00004 #define DSRV_M_LOG_ENABLD 0x1 00005 #define DSRV_M_LOG_PRESENT 0x2 00006 #define DSRV_M_PKT_LOGGED 0x4 00007 #define DSRV_M_PKT_LOST 0x8 00008 #define DSRV_M_LBSTEP1 0x10 00009 #define DSRV_M_LBSTEP2 0x20 00010 #define DSRV_M_LBEVENT 0x40 00011 #define DSRV_M_HULB_DEL 0x80 00012 #define DSRV_M_MON_ACTIVE 0x100 00013 #define DSRV_M_LB_REQ 0x200 00014 #define DSRV_M_CONFIG_WAIT 0x400 00015 #define DSRV_C_LENGTH 2968 00016 #define DSRV_K_LENGTH 2968 00017 #define DSRV_K_AR_ADD 2 00018 #define DSRV_K_MAX_UNITS 512 00019 #define DSRV_S_DSRVDEF 2968 00020 00021 struct _dsrv { 00022 void *dsrv_l_flink; 00023 void *dsrv_l_blink; 00024 unsigned short int dsrv_w_size; 00025 unsigned char dsrv_b_type; 00026 unsigned char dsrv_b_subtype; 00027 union { 00028 unsigned short int dsrv_w_state; 00029 struct { 00030 unsigned dsrv_v_log_enabld : 1; 00031 unsigned dsrv_v_log_present : 1; 00032 unsigned dsrv_v_pkt_logged : 1; 00033 unsigned dsrv_v_pkt_lost : 1; 00034 00035 unsigned dsrv_v_lbstep1 : 1; 00036 unsigned dsrv_v_lbstep2 : 1; 00037 unsigned dsrv_v_lbevent : 1; 00038 00039 unsigned dsrv_v_hulb_del : 1; 00040 unsigned dsrv_v_mon_active : 1; 00041 unsigned dsrv_v_lb_req : 1; 00042 unsigned dsrv_v_config_wait : 1; 00043 unsigned dsrv_v_fill_2_ : 5; 00044 }; 00045 }; 00046 unsigned short int dsrv_w_bufwait; 00047 void *dsrv_l_log_buf_start; 00048 void *dsrv_l_log_buf_end; 00049 void *dsrv_l_next_read; 00050 void *dsrv_l_next_write; 00051 unsigned short int dsrv_w_inc_lolim; 00052 unsigned short int dsrv_w_inc_hilim; 00053 unsigned short int dsrv_w_exc_lolim; 00054 unsigned short int dsrv_w_exc_hilim; 00055 void *dsrv_l_srvbuf; 00056 void *dsrv_l_free_list; 00057 unsigned int dsrv_l_avail; 00058 unsigned int dsrv_l_buffer_min; 00059 unsigned int dsrv_l_splitxfer; 00060 struct { 00061 unsigned short int dsrv_w_version; 00062 unsigned short int dsrv_w_cflags; 00063 unsigned short int dsrv_w_ctimo; 00064 unsigned short int dsrv_w_reserved; 00065 }; 00066 unsigned long long dsrv_q_ctrl_id; 00067 unsigned int dsrv_l_memw_tot; 00068 unsigned short int dsrv_w_memw_cnt; 00069 unsigned short int dsrv_w_memw_max; 00070 void *dsrv_l_memw_fl; 00071 void *dsrv_l_memw_bl; 00072 unsigned short int dsrv_w_num_host; 00073 unsigned short int dsrv_w_num_unit; 00074 void *dsrv_l_hqb_fl; 00075 void *dsrv_l_hqb_bl; 00076 void *dsrv_l_uqb_fl; 00077 void *dsrv_l_uqb_bl; 00078 unsigned short int dsrv_w_load_avail; 00079 unsigned short int dsrv_w_load_capacity; 00080 unsigned short int dsrv_w_lbload; 00081 unsigned short int dsrv_w_lbresp; 00082 unsigned short int dsrv_w_lm_load1; 00083 unsigned short int dsrv_w_lm_load2; 00084 unsigned short int dsrv_w_lm_load3; 00085 unsigned short int dsrv_w_lm_load4; 00086 unsigned short int dsrv_w_lbinit_cnt; 00087 unsigned short int dsrv_w_lbfail_cnt; 00088 unsigned short int dsrv_w_lbreq_cnt; 00089 unsigned short int dsrv_w_lbresp_cnt; 00090 unsigned int dsrv_l_lbreq_time; 00091 unsigned int dsrv_l_lbmon_time; 00092 struct _fkb *dsrv_l_lm_fkb; 00093 struct _fkb *dsrv_l_lb_fkb; 00094 unsigned short int dsrv_w_lm_interval; 00095 unsigned char dsrv_b_lb_count1; 00096 unsigned char dsrv_b_lb_count2; 00097 void *dsrv_l_hulb_fl; 00098 void *dsrv_l_hulb_bl; 00099 unsigned char dsrv_b_hosts [32]; 00100 void *dsrv_l_units [512]; 00101 struct { 00102 unsigned int dsrv_l_opcount; 00103 unsigned int dsrv_l_abort_cnt; 00104 unsigned int dsrv_l_get_cmd_cnt; 00105 unsigned int dsrv_l_get_unt_cnt; 00106 unsigned int dsrv_l_set_con_cnt; 00107 unsigned int dsrv_l_acc_nvm_cnt; 00108 unsigned int dsrv_l_display_cnt; 00109 unsigned int dsrv_l_get_unn_cnt; 00110 unsigned int dsrv_l_avail_cnt; 00111 unsigned int dsrv_l_onlin_cnt; 00112 unsigned int dsrv_l_set_unt_cnt; 00113 unsigned int dsrv_l_det_acc_cnt; 00114 unsigned int dsrv_l_move_cnt; 00115 unsigned int dsrv_l_dcd_cnt; 00116 unsigned int dsrv_l_reserved14; 00117 unsigned int dsrv_l_reserved15; 00118 unsigned int dsrv_l_acces_cnt; 00119 unsigned int dsrv_l_cmp_con_cnt; 00120 unsigned int dsrv_l_erase_cnt; 00121 unsigned int dsrv_l_flush_cnt; 00122 unsigned int dsrv_l_replc_cnt; 00123 unsigned int dsrv_l_reserved21; 00124 unsigned int dsrv_l_eraseg_cnt; 00125 unsigned int dsrv_l_reserved22; 00126 unsigned int dsrv_l_format_cnt; 00127 unsigned int dsrv_l_wri_his_cnt; 00128 unsigned int dsrv_l_reserved26; 00129 unsigned int dsrv_l_reserved27; 00130 unsigned int dsrv_l_reserved28; 00131 unsigned int dsrv_l_reserved29; 00132 unsigned int dsrv_l_reserved30; 00133 unsigned int dsrv_l_reserved31; 00134 unsigned int dsrv_l_cmp_hst_cnt; 00135 unsigned int dsrv_l_read_cnt; 00136 unsigned int dsrv_l_write_cnt; 00137 unsigned int dsrv_l_rea_ced_cnt; 00138 unsigned int dsrv_l_wri_tm_cnt; 00139 unsigned int dsrv_l_repos_cnt; 00140 unsigned int dsrv_l_reserved38; 00141 unsigned int dsrv_l_reserved39; 00142 unsigned int dsrv_l_reserved40; 00143 unsigned int dsrv_l_reserved41; 00144 unsigned int dsrv_l_reserved42; 00145 unsigned int dsrv_l_reserved43; 00146 unsigned int dsrv_l_reserved44; 00147 unsigned int dsrv_l_reserved45; 00148 unsigned int dsrv_l_reserved46; 00149 unsigned int dsrv_l_reserved47; 00150 unsigned int dsrv_l_terco_cnt; 00151 }; 00152 unsigned int dsrv_l_vcfail_cnt; 00153 unsigned int dsrv_l_blkcount [129]; 00154 unsigned int dsrv_l_pcb; 00155 unsigned int dsrv_l_hrb_tmo_cntr; 00156 }; 00157 00158 #endif 00159 00160