📄 const.h
字号:
/* WHENEVER NODE ROSTER CHANGES */#define SEQWRAP_MASK 2 /* INDICATES WHETHER TO WRAP SEQUENCE */ /* NUMBER: 1 = WRAP, 0 = DON'T WRAP *//*----------------------------------------------------------------------*//* DEFAULT PACKET BUFFER SIZE (FOR V1.2 COMPATIBILITY) *//*----------------------------------------------------------------------*/#define DFLT_PKBUFSZ 100/*----------------------------------------------------------------------*//* COMPONENT CODES *//*----------------------------------------------------------------------*/#define COMP_PSOS 0 /* PSOS+ - KERNEL */#define COMP_PROBE 1 /* PROBE+ - DEBUGGER */#define COMP_PHILE 2 /* PHILE+ - FILE SYSTEM */#define COMP_PREPC 3 /* PREPC+ - RUNTIME LIBRARY */#define COMP_PLM 4 /* pLM+ - SHARED LIBRARY MANAGER */#define COMP_PNA 5 /* PNA+ - NETWORK ACCESS COMPONENT */#define COMP_PSE 6 /* PSE- STREAMS */#define COMP_PMONT 7 /* PMONT- MONITORING TOOL */#define COMP_LAST 7 /* LAST COMPONENT, THERE IS ROOM FOR UP */ /* TO 14, BUT 8 IS ENOUGH FOR NOW */#define MAX_COMP_NUM 14 /* max number of components *//*----------------------------------------------------------------------*//* USER DEFINED COMPONENT NUMBER DEFINITIONS *//*----------------------------------------------------------------------*/#define SVC_MAXMINOR 7 /* Max component no. of UDC sub-comp - (2^n-1)*/#define SVC_MAXNUMFNS 32 /* Max funcs in a UDC subcomp's svcjtab - (2^(8-n)) *//*----------------------------------------------------------------------*//* emu_lock(), emu_unlock(), ecv_signal(), ecv_broadcast() first jump *//* to fast entry. If the call finds that it needs to interact with the *//* scheduler, it jumps to kernel functions. The following is a list *//* of function codes used. *//* *//* These function codes are not visible outside kernel. *//*----------------------------------------------------------------------*/#define EMU_LOCK_SLOW 0#define EMU_UNLOCK_SLOW 1#define ECV_SIGNAL_SLOW 2#define ECV_BROADCAST_SLOW 3/*----------------------------------------------------------------------*//* NUPROBE & PMONT DAEMON TABLE RELATED CONSTANTS *//*----------------------------------------------------------------------*/#define NDMN_TABLE 2 /* 2 daemon tables for NuProbe & pMONT */#define PROBE_DMN 0 /* pROBE daemon table */#define PMONT_DMN 1 /* pMONT daemon table */#define DMNTAB_SIZE 10 /* # of entries in each daemon table */#define SVC_DMN 0 /* Service call daemon */#define IO_DMN 1 /* IO call daemon */#define TIME_DMN 2 /* Timer tick daemon */#define KEV_DMN 3 /* Kernel event daemon */#define RSC_DMN 4 /* Remote Service call daemon */#define CSW_DMN 5 /* Context switch daemon */#define OBC_DMN 6 /* Object create daemon */#define OBD_DMN 7 /* Object delete daemon */#define BRK_DMN 8 /* Break point daemon */#define RSV_DMN 9 /* Entries 9-11 are reserved *//*----------------------------------------------------------------------*//* SERVICE CALL FUNCTION NUMBERS. *//*----------------------------------------------------------------------*/#define SYS_MAX_KCALL 90#define SYS_MAX_ICALL 2#define SYS_MAX_IOCALL 15#define SYS_MAX_XKCALL 116/*----------------------------------------------------------------------*//* NUMBER OF ENTRIES IN THE FAST ENTRY, SLOW ENTRY AND DEBUG ENTRY *//* FUNCTION JUMP TABLES *//*----------------------------------------------------------------------*/#define NUM_FAST_ENTRY 19#define NUM_SLOW_ENTRY 10#define NUM_DEBUG_ENTRY 8#define NUM_COMP_QCALLS 4#ifdef _kernel/*----------------------------------------------------------------------*//* The function codes for various component services and debug services *//* provided by the fast, slow and debug entry points. The services *//* provided by the Ada Entry point also map to the slow entry point. *//* *//* NOTE: Kernel needs the codes to initialize the fast, slow & debug *//* entry jump tables. Keep these in sync with the definitions in the *//* compintf.h and dbgintf.h files. *//*----------------------------------------------------------------------*/#define FEP_CP_NOPRE 0#define FEP_CP_WHO 1#define FEP_CP_RUNNER 2#define FEP_CP_EXTEN 3#define FEP_CP_SETERR 4#define FEP_CP_GETERR 5#define FEP_CP_DATA 6#define FEP_CP_SWREG 7#define FEP_CP_GETTICKS 8#define FEP_EMU_INIT 9#define FEP_ECV_INIT 10#define FEP_EMU_LOCK 11#define FEP_EMU_UNLOCK 12#define FEP_ECV_SIGNAL 13#define FEP_ECV_BROADCAST 14#define FEP_EIOJ_LOCK 15#define FEP_EIOJ_UNLOCK 16#define FEP_SC_REGISTER 17#define FEP_SC_UNREGISTER 18#define SEP_CP_PREEMPT 1#define SEP_CP_WAIT 2#define SEP_CP_WAKE 3#define SEP_EMU_DESTROY 4#define SEP_ECV_WAIT 5#define SEP_ECV_DESTROY 6#define DB_STOPTSK 0#define DB_RESUMETSK 1#define DB_OBVALID 2#define DB_OBIDENT 3#define DB_RNALLOC 4#define DB_RNFREE 5#define DB_DMNCTL 6#define DB_PREEMPTCTL 7#endif/*----------------------------------------------------------------------*//* MULTIPROCESSOR SERVICES. *//*----------------------------------------------------------------------*/#define KI_INIT 1#define KI_GETPKB 2#define KI_RETPKB 3#define KI_SNDPKB 4#define KI_BRDPKB 5#define KI_RECEIVE 6#define KI_TIME 7#define KI_CHECK 8#define KI_ROSTER 9/*----------------------------------------------------------------------*//* SIZE OF HASH TABLE INDEX *//*----------------------------------------------------------------------*/#define HASHSIZE 16/*----------------------------------------------------------------------*//* month definition used in accessing kd_motbl *//*----------------------------------------------------------------------*/#define MONTH_JAN 0#define MONTH_FEB 1#define MONTH_MAR 2#define MONTH_APR 3#define MONTH_MAY 4#define MONTH_JUN 5#define MONTH_JUL 6#define MONTH_AUG 7#define MONTH_SEP 8#define MONTH_OCT 9#define MONTH_NOV 10#define MONTH_DEC 11/*----------------------------------------------------------------------*//* Time for a full day *//*----------------------------------------------------------------------*/#define FULL_DAY 0x00183C3C /* 24:60.60 */#define LOG_RSTR_WRD 5 /* log of one roster word *//*----------------------------------------------------------------------*//* CALLOUT REGISTRATION/UNREGISTRATION SERVICES *//*----------------------------------------------------------------------*/#define CALLOUT_KEY 0XCA11CA00#endif /* _CONST_H *//************************************************************************//* END OF CONST.H *//************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -