00001 #ifndef cpbdef_h 00002 #define cpbdef_h 00003 00004 #define CPB_C_PRIMARY 0 00005 #define CPB_C_NS 1 00006 #define CPB_C_QUORUM 2 00007 #define CPB_C_RUN 3 00008 #define CPB_C_IMPLICIT_AFFINITY 4 00009 #define CPB_C_SOFT_RAD_AFFINITY 5 00010 #define CPB_C_RAD_0 6 00011 #define CPB_C_RAD_1 7 00012 #define CPB_C_RAD_2 8 00013 #define CPB_C_RAD_3 9 00014 #define CPB_C_RAD_4 10 00015 #define CPB_C_RAD_5 11 00016 #define CPB_C_RAD_6 12 00017 #define CPB_C_RAD_7 13 00018 #define CPB_C_MAX 32 00019 #define CPB_C_MAX_SYSTEM_BITS 16 00020 #define CPB_C_MAX_USER_BITS 16 00021 #define CPB_C_VECTOR 1 00022 #define CPB_M_PRIMARY 0x1 00023 #define CPB_M_VECTOR 0x2 00024 #define CPB_M_QUORUM 0x4 00025 #define CPB_M_RUN 0x8 00026 #define CPB_M_IMPLICIT_AFFINITY 0x10 00027 #define CPB_M_SOFT_RAD_AFFINITY 0x20 00028 #define CPB_M_RAD_0 0x40 00029 #define CPB_M_RAD_1 0x80 00030 #define CPB_M_RAD_2 0x100 00031 #define CPB_M_RAD_3 0x200 00032 #define CPB_M_RAD_4 0x400 00033 #define CPB_M_RAD_5 0x800 00034 #define CPB_M_RAD_6 0x1000 00035 #define CPB_M_RAD_7 0x2000 00036 #define CPB_S_CPBDEF 4 00037 00038 struct _cpb { 00039 union { 00040 unsigned int cpb_l_cpb; 00041 struct { 00042 unsigned cpb_v_primary : 1; 00043 unsigned cpb_v_vector : 1; 00044 unsigned cpb_v_quorum : 1; 00045 unsigned cpb_v_run : 1; 00046 unsigned cpb_v_implicit_affinity : 1; 00047 unsigned cpb_v_soft_rad_affinity : 1; 00048 unsigned cpb_v_rad_0 : 1; 00049 unsigned cpb_v_rad_1 : 1; 00050 unsigned cpb_v_rad_2 : 1; 00051 unsigned cpb_v_rad_3 : 1; 00052 unsigned cpb_v_rad_4 : 1; 00053 unsigned cpb_v_rad_5 : 1; 00054 unsigned cpb_v_rad_6 : 1; 00055 unsigned cpb_v_rad_7 : 1; 00056 unsigned cpb_v_fill_1 : 18; 00057 }; 00058 }; 00059 }; 00060 00061 #define CPB_M_FLAG_CHECK_CPU 0x1 00062 #define CPB_M_FLAG_PERMANENT 0x2 00063 #define CPB_M_FLAG_PRIMARY 0x4 00064 #define CPB_M_FLAG_CHECK_CPU_ACTIVE 0x8 00065 #define CPB_S_CPB_FLAGSDEF 1 00066 00067 struct _cpb_flags { 00068 struct { 00069 unsigned cpb_v_flag_check_cpu : 1; 00070 unsigned cpb_v_flag_permanent : 1; 00071 unsigned cpb_v_flag_primary : 1; 00072 unsigned cpb_v_flag_check_cpu_active: 1; 00073 unsigned cpb_v_flag_filler : 4; 00074 }; 00075 }; 00076 00077 #endif 00078 00079