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

📄 sys_conf.h

📁 wm PNE 3.3 source code, running at more than vxworks6.x version.
💻 H
📖 第 1 页 / 共 5 页
字号:
/* if this will be the FIRST system to use the SMNI on this board.  It *//* should be 2 if this will not be the first system to use SMNI on this*//* board.  Usually this means that SC_NISM_LEVEL should be 1 if you    *//* are building Boot ROMs, and 2 for a system that will be downloaded  *//* and started using the Boot ROMs.  See the comments at the beginning *//* of drivers/ni_smem.c for more explanation.                          *//*---------------------------------------------------------------------*/#define SD_NISM               NO       /* Disable/Enable Shared Mem NI */#define SD_NISM_IP            0x00000000    /* IP address of this node */#define SD_NISM_DIRADDR       0x00000400 /* Bus addr of SMNI directory */#define SC_NISM_BUFFS         30            /* Num of buffers for SMNI */#define SC_NISM_LEVEL         2         /* SMNI Level, 1 if first node */#define SD_NISM_SUBNET_MASK   0x00000000 /* Subnet mask for the SMNI   *//*---------------------------------------------------------------------*//* If you want to build a multi-node pSOS+m system, set SD_KISM        *//* to the number of nodes in the system.                               *//*---------------------------------------------------------------------*/#define SD_KISM               0 /* Num of nodes that will use the SMKI *//*---------------------------------------------------------------------*//* Bus Address of the system-wide directory structure that all nodes   *//* in the system have access to.                                       *//*---------------------------------------------------------------------*/#define SD_KISM_DIRADDR       0x00000580#define SC_KISM_BUFFS         100           /* Num of buffers for SMKI *//***********************************************************************//*                                                                     *//*         M I S C E L L A N E O U S   N E T W O R K I N G             *//*                       P A R A M E T E R S                           *//*                                                                     *//***********************************************************************/#define SD_DEF_GTWY_IP 0x00000000/***********************************************************************//* SC_RAM_SIZE define controls the end of RAM as seen by pSOSystem.    *//* If it is set to zero, then pSOSystem uses ALL of the memory         *//* remaining on a board for dynamic allocation ("region 0"). You may   *//* override this by setting SC_RAM_SIZE to a non-zero value. If you do,*//* pSOSystem will not touch any memory after the specified address.    *//*                                                                     *//* NOTE: This is useful when making a BOOT ROM and you want to ensure  *//* that the ROM's RAM area does not overflow the space allocated for it*//***********************************************************************/#define SC_RAM_SIZE           0/***********************************************************************//*                                                                     *//*                     I / O   D E V I C E S                           *//*                                                                     *//*  Each device may be included in the system by specifying a major    *//*  number for it, which determines its slot in the pSOS+ I/O switch   *//*  table.  To leave a device driver out of the system, use NO for     *//*  the major number.                                                  *//*                                                                     *//*  Note the following:                                                *//*                                                                     *//*    * Major device 0 is reserved and cannot be used for any of these *//*      devices.  Setting a device number to 0 here is the same as NO. *//*                                                                     *//*    * No device number may be higher than SC_DEVMAX (SC_DEVMAX may   *//*      be increased, if desired)                                      *//*                                                                     *//*    * The lines defining the symbols DEV_SERIAL, DEV_TIMER, etc,     *//*      should not be changed.  These are for use by application       *//*      programs as the "device number" parameter on de_* calls.       *//*                                                                     *//***********************************************************************/#define SC_DEV_SERIAL         1         /* Serial driver               */#define SC_DEV_TIMER          2         /* Periodic tick timer         */#define SC_DEV_RAMDISK        3         /* RAM disk                    */#define SC_DEV_CONSOLE       NO         /* PC-Console driver           */#define SC_DEV_SCSI           5         /* SCSI bus                    */#define SC_DEV_SCSI_TAPE      6         /* SCSI bus, tape device       */#define SC_DEV_IDE            7         /* IDE Driver                  */#define SC_DEV_FLOPPY         8         /* Floppy Driver               */#define SC_DEV_NTFTP          9         /* New TFTP pseudo driver      */#define SC_DEV_TFTP          10         /* TFTP pseudo driver          */#define SC_DEV_HTTP          NO         /* HTTP pseudo driver          */#define SC_DEV_SPI           NO         /* SPI driver                  */#define SC_DEV_DLPI          NO         /* DLPI pseudo driver          */#define SC_DEV_OTCP          NO         /* 14 TCP/IP for OpEN          */#define SC_IP              SC_DEV_OTCP  /* 14 IP                       */#define SC_ARP               NO         /* 15 ARP                      */#define SC_TCP               NO         /* 16 TCP                      */#define SC_UDP               NO         /* 17 UDP                      */#define SC_RAW               NO         /* 18 RAW                      */#define SC_LOOP              NO         /* 19 LOOP = (SC_DEV_OTCP + 5) */#define SC_DEV_SOSI          NO         /* 20 OSI for OpEN             */#define SC_DEV_PSCONSOLE     21         /* Pseudo Console driver       */#define SC_DEV_MEMLOG        22         /* Memory log driver           */#define SC_DEV_RDIO          23         /* pROBE+ RDIO driver          */#define SC_DEV_NULL          24         /* Null Device Driver          */#define SC_DEV_PARALLEL      NO         /* Parallel Port Driver        */#define SC_DEV_CMOS          NO         /* CMOS Driver                 */#define SC_DEV_WATCHDOG      NO         /* Watchdog Driver             */#define SC_DEV_OLAP          NO         /* LAP Drivers                 */#define SC_PHPI        (SC_DEV_OLAP)    /* Phpi driver                 */#define SC_LAPB        (SC_DEV_OLAP + 0)/* LAPB driver Change 0 to 1   */#define SC_DEV_OX25          NO         /* X25 Drivers                 */#define SC_X25         (SC_DEV_OX25)    /* X.25 plp driver             */#define SC_SNDCF             NO         /* sndcf driver                */#define SC_IPCONV            NO         /* ip convergence driver       */#define SC_DEV_ISDN          NO         /* ISDN Drivers                */#define SC_PH          (SC_DEV_ISDN)    /* PH driver                   */#define SC_LAPD        (SC_DEV_ISDN + 0)/* LAPD driver Change 0 to 1   */#define SC_IPCD        (SC_DEV_ISDN + 0)/* IPCD driver Change 0 to 2   */#define SC_DEV_MLPP          NO         /* MultiLink PPP Drivers       */#define SC_FRMUX       (SC_DEV_MLPP)    /* FRMUX driver                */#define SC_PPP         (SC_DEV_MLPP + 0)/* PPP  driver Change 0 to 1   */#define SC_PIM         (SC_DEV_MLPP + 0)/* PIM  driver Change 0 to 2   */#define SC_DEV_LOG           NO         /* STREAMS log driver          */#define SC_DEV_PSMUX         NO         /* Sample Mux driver           */#define SC_DEV_PSLWR         NO         /* Sample loopback driver      */#define SC_DEV_SLLWR         NO         /* Sample loopback driver      */#define SC_DEV_PIPE          43         /* Pipe Driver.                */#define SC_DEVMAX            44         /* Maximum device number       */#define DEV_SERIAL      (SC_DEV_SERIAL     << 16)#define DEV_PARALLEL    (SC_DEV_PARALLEL   << 16)#define DEV_TIMER       (SC_DEV_TIMER      << 16)#define DEV_RAMDISK     (SC_DEV_RAMDISK    << 16)#define DEV_SCSI        (SC_DEV_SCSI       << 16)#define DEV_SCSI_TAPE   (SC_DEV_SCSI_TAPE  << 16)#define DEV_PSCONSOLE   (SC_DEV_PSCONSOLE  << 16)#define DEV_SYSCONSOLE  ((SC_DEV_PSCONSOLE  << 16) + SYSCONSOLE_DEV)#define DEV_PSEUDO      ((SC_DEV_PSCONSOLE  << 16) + PSEUDO_DEV)#define DEV_STDIN       ((SC_DEV_PSCONSOLE  << 16) + STDIN_DEV)#define DEV_STDOUT      ((SC_DEV_PSCONSOLE  << 16) + STDOUT_DEV)#define DEV_STDERR      ((SC_DEV_PSCONSOLE  << 16) + STDERR_DEV)#define DEV_NULL        (SC_DEV_NULL       << 16)#define DEV_MEMLOG      (SC_DEV_MEMLOG     << 16)#define DEV_RDIO        (SC_DEV_RDIO       << 16)#define DEV_DLPI        (SC_DEV_DLPI       << 16)#define DEV_TFTP        (SC_DEV_TFTP       << 16)#define DEV_NTFTP       (SC_DEV_NTFTP      << 16)#define DEV_HTTP        (SC_DEV_HTTP       << 16)#define DEV_SPI         (SC_DEV_SPI        << 16)#define DEV_WATCHDOG    (SC_DEV_WATCHDOG   << 16)#define DEV_FLOPPY      (SC_DEV_FLOPPY     << 16)#define DEV_IDE         (SC_DEV_IDE        << 16)#define DEV_CMOS        (SC_DEV_CMOS       << 16)#define DEV_CONSOLE     (SC_DEV_CONSOLE    << 16)#define DEV_IP          (SC_IP             << 16)#define DEV_ARP         (SC_ARP            << 16)#define DEV_TCP         (SC_TCP            << 16)#define DEV_UDP         (SC_UDP            << 16)#define DEV_RAW         (SC_RAW            << 16)#define DEV_LOOP        (SC_LOOP           << 16)#define DEV_PHPI        (SC_PHPI           << 16)#define DEV_LAPB        (SC_LAPB           << 16)#define DEV_X25         (SC_X25            << 16)#define DEV_SNDCF       (SC_SNDCF          << 16)#define DEV_IPCONV      (SC_IPCONV         << 16)#define DEV_PH          (SC_PH             << 16)#define DEV_LAPD        (SC_LAPD           << 16)#define DEV_IPCD        (SC_IPCD           << 16)#define DEV_FRMUX       (SC_FRMUX          << 16)#define DEV_PIM         (SC_PIM            << 16)#define DEV_PPP         (SC_PPP            << 16)#define DEV_LOG         (SC_DEV_LOG        << 16)#define DEV_PSMUX       (SC_DEV_PSMUX      << 16)#define DEV_PSLWR       (SC_DEV_PSLWR      << 16)#define DEV_SLLWR       (SC_DEV_SLLWR      << 16)#define DEV_PIPE        (SC_DEV_PIPE       << 16)#if (BSP_CPUFAMILY == FAMILY_X86) && (SC_APP_CONSOLE == PCCON)    #define CONSOLE   DEV_CONSOLE#else    #define CONSOLE   DEV_SERIAL#endif/***********************************************************************//*            p S E U D O   D R I V E R   D E F I N E S                *//*                                                                     *//* The defines below control the behavour of the pSEUDO driver if the  *//* SC_DEV_PSCONSOLE is enabled.                                        *//*                                                                     *//***********************************************************************/#define	SC_PSCNSL_SHARED_CHAN	2        /* Num of shared channels     */#define	SC_PSCNSL_PRIVATE_CHAN	4        /* Number of private channels */#define	SC_PSCNSL_MAX_CUSTOM	1        /* NUmber of custome device   */#define	SC_PSCNSL_DEFAULT_DEV	CONSOLE  /* Default console device     *//***********************************************************************//*           T F T P   D R I V E R   C O N F I G U R A T I O N         *//*                                                                     *//* The defines below define the Configuration Parameters needed by the *//* TFTP driver.                                                        *//*                                                                     *//***********************************************************************/#define SC_MAX_TFTP_CHAN    8       /* Maximum number of TFTP channels *//***********************************************************************//*           H T T P    S E R V E R   C O N F I G U R A T I O N        *//*                                                                     *//* The SC_MAX_HTTP_CHAN define controls the maximum number of HTTP     *//* channels in the system.                                             *//*                                                                     *//***********************************************************************/#define SC_MAX_HTTP_CHAN    1

⌨️ 快捷键说明

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