/********************************************************************************************************************************/ /* Created: 9-Mar-2021 22:28:05 by OpenVMS SDL EV3-3 */ /* Source: 09-MAR-2021 22:28:01 $1$DGA8085:[STARLET_H.SRC]STARDEFAE.SDI;1 */ /********************************************************************************************************************************/ /*** MODULE $CSTDEF ***/ #ifndef __CSTDEF_LOADED #define __CSTDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /*+ */ /* */ /* Constants defining single-transition operations */ /* */ #define CST$K_CPU_STOP 1 #define CST$K_CPU_MIGRATE 2 #define CST$K_CPU_START 3 #define CST$K_CPU_ASSIGN 4 #define CST$K_CPU_DEASSIGN 5 #define CST$K_CPU_FAILOVER 6 #define CST$K_CPU_POWER_OFF 7 #define CST$K_CPU_POWER_ON 8 /* */ /* Constants defining multiple operation masks. The starting */ /* position of these values must be in the upper word to save */ /* space for future single-operation codes */ /* */ #define CST$M_RESERVED1 0xFF #define CST$M_CPU_STOP 0x100 #define CST$M_CPU_MIGRATE 0x200 #define CST$M_CPU_START 0x400 #define CST$M_CPU_ASSIGN 0x800 #define CST$M_CPU_DEASSIGN 0x1000 #define CST$M_CPU_FAILOVER 0x2000 #define CST$M_CPU_POWER_OFF 0x4000 #define CST$M_CPU_POWER_ON 0x8000 #ifdef __NEW_STARLET typedef struct _cst_mask { __struct { unsigned cst$v_reserved1 : 8; unsigned cst$v_cpu_stop : 1; unsigned cst$v_cpu_migrate : 1; unsigned cst$v_cpu_start : 1; unsigned cst$v_cpu_assign : 1; unsigned cst$v_cpu_deassign : 1; unsigned cst$v_cpu_failover : 1; unsigned cst$v_cpu_power_off : 1; unsigned cst$v_cpu_power_on : 1; } cst$r_cst_mask; } CST_MASK; #if !defined(__VAXC) #define cst$v_reserved1 cst$r_cst_mask.cst$v_reserved1 #define cst$v_cpu_stop cst$r_cst_mask.cst$v_cpu_stop #define cst$v_cpu_migrate cst$r_cst_mask.cst$v_cpu_migrate #define cst$v_cpu_start cst$r_cst_mask.cst$v_cpu_start #define cst$v_cpu_assign cst$r_cst_mask.cst$v_cpu_assign #define cst$v_cpu_deassign cst$r_cst_mask.cst$v_cpu_deassign #define cst$v_cpu_failover cst$r_cst_mask.cst$v_cpu_failover #define cst$v_cpu_power_off cst$r_cst_mask.cst$v_cpu_power_off #define cst$v_cpu_power_on cst$r_cst_mask.cst$v_cpu_power_on #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ typedef struct _cst_mask { __struct { unsigned cst$v_reserved1 : 8; unsigned cst$v_cpu_stop : 1; unsigned cst$v_cpu_migrate : 1; unsigned cst$v_cpu_start : 1; unsigned cst$v_cpu_assign : 1; unsigned cst$v_cpu_deassign : 1; unsigned cst$v_cpu_failover : 1; unsigned cst$v_cpu_power_off : 1; unsigned cst$v_cpu_power_on : 1; } cst$r_cst_mask; } cst_mask; #if !defined(__VAXC) #define cst$v_reserved1 cst$r_cst_mask.cst$v_reserved1 #define cst$v_cpu_stop cst$r_cst_mask.cst$v_cpu_stop #define cst$v_cpu_migrate cst$r_cst_mask.cst$v_cpu_migrate #define cst$v_cpu_start cst$r_cst_mask.cst$v_cpu_start #define cst$v_cpu_assign cst$r_cst_mask.cst$v_cpu_assign #define cst$v_cpu_deassign cst$r_cst_mask.cst$v_cpu_deassign #define cst$v_cpu_failover cst$r_cst_mask.cst$v_cpu_failover #define cst$v_cpu_power_off cst$r_cst_mask.cst$v_cpu_power_off #define cst$v_cpu_power_on cst$r_cst_mask.cst$v_cpu_power_on #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ /* */ /* Constants defining target software nodes for reassignment */ /* */ #define CST$K_PARTITION -1 #define CST$K_COMMUNITY -2 #define CST$K_HARD_PARTITION -3 #define CST$K_SW_ROOT -4 /* */ /* Constants defining CPU types */ /* */ #define CST$K_ANY_OWNED_CPU -1 #define CST$K_ANY_ACTIVE_CPU -2 #define CST$K_ANY_STOPPED_CPU -3 #define CST$K_ANY_UNOWNED_CPU -4 /* */ /* Constants defining flag parameter characteristics */ /* */ #define CST$M_CPU_DEFAULT_CAPABILITIES 0x1 #define CST$M_CPU_ALLOW_ORPHANS 0x2 #define CST$M_CPU_DECONFIGURE 0x4 #ifdef __NEW_STARLET typedef struct _cst_flags { __struct { unsigned cst$v_cpu_default_capabilities : 1; unsigned cst$v_cpu_allow_orphans : 1; unsigned cst$v_cpu_deconfigure : 1; unsigned cst$v_fill_112_ : 5; } cst$r_cst_flags; } CST_FLAGS; #if !defined(__VAXC) #define cst$v_cpu_default_capabilities cst$r_cst_flags.cst$v_cpu_default_capabilities #define cst$v_cpu_allow_orphans cst$r_cst_flags.cst$v_cpu_allow_orphans #define cst$v_cpu_deconfigure cst$r_cst_flags.cst$v_cpu_deconfigure #endif /* #if !defined(__VAXC) */ #else /* __OLD_STARLET */ typedef struct _cst_flags { __struct { unsigned cst$v_cpu_default_capabilities : 1; unsigned cst$v_cpu_allow_orphans : 1; unsigned cst$v_cpu_deconfigure : 1; unsigned cst$v_fill_112_ : 5; } cst$r_cst_flags; } cst_flags; #if !defined(__VAXC) #define cst$v_cpu_default_capabilities cst$r_cst_flags.cst$v_cpu_default_capabilities #define cst$v_cpu_allow_orphans cst$r_cst_flags.cst$v_cpu_allow_orphans #define cst$v_cpu_deconfigure cst$r_cst_flags.cst$v_cpu_deconfigure #endif /* #if !defined(__VAXC) */ #endif /* #ifdef __NEW_STARLET */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __CSTDEF_LOADED */