📄 sys_conf.h.bak
字号:
/* */
/*---------------------------------------------------------------------*/
#define LM_LOADCO 0
#define LM_UNLOADCO 0
/*---------------------------------------------------------------------*/
/* pREPC+ configuration parameters */
/*---------------------------------------------------------------------*/
#define LC_BUFSIZ (1 << FC_LOGBSIZE) /* I/O buffer size */
#define LC_NUMFILES 5 /* Max number of open files per task */
#define LC_WAITOPT 0 /* Wait option for memory allocation */
#define LC_TIMEOPT 0 /* Timeout option for mem allocation */
/*---------------------------------------------------------------------*/
/* pREPC+ stdin, stdout and stderr device mapping. */
/*---------------------------------------------------------------------*/
#if (SC_DEV_PSCONSOLE)
#define LC_STDIN "///dev/stdin" /* The default STDIN device */
#define LC_STDOUT "///dev/stdout" /* The default STDOUT device */
#define LC_STDERR "///dev/stderr" /* The default STDERR device */
#elif (BSP_CPUFAMILY == FAMILY_X86) && (SC_APP_CONSOLE == PCCON)
#define LC_STDIN "///dev/pcconsole" /* Make PCCON as STDIN device */
#define LC_STDOUT "///dev/pcconsole" /* Make PCCON as STDOUT device */
#define LC_STDERR "///dev/pcconsole" /* Make PCCON as STDERR device */
#elif (SC_DEV_SERIAL)
#define LC_STDIN "///dev/tty" /* Make TTY the STDIN device */
#define LC_STDOUT "///dev/tty" /* Make TTY the STDOUT device */
#define LC_STDERR "///dev/tty" /* Make TTY the STDERR device */
#else
#define LC_STDIN "///dev/null" /* Make NULL the STDIN device */
#define LC_STDOUT "///dev/null" /* Make NULL the STDOUT device */
#define LC_STDERR "///dev/null" /* Make NULL the STDERR device */
#endif
#if (SC_DEV_RAMDISK)
#define LC_TEMPDIR DEV_RAMDISK /* The default TEMPDIR device */
#elif (SC_DEV_SCSI)
#define LC_TEMPDIR DEV_SCSI /* The default TEMPDIR device */
#elif (SC_DEV_IDE)
#define LC_TEMPDIR DEV_IDE /* The default TEMPDIR device */
#elif (SC_DEV_FLOPPY)
#define LC_TEMPDIR DEV_FLOPPY /* The default TEMPDIR device */
#else
#define LC_TEMPDIR 0 /* The default TEMPDIR device */
#endif
/*---------------------------------------------------------------------*/
/* pNA+ configuration parameters */
/* */
/* NOTE: If you get pNA+ errno 5F01 FAT_INSUFFMEM you may need to */
/* decrease the number of buffers allocated here for pNA+. */
/* In general this error means pNA+ could not allocate enough */
/* memory from Region 0 for the number of buffers requested. */
/*---------------------------------------------------------------------*/
#define NC_NNI 5 /* size of pNA NI Table */
#define NC_NROUTE 10 /* size of pNA Routing Table */
#define NC_NARP 20 /* size of pNA ARP table */
#define NC_DEFUID 0 /* Default User ID of a task */
#define NC_DEFGID 0 /* Default Group ID of a task */
#define NC_HOSTNAME "scg" /* Hostname of the node */
#define NC_NHENTRY 8 /* Number of Host table entries */
#define NC_NMCSOCS 0 /* Number of IP multicast sockets */
#define NC_NMCMEMB 0 /* Number of distict IP multicast */
/* group memberships per interface */
#define NC_NNODEID 0 /* Network NODE ID for unnumbered link */
#define NC_NSOCKETS 32 /* Number of sockets in the system */
#define NC_NDESCS 4 /* # of socket descriptors/task */
#define NC_MBLKS 512 /* # of message blocks in the system */
#define NC_BUFS_0 128 /* number of 0 length buffers */
#define NC_BUFS_32 32 /* number of 32 length buffers */
#define NC_BUFS_64 32 /* number of 64 length buffers */
#define NC_BUFS_128 256 /* number of 128 byte buffers */
#define NC_BUFS_256 32 /* number of 256 byte buffers */
#define NC_BUFS_512 32 /* number of 512 byte buffers */
#define NC_BUFS_1024 32 /* number of 1k byte buffers */
#define NC_BUFS_2048 32 /* number of 2k byte buffers */
#define NC_BUFS_4096 128 /* number of 4k byte buffers */
#define NC_MAX_BUFS 9 /* max number of NC_BUFS types */
#define NC_PNAMEM_NEWSCHEME YES /* apply new pNA MEM management scheme*/
#define NC_BUFS_XX_INTERNAL 20 /* # of buffers for internal pNA usage */
#define NC_MBLKS_INT_PERCENT 15 /* % of mblks reserved for pNA internal */
#define NC_MBLKS_TX_PERCENT 40 /* % of mblks reserved for Tx Mem Pool */
#define NC_BUFS_0_TX_PERCENT 50 /* % of 0 length buffers used for Tx */
#define NC_BUFS_32_TX_PERCENT 50 /* % of 32 length buffers used for Tx */
#define NC_BUFS_64_TX_PERCENT 50 /* % of 64 length buffers used for Tx */
#define NC_BUFS_128_TX_PERCENT 50 /* % of 128 byte buffers used for Tx */
#define NC_BUFS_256_TX_PERCENT 50 /* % of 256 byte buffers used for Tx */
#define NC_BUFS_512_TX_PERCENT 50 /* % of 512 byte buffers used for Tx */
#define NC_BUFS_1024_TX_PERCENT 50 /* % of 1k byte buffers used for Tx */
#define NC_BUFS_2048_TX_PERCENT 50 /* % of 2k byte buffers used for Tx */
#define NC_BUFS_4096_TX_PERCENT 50 /* % of 4k byte buffers used for Tx */
/*---------------------------------------------------------------------*/
/* pNA+ daemon task configuration parameters */
/*---------------------------------------------------------------------*/
#define NC_DTASK_SSTKSZ 0x1000 /* pNAD daemon task sstack size*/
#define NC_DTASK_USTKSZ 0x1000 /* pNAD daemon task ustack size*/
#define NC_DTASK_PRIO 255 /* pNAD daemon task priority */
#define NC_NEW_MULTITASK_SYNC YES /* deploy new pNA+ sync scheme */
#define NC_USE_MUTEX YES /* use pSOS MUTEX primitive */
/*---------------------------------------------------------------------*/
/* pNA+ DATA AREA definitions. */
/*---------------------------------------------------------------------*/
#define NC_DATA 0x0 /* pNA+ Data Area Starting Addr*/
#define NC_DATASIZE 0x0 /* pNA+ Data Area Size */
/*---------------------------------------------------------------------*/
/* The following are examples for modifying the following defines */
/* */
/* Using a user written routine as a pNA+ Signal Handler */
/* extern void MySigHandler (void); */
/* #define NC_SIGNAL ((void (*)()) MySigHandler) */
/* */
/*---------------------------------------------------------------------*/
#define NC_SIGNAL 0 /* pNA+ Signal Hdlr */
/*---------------------------------------------------------------------*/
/* pRPC+ configuration parameters */
/*---------------------------------------------------------------------*/
#define NR_PMAP_PRIO 254 /* task priority */
#define NR_PMAP_SSTACK 0x2000 /* supervisor stack size */
#define NR_PMAP_USTACK 0x100 /* user stack size */
#define NR_PMAP_FLAGS T_LOCAL /* t_create flags */
#define NR_PMAP_MODE T_SUPV /* t_start mode */
#define NR_DEBUG_FLAG NO /* Turns on debug msgs from PMAP task */
/*---------------------------------------------------------------------*/
/* pRPC+ DATA AREA definitions. */
/*---------------------------------------------------------------------*/
#define NR_DATA 0x0 /* pRPC+ Data Area Starting Address */
#define NR_DATASIZE 0x0 /* pRPC+ Data Area Size */
/*---------------------------------------------------------------------*/
/* User can change these TWO defines to have their own handlers. */
/*---------------------------------------------------------------------*/
#define NR_GETHOSTNAME nr_gethostname /* Function to get local */
/* host name */
#define NR_GET_HENTBYNAME nr_get_hentbyname /* Function to map host */
/* name to it's IP Addr */
/*---------------------------------------------------------------------*/
/* pSE+ configuration parameters */
/*---------------------------------------------------------------------*/
#define SE_NBUFS_0 64 /* number of 0 length buffers */
#define SE_NBUFS_32 128 /* number of 32 byte buffers */
#define SE_NBUFS_64 128 /* number of 64 byte buffers */
#define SE_NBUFS_128 256 /* number of 128 byte buffers */
#define SE_NBUFS_256 32 /* number of 256 byte buffers */
#define SE_NBUFS_512 32 /* number of 512 byte buffers */
#define SE_NBUFS_1024 16 /* number of 1k byte buffers */
#define SE_NBUFS_2048 16 /* number of 2k byte buffers */
#define SE_NBUFS_4096 8 /* number of 4k byte buffers */
#define SE_MAX_BUFS 9 /* max number of stream buffer types */
#define SE_MAX_MODULES 4 /* max number of streams modules */
#define SE_SHARE_NI NO /* LAN-NI with streams? */
#define SE_DATA_SIZE 0x1000 /* size of pSE data area */
/* (must be at least 3K) */
#define SE_TASK_PRIO 250 /* priority for pSE task */
#define SE_STACK_SIZE 0x2000 /* stack size for pSE task */
#define SE_DEF_UID 0 /* default user id */
#define SE_DEF_GID 0 /* default group id */
#define SE_N_FDS 32 /* max # of system-wide */
/* stream descriptors */
#define SE_N_TASKFDS 8 /* max # of per-task stream */
/* descriptors */
#define SE_N_LINKS 32 /* max # of multiplexing links */
#define SE_N_TIMEOUTS 32 /* max # of timeout requests */
#define SE_N_BUFCALLS 32 /* max # of bufcall requests */
#define SE_N_QUEUES 256 /* # of queues */
#define SE_N_QBANDS (SE_N_QUEUES * 2) /* # of qbands */
#define SE_N_MBLKS 512 /* # of message blocks */
#define SE_PRI_BANDS NO /* Whether priority bands are desired */
#define SE_STRLOG YES /* Whether the log facility is cnfgrd */
#define SE_TMO_RES 2 /* pSE Timer resolution in ticks */
#define SE_MAX_AUTOPUSH 10 /* Max # of autopush entries */
#define SE_SIGHAN
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -