00001 #ifndef chdef_h 00002 #define chdef_h 00003 00004 #define ch_c_rexmt_penalty 500 00005 #define ch_c_xmtfail_penalty 10000 00006 00007 struct _chdef { 00008 unsigned long long ch_q_timer_entry; 00009 unsigned short ch_w_size; 00010 unsigned char ch_b_type; 00011 unsigned char ch_b_sub_type; 00012 unsigned short ch_w_state; 00013 union { 00014 unsigned char ch_b_sts; 00015 struct { 00016 unsigned ch_v_path :1; 00017 unsigned ch_v_open :1; 00018 unsigned ch_v_xmt_chaining_disabled :1; 00019 unsigned ch_v_rmt_hwa_valid :1; 00020 }; 00021 }; 00022 unsigned char ch_b_ring_index; 00023 void * ch_l_bus; 00024 void * ch_l_vc; 00025 unsigned long long ch_q_channel_list; 00026 void * ch_l_ch_hash_link; 00027 unsigned long ch_l_average_xmt_time; 00028 unsigned short ch_w_rsvp_thresh; 00029 unsigned char ch_b_remote_ring_size; 00030 unsigned char ch_b_remote_device_type; 00031 unsigned short ch_w_lcl_chan_seq_num; 00032 unsigned short ch_w_rmt_chan_seq_num; 00033 unsigned short ch_w_remote_buffer_size; 00034 unsigned short ch_w_max_buffer_size; 00035 unsigned long ch_l_supported_services; 00036 unsigned long long ch_q_remote_net_address; 00037 unsigned long long ch_q_open_time; 00038 unsigned long long ch_q_close_time; 00039 unsigned long ch_l_best_channel_count; 00040 unsigned long ch_l_preferred_channel_cnt; 00041 unsigned long ch_l_rexmt_penalty; 00042 unsigned long ch_l_xmtfail_penalty; 00043 unsigned long ch_l_xmt_msgs; 00044 unsigned long ch_l_xmt_bytes; 00045 unsigned long ch_l_xmt_ctrl_msgs; 00046 unsigned long ch_l_xmt_ctrl_bytes; 00047 unsigned long ch_l_rcv_mc_msgs; 00048 unsigned long ch_l_rcv_mc_bytes; 00049 unsigned long ch_l_rcv_ctrl_msgs; 00050 unsigned long ch_l_rcv_ctrl_bytes; 00051 unsigned long ch_l_rcv_msgs; 00052 unsigned long ch_l_rcv_bytes; 00053 void * ch_l_clst; 00054 unsigned char ch_b_minor; 00055 unsigned char ch_b_major; 00056 unsigned short ch_w_eco; 00057 unsigned char ch_ab_rmt_dev_name[16]; 00058 unsigned char ch_ab_rmt_lan_hwa[6]; 00059 unsigned char ch_b_rmt_node_hw_type; 00060 unsigned char ch_b_fill_byte; 00061 unsigned short ch_w_cc_hs_tmo; 00062 unsigned short ch_w_cc_listen_tmo; 00063 unsigned short ch_w_cc_rcv_bad_authorize; 00064 unsigned short ch_w_cc_rcv_bad_eco; 00065 unsigned short ch_w_cc_rcv_bad_mc; 00066 unsigned short ch_w_cc_rcv_short_msg; 00067 unsigned short ch_w_cc_rcv_incompat_channel; 00068 unsigned short ch_w_tr_rcv_old_msg; 00069 unsigned short ch_w_cc_no_mscp_server; 00070 unsigned short ch_w_cc_disk_not_served; 00071 unsigned short ch_w_topology_change; 00072 }; 00073 00074 #endif 00075