00001 #ifndef portdef_h 00002 #define portdef_h 00003 00004 #define PORT_C_ERRLOG_THRES 0x0A 00005 #define PORT_C_ERR_RATE_INT 0x03 00006 #define PORT_C_INIT_LBUF_MAX 0x0180 00007 #define PORT_C_INIT_LBUF_QUO 0x01 00008 #define PORT_C_INIT_SBUF_MAX 0x0300 00009 #define PORT_C_INIT_SBUF_QUO 0x08 00010 #define PORT_C_LENGTH 0x0264 00011 #define PORT_C_QUE_NUMBER 0x0A 00012 #define PORT_C_SBUF_QUO_INCR 0x01 00013 #define PORT_C_VC_MAX 0x0100 00014 00015 #define PORT_K_FIRST_CYCL_WRK 0x01 00016 #define PORT_K_FIRST_WRK 0x00 00017 #define PORT_K_LAST_WRK 0x04 00018 00019 #define PORT_M_AUTHORIZE 0x01 00020 #define PORT_M_DISABLED 0x40 00021 #define PORT_M_FORK 0x02 00022 #define PORT_M_NEED_DFQ 0x20 00023 #define PORT_M_NEED_LBUF 0x04 00024 #define PORT_M_NEED_MFQ 0x10 00025 #define PORT_M_NEED_SBUF 0x08 00026 #define PORT_M_WRK_LDL 0x08 00027 #define PORT_M_WRK_RWAITQ 0x01 00028 #define PORT_M_WRK_VCQ 0x02 00029 00030 #define PORT_Q_AUTHORIZE 0x80 00031 #define PORT_Q_BUS_LIST 0x70 00032 00033 #define PORT_S_HASH 0x06 00034 #define PORT_S_NODENAME 0x08 00035 00036 #define PORT_V_AUTHORIZE 0x00 00037 #define PORT_V_DISABLED 0x06 00038 #define PORT_V_FORK 0x01 00039 #define PORT_V_HASH 0x20 00040 #define PORT_V_NEED_DFQ 0x05 00041 #define PORT_V_NEED_LBUF 0x02 00042 #define PORT_V_NEED_MFQ 0x04 00043 #define PORT_V_NEED_SBUF 0x03 00044 #define PORT_V_WRK_INTR 0x02 00045 #define PORT_V_WRK_LDL 0x03 00046 #define PORT_V_WRK_RWAITQ 0x00 00047 #define PORT_V_WRK_TIMER 0x04 00048 #define PORT_V_WRK_VCQ 0x01 00049 00050 struct _port { 00051 00052 void * port_a_portqb; 00053 void * port_a_intr_srv; 00054 unsigned short port_w_short; 00055 unsigned char port_b_type; 00056 unsigned char port_b_sub_type; 00057 unsigned char port_b_vc_num; 00058 unsigned char port_b_vc_cnt; 00059 unsigned char port_b_vc_last; 00060 unsigned char port_b_max_cache; 00061 unsigned long long port_q_fork; 00062 unsigned short port_w_sts; 00063 unsigned char port_b_max_rexmt; 00064 unsigned char port_b_flck; 00065 void * port_a_fpc; 00066 unsigned long port_l_fr3; 00067 unsigned long port_l_fr4; 00068 union { 00069 unsigned long long port_q_vc_work; 00070 unsigned long long port_q_que_first; 00071 } 00072 unsigned long long port_q_sbuf_free; 00073 unsigned long long port_q_lbuf_free; 00074 unsigned long long port_q_dfq; 00075 unsigned long long port_q_mfq; 00076 unsigned long long port_q_xmt_ldl; 00077 unsigned long long port_q_rwaitq; 00078 unsigned long long port_q_rspq; 00079 unsigned long long port_q_bus_list; 00080 unsigned long port_l_secs_zeroed; 00081 unsigned short port_w_clock; 00082 unsigned short port_w_wrk; 00083 unsigned long long port_q_authorize; 00084 unsigned long port_l_services; 00085 unsigned short port_w_max_lngmsg; 00086 unsigned short port_w_max_lngdg; 00087 void * port_a_vcvec0; 00088 unsigned short port_w_delay_ack; 00089 unsigned short port_w_delay_seq; 00090 unsigned char port_t_nodename[8]; 00091 unsigned short port_w_sbuf_size; 00092 unsigned short port_w_lbuf_size; 00093 unsigned short port_w_sbuf_cnt; 00094 unsigned short port_w_sbuf_quo; 00095 unsigned short port_w_sbuf_max; 00096 unsigned short port_w_lbuf_cnt; 00097 unsigned short port_w_lbuf_quo; 00098 unsigned short port_w_lbuf_max; 00099 unsigned long port_l_tot_lbuf_allocs; 00100 unsigned long port_l_tot_sbuf_allocs; 00101 unsigned short port_w_lbuf_lookaside_miss; 00102 unsigned short port_w_sbuf_lookaside_miss; 00103 unsigned short port_w_sbuf_inuse_cnt; 00104 unsigned short port_w_sbuf_inuse_peak; 00105 unsigned short port_w_sysid_hi; 00106 unsigned short port_w_lbuf_inuse_cnt; 00107 unsigned short port_w_lbuf_inuse_peak; 00108 unsigned short port_w_pci_sbuf_empty; 00109 unsigned short port_w_pci_lbuf_empty; 00110 unsigned short port_w_tr_sbuf_empty; 00111 unsigned short port_w_bus_count; 00112 void * port_a_link; 00113 unsigned char port_b_scan_xack; 00114 unsigned char port_b_scan_xseq; 00115 unsigned char port_b_scan_sbuf; 00116 unsigned char port_b_need_sack; 00117 unsigned long port_l_sysid_lo; 00118 unsigned short port_w_sysid_hi; 00119 unsigned short port_w_group; 00120 unsigned long port_l_mcast_lo; 00121 unsigned short port_w_mcast_hi; 00122 unsigned char port_b_tim_err_log; 00123 unsigned long port_l_maint; 00124 unsigned char port_b_minor; 00125 unsigned char port_b_major; 00126 unsigned short port_w_eco; 00127 unsigned long port_l_port_fcn; 00128 unsigned long port_l_sta_info; 00129 unsigned char port_t_rstport[6]; 00130 unsigned short port_w_filler; 00131 unsigned char port_t_mask_sbuf[32]; 00132 unsigned char port_t_mask_xack[32]; 00133 unsigned char port_t_mask_xseq[32]; 00134 unsigned char port_al_vec0_hash[256]; 00135 void * port_a_pdt; 00136 void * port_a_ucb; 00137 } 00138 00139 00140 #endif 00141