00001 #ifndef cbbdef_h 00002 #define cbbdef_h 00003 00004 #define CBB_M_LOCK_BIT 0x1 00005 #define CBB_M_AUTO_LOCK 0x2 00006 #define CBB_M_TIMEOUT_CRASH 0x4 00007 #define CBB_M_SUMMARY_BITS 0x8 00008 #define CBB_M_SET_COUNT 0x10 00009 00010 #define CBB_K_LENGTH 48 00011 #define CBB_C_LENGTH 48 00012 00013 #define CBB_C_OR 0 00014 #define CBB_C_AND 1 00015 #define CBB_C_XOR 2 00016 #define CBB_C_BIC 3 00017 #define CBB_C_ORNOT 4 00018 #define CBB_C_EQV 5 00019 #define CBB_C_MAX_FUNCTION 5 00020 00021 #define CBB_M_OVERRIDE_LOCK 1 00022 00023 struct _cbb { 00024 unsigned int cbb_l_data_offset; 00025 unsigned short int cbb_w_unit_count; 00026 unsigned char cbb_b_unit_size; 00027 unsigned char cbb_b_lock_ipl; 00028 unsigned short int cbb_w_size; 00029 unsigned char cbb_b_type; 00030 unsigned char cbb_b_subtype; 00031 unsigned int cbb_l_bit_count; 00032 union { 00033 unsigned long long cbb_q_interlock; 00034 union { 00035 unsigned long long cbb_q_state; 00036 struct { 00037 unsigned cbb_v_lock_bit : 1; 00038 unsigned cbb_v_auto_lock : 1; 00039 unsigned cbb_v_timeout_crash : 1; 00040 unsigned cbb_v_summary_bits : 1; 00041 unsigned cbb_v_set_count : 1; 00042 unsigned cbb_v_fill_2_ : 3; 00043 }; 00044 }; 00045 }; 00046 unsigned int cbb_l_timeout_count; 00047 unsigned int cbb_l_saved_ipl; 00048 unsigned int cbb_l_valid_bits; 00049 char cbb_b_cbb_padding_0 [4]; 00050 unsigned long long cbb_q_summary_bitmask; 00051 }; 00052 00053 typedef struct _cbb * CBB_PQ; 00054 typedef struct _cbb ** CBB_PPQ; 00055 00056 #endif 00057 00058