00001 #ifndef cxbdef_h 00002 #define cxbdef_h 00003 00004 #define CXB_M_RESP 0x1 00005 #define CXB_L_NI_ALTXMT 28 00006 #define CXB_C_AGENT_SCRATCH_LEN 52 00007 00008 #define CXB_K_LENGTH 92 00009 #define CXB_C_LENGTH 92 00010 00011 #define CXB_M_FLTR_MCA 0x1 00012 #define CXB_M_FLTR_CTL 0x2 00013 #define CXB_M_FLTR_SRC 0x4 00014 #define CXB_M_FLTR_STARTUP 0x1 00015 #define CXB_M_FLTR_INTXMIT 0x2 00016 #define CXB_T_R_DATA 128 00017 #define CXB_W_R_LEN_802 140 00018 #define CXB_T_R_USER_ETH 142 00019 #define CXB_W_R_SIZE 142 00020 #define CXB_X_R_CTL 144 00021 #define CXB_G_R_PID 145 00022 #define CXB_T_R_USER_802E 150 00023 #define CXB_C_DLL 52 00024 #define CXB_C_DLL_SCRATCH_LEN 52 00025 00026 #define CXB_K_HEADER 144 00027 #define CXB_C_HEADER 144 00028 #define CXB_C_TRAILER 4 00029 #define CXB_K_OVERHEAD 148 00030 #define CXB_C_OVERHEAD 148 00031 00032 struct _cxb { 00033 union { 00034 struct { 00035 struct _cxb *cxb_l_fl; 00036 struct _cxb *cxb_l_bl; 00037 }; 00038 struct { 00039 void *cxb_ps_pktdata; 00040 void *cxb_ps_uva32; 00041 }; 00042 }; 00043 unsigned short int cxb_w_size; 00044 unsigned char cxb_b_type; 00045 union { 00046 unsigned char cxb_b_flag; 00047 struct { 00048 unsigned cxb_v_resp : 1; 00049 unsigned cxb_v_fill_16_ : 7; 00050 }; 00051 }; 00052 unsigned short int cxb_w_boff; 00053 unsigned short int cxb_w_bcnt; 00054 void *cxb_l_data_chain; 00055 unsigned long long cxb_q_station; 00056 unsigned short int cxb_w_ctl; 00057 unsigned char cxb_b_ctl_size; 00058 unsigned char cxb_b_dsap; 00059 unsigned long long cxb_q_reserved; 00060 union { 00061 char cxb_t_agent_scratch [52]; 00062 union { 00063 unsigned char cxb_t_agent_decnet [52]; 00064 struct { 00065 unsigned short int cxb_w_length; 00066 unsigned short int cxb_w_offset; 00067 unsigned char cxb_b_code; 00068 unsigned char cxb_b_sts; 00069 unsigned short int cxb_w_channel; 00070 void *cxb_l_link; 00071 struct _irp *cxb_l_irp; 00072 int (*cxb_l_end_action)(); 00073 void *cxb_l_r_nsp_msg; 00074 unsigned int cxb_l_r_data_size; 00075 unsigned short int cxb_w_r_seg_num; 00076 short int cxb_w_filler_1; 00077 struct _irp *cxb_l_user_irp; 00078 struct _dcb *cxb_l_last_dcb; 00079 void *cxb_pq_uva64; 00080 }; 00081 }; 00082 }; 00083 union { 00084 char cxb_t_dll [52]; 00085 union { 00086 unsigned char cxb_t_dll_ni802 [52]; 00087 struct { 00088 unsigned char cxb_b_ni_func; 00089 unsigned char cxb_b_r_flags; 00090 union { 00091 unsigned short int cxb_w_ni_rid; 00092 struct { 00093 unsigned char cxb_b_ni_slot; 00094 unsigned char cxb_b_ni_ring; 00095 }; 00096 }; 00097 struct _irp *cxb_l_t_irp; 00098 unsigned short int cxb_w_r_nchain; 00099 unsigned short int cxb_w_r_lenerr; 00100 struct _ucb *cxb_l_r_ucb; 00101 unsigned short int cxb_w_hdr_size; 00102 unsigned char cxb_b_r_fmt; 00103 union { 00104 union { 00105 unsigned char cxb_b_r_filter; 00106 struct { 00107 unsigned cxb_v_fltr_mca : 1; 00108 unsigned cxb_v_fltr_ctl : 1; 00109 unsigned cxb_v_fltr_src : 1; 00110 unsigned cxb_v_fill_17_ : 5; 00111 }; 00112 }; 00113 union { 00114 unsigned char cxb_b_t_filter; 00115 struct { 00116 unsigned cxb_v_fltr_startup : 1; 00117 unsigned cxb_v_fltr_intxmit : 1; 00118 unsigned cxb_v_fill_18_ : 6; 00119 }; 00120 }; 00121 }; 00122 }; 00123 }; 00124 union { 00125 unsigned char cxb_t_dll_ni802xmt [52]; 00126 struct { 00127 char cxbdef_$_nixmt_fill [38]; 00128 unsigned char cxb_t_t_data [14]; 00129 }; 00130 }; 00131 union { 00132 unsigned char cxb_t_dll_ni802rcv [52]; 00133 struct { 00134 char cxbdef_$_nircv_fill1 [36]; 00135 unsigned short int cxb_g_r_dest [3]; 00136 unsigned short int cxb_g_r_src [3]; 00137 unsigned short int cxb_w_r_ptype; 00138 unsigned char cxb_b_r_dsap; 00139 unsigned char cxb_b_r_ssap; 00140 }; 00141 }; 00142 }; 00143 int cxbdef_$_fill_1; 00144 char cxb_b_fill_19_ [4]; 00145 }; 00146 00147 #define CXB_S_CXBDEF 152 00148 00149 #endif 00150 00151