⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sys_conf.h

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 H
📖 第 1 页 / 共 5 页
字号:
#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    64       /* Number of sockets in the system     */#define NC_NDESCS      8        /* # of socket descriptors/task        */#define NC_MBLKS     300        /* # of message blocks in the system   */#define NC_BUFS_0     64        /* number of 0 length buffers          */#define NC_BUFS_32     0        /* number of 32 length buffers         */#define NC_BUFS_64     0        /* number of 64 length buffers         */#define NC_BUFS_128  256        /* number of 128 byte buffers          */#define NC_BUFS_256    0        /* number of 256 byte buffers          */#define NC_BUFS_512    0        /* number of 512 byte buffers          */#define NC_BUFS_1024  16        /* number of 1k byte buffers           */#define NC_BUFS_2048  48        /* number of 2k byte buffers           */#define NC_BUFS_4096   0        /* 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         0x800   /* pNAD daemon task sstack size*/#define NC_DTASK_USTKSZ         0x400   /* 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                 0       /* pNA+ Data Area Starting Addr*/#define NC_DATASIZE             0       /* 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           0        /* pRPC+ Data Area Starting Address */#define NR_DATASIZE       0        /* 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_SIGHANDLER   NULL     /* pSE global signal handler          */#define SE_LOG_BUFSIZE  100      /* Maximum size of the log message    */#define SE_NUM_LOG_BUFFERS   25  /* Number of log buffs to be allocated*/#define SE_BUF_BORROW_LEVEL  0   /* The buffer borrowing level desired */#define SE_NO_GLOBAL_LOCKING NO  /* Whether global locking is desired  */#define SE_PCRASH_BUF_SIZE   8192   /* default pcrash buffer size      */#define SE_HI_BUF_RESVN_PERCENT  12 /* Hi buffer reservation %         */#define SE_MED_BUF_RESVN_PERCENT 13 /* Med buffer reservation %        */#define SE_USE_MUTEX             YES /* Use mutex locks                */#define SE_GETTICKS_FN      tm_getticks  /* Use the default tm_getticks*/                                         /* function.                  */#define SE_COMPAT_MODE      2    /* Compatibility mode Level.          *//*---------------------------------------------------------------------*//* Following macro SE_PRINTF uses printf as the default print function.*//* If User needs to use different function, then change the proto-type.*//*---------------------------------------------------------------------*/extern int        printf(const char *, ...);#define SE_PRINTF       printf   /* pSE printf function                *//*---------------------------------------------------------------------*//* Loader configuration parameters                                     *//*                                                                     *//* YES indicates for each module to be linked in. NO means do not link *//* object module loader into this application.                         *//*                                                                     *//*---------------------------------------------------------------------*/#define LD_MAX_LOAD      0      /* Max. # of active loads              */#define LD_ELF_MODULE    YES    /* ELF object-load-module              */#define LD_SREC_MODULE   YES    /* SREC object-load-module             */#define LD_COFF_MODULE   NO     /* COFF object-load-module             */#define LD_IEEE_MODULE   NO     /* IEEE object-load-module             */#define LD_IHEX_MODULE   NO     /* IHEX object-load-module             *//

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -