📄 sys_conf.h
字号:
/* Setting IO_AUTOINIT only effects drivers that can use the Auto *//* Initialization feature. *//* *//* If set to IO_NOAUTOINIT no automatic driver initialization will *//* happen. *//*---------------------------------------------------------------------*/#define SC_AUTOINIT IO_AUTOINIT/*---------------------------------------------------------------------*//* If SC_PMONT SC_AUTOINIT will always be set to 1 because pMONT needs *//* drivers to be automatically initialized. *//*---------------------------------------------------------------------*/#if SC_PMONT #undef SC_AUTOINIT #define SC_AUTOINIT IO_AUTOINIT#endif/*---------------------------------------------------------------------*//* If set to YES, an initial devices name table is set-up to contain *//* Deivce names for all the Drivers configured in the system. *//* *//* NOTE: Any initial device name table enteries are in addition to the *//* KC_MAXDNTENT value specified below in pSOS+ configuration params. *//*---------------------------------------------------------------------*/#define SC_INIT_DNTABLE YES/***********************************************************************//* *//* S E R I A L C H A N N E L C O N F I G U R A T I O N *//* *//* * SD_DEF_BAUD specifies the default baud rate to be used for the *//* serial channels *//* * SC_APP_CONSOLE specifies the serial channel number (starting *//* from 1) which should be used for the application's "console". *//* * SC_PROBE_CONSOLE specifies the serial channel number (starting *//* from 1) which pROBE+ should use to display output and receive *//* commands, or to communicate with the host debugger. *//* * SC_RBUG_PORT specifies the serial channel number (starting *//* from 1) which should be used for the pROBE+ REMOTE channel. *//* This is not normally required, so it can be disabled by *//* using a value of 0. *//* *//* Above three macros SC_PROBE_CONSOLE, SC_APP_CONSOLE and *//* SC_RBUG_PORT uses SERIAL_DRVRNUM(0) as default. This means that *//* the Low-Level Serial Driver 0 (1) is being used default. *//* *//* If you need to use another driver for any of the above macros *//* and another macro for pMONT PM_DEV, You need to change "0" to *//* the driver number you want. Consult the "README" file in BSP *//* directory for number of different drivers supported and for the *//* SERIAL_DRVRNUM mapping for those drivers. *//* *//***********************************************************************/#define SD_DEF_BAUD 9600#define SC_APP_CONSOLE (1 + SERIAL_DRVRNUM(0))#define SC_PROBE_CONSOLE (1 + SERIAL_DRVRNUM(0))#define SC_RBUG_PORT (0 + SERIAL_DRVRNUM(0))/***********************************************************************//* SC_NumNon_pSOSChan is the number of non pSOS users of serial *//* channels. These are users that will be initiated before pSOS *//* such as pROBE. *//* NOTE: These channels will not be closed on a soft reset. *//***********************************************************************/#if (SC_RBUG_PORT && SC_PROBE_CONSOLE && (SC_PROBE_CONSOLE != PCCON))#define SC_NumNon_pSOSChan 2#else#define SC_NumNon_pSOSChan 1#endif/***********************************************************************//* *//* L A N C O N F I G U R A T I O N *//* *//* *//***********************************************************************/#define SD_LAN1 YES /* Disable the LAN interface */#define SD_LAN1_IP 0x80E0C1A3 /* (REC) IP address of the node */#define SD_LAN1_SUBNET_MASK 0xFFFFFF00/*---------------------------------------------------------------------*//* Maximum number of multicast addresses to be used by the lan *//* interface. Must not exceed maximum supported by the lan driver. *//*---------------------------------------------------------------------*/#define SC_LAN1_NMCAST 0/***********************************************************************//* *//* S H A R E D M E M O R Y C O N F I G U R A T I O N *//* *//* *//***********************************************************************//***********************************************************************//* *//* B U S C O N F I G U R A T I O N *//* *//* *//***********************************************************************/#define SD_VME_BASE_ADDR 0x01000000/*---------------------------------------------------------------------*//* If you want to build a Shared Memory Interface for the network or *//* multi-processing pSOS+m, set SD_SM_NODE (a non-zero value) to the *//* node number of THIS node. *//*---------------------------------------------------------------------*/#define SD_SM_NODE 0/*---------------------------------------------------------------------*//* Shared memory network interface - SC_NISM_LEVEL should be 1 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 the 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#define SD_NISM_IP 0x00000000#define SD_NISM_DIRADDR 0x00000400#define SC_NISM_BUFFS 30#define SC_NISM_LEVEL 2#define SD_NISM_SUBNET_MASK 0x00000000/*---------------------------------------------------------------------*//* 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#define SD_KISM_DIRADDR 0x00000580#define SC_KISM_BUFFS 100/***********************************************************************//* *//* 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 0x80E0C105/***********************************************************************//* SC_RAM_SIZE *//* *//* Normally, 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 address (BSP_RAM_BASE + SC_RAM_SIZE - 1). *//* *//* 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 alloted 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 NO /* RAM disk */#define SC_DEV_CONSOLE NO /* PC-Console driver */#define SC_DEV_SCSI NO /* SCSI bus */#define SC_DEV_SCSI_TAPE NO /* SCSI bus, tape device */#define SC_DEV_IDE NO /* IDE Driver */#define SC_DEV_FLOPPY NO /* Floppy Driver */#define SC_DEV_TFTP NO /* TFTP pseudo driver */#define SC_DEV_SPI NO /* SPI driver */#define SC_DEV_DLPI NO /* DLPI pseudo driver */#define SC_DEV_OTCP NO /* 12 TCP/IP for OpEN */#define SC_IP SC_DEV_OTCP /* 12 IP */#define SC_ARP NO /* 13 ARP */#define SC_TCP NO /* 14 TCP */#define SC_UDP NO /* 15 UDP */#define SC_RAW NO /* 16 RAW */#define SC_LOOP NO /* 17 LOOP = (SC_DEV_OTCP + 5) */#define SC_DEV_SOSI NO /* 18 OSI for OpEN */#define SC_DEV_PSCONSOLE NO /* Pseudo Console driver */#define SC_DEV_NULL NO /* 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#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_DEVMAX 39 /* 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_NULL (SC_DEV_NULL << 16)#define DEV_SYSCONSOLE ((SC_DEV_PSCONSOLE << 16) + SYSCONSOLE_DEV)#define DEV_PSEUDO ((SC_DEV_PSCONSOLE << 16) + PSEUDO_DEV)#define DEV_DLPI (SC_DEV_DLPI << 16)#define DEV_TFTP (SC_DEV_TFTP << 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)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -