📄 configall.h
字号:
#define SYM_TBL_HASH_SIZE_LOG2 8 /* 256 entry hash table symbol table */
#define STAT_TBL_HASH_SIZE_LOG2 6 /* 64 entry hash table for status */
#define MQ_HASH_SIZE 0 /* POSIX message queue hash table size
* 0 = default */
#define NUM_SIGNAL_QUEUES 16 /* POSIX queued signal count */
#if CPU==SIMNT
#define FREE_RAM_ADRS simMemBlock
#else
#define FREE_RAM_ADRS (end) /* start right after bss of VxWorks */
#endif
/* I/O system parameters */
#define SYS_CLK_RATE 60 /* default system clock rate */
#define NUM_DRIVERS 20 /* max 20 drivers in drvTable */
#define NUM_FILES 50 /* max 50 files open simultaneously */
#define NUM_DOSFS_FILES 20 /* max 20 dosFs files open */
#define NUM_RAWFS_FILES 5 /* max 5 rawFs files open */
#define NUM_RT11FS_FILES 5 /* max 5 rt11Fs files open */
#define MAX_LOG_MSGS 50 /* max 50 log msgs */
#define NUM_TTY 1 /* number of tty channels */
#define CONSOLE_TTY 0 /* console channel */
#define CONSOLE_BAUD_RATE 9600 /* console baud rate */
#ifdef INCLUDE_SLIP
#define SLIP_TTY 1 /* serial line IP channel */
#endif /* INCLUDE_SLIP */
#define MAX_LIO_CALLS 0 /* max outstanding lio calls 0=default */
#define MAX_AIO_SYS_TASKS 0 /* max aio system tasks, 0 = default */
#define AIO_TASK_PRIORITY 0 /* aio system tasks prior, 0 = default */
#define AIO_TASK_STACK_SIZE 0 /* aio tasks stack size, 0 = default */
/* kernel and system task parameters by architecture */
#if CPU_FAMILY==ARM
#define INT_LOCK_LEVEL 0 /* interrupt disable mask - unused */
#define ROOT_STACK_SIZE 0x4000 /* size of root's stack, in bytes */
#define SHELL_STACK_SIZE 0x10000 /* size of shell's stack, in bytes */
#define WDB_STACK_SIZE 0x2000 /* size of WDB agents stack, in bytes */
#define TRAP_DEBUG 0 /* not used */
#define VEC_BASE_ADRS ((char *) LOCAL_MEM_LOCAL_ADRS)
/*
* NOTE: ISR_STACK_SIZE defined in config.h, not here - BSP interrupt
* structure dependent
*/
#endif /* CPU_FAMILY==ARM */
#ifndef BOOT_CMD_STACK_SIZE
#define BOOT_CMD_STACK_SIZE 7000
#endif /* BOOT_CMD_STACK_SIZE */
/* WDB debug agent configuration */
#ifdef INCLUDE_WDB
/* optional agent facilities */
#define INCLUDE_WDB_BANNER /* print banner after agent starts */
#define INCLUDE_WDB_VIO /* virtual I/O support */
#define INCLUDE_WDB_TTY_TEST /* test serial line communcation */
#define INCLUDE_WDB_START_NOTIFY /* notify the host of task creation */
#define INCLUDE_WDB_USER_EVENT /* user events handling */
/* core agent facilities - do not remove */
#define INCLUDE_WDB_CTXT /* context control */
#define INCLUDE_WDB_FUNC_CALL /* spawn function as separate task */
#define INCLUDE_WDB_DIRECT_CALL /* call function in agents context */
#define INCLUDE_WDB_EVENTS /* host async event notification */
#define INCLUDE_WDB_GOPHER /* gopher info gathering */
#define INCLUDE_WDB_BP /* breakpoint support */
#define INCLUDE_WDB_EXC_NOTIFY /* notify host of exceptions */
#define INCLUDE_WDB_EXIT_NOTIFY /* notify the host of task exit */
#define INCLUDE_WDB_REG /* get/set hardware registers */
#define INCLUDE_WDB_EVENTPOINTS /* eventpoints handling */
#define INCLUDE_WDB_MEM /* optional memory services */
/* agent mode */
#define WDB_MODE WDB_MODE_DUAL /* WDB_MODE_[DUAL|TASK|EXTERN] */
/* agent communication paths */
#define WDB_COMM_NETWORK 0 /* vxWorks network - task mode */
#define WDB_COMM_SERIAL 1 /* raw serial - bimodal */
#define WDB_COMM_TYCODRV_5_2 2 /* older serial driver - task mode */
#define WDB_COMM_ULIP 3 /* vxSim packet device - bimodal */
#define WDB_COMM_NETROM 4 /* netrom packet device - bimodal */
#define WDB_COMM_CUSTOM 5 /* custom packet device - bimodal */
#define WDB_COMM_END 6 /* END packet device - bimodal */
#define WDB_COMM_PIPE 7 /* vxSim pipe device - bimodal */
#define WDB_COMM_VTMD 8 /* TMD packet device - bimodal */
/* communication path configuration */
#ifndef WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_END /* default path is the network */
#endif
#ifndef WDB_TTY_CHANNEL
#define WDB_TTY_CHANNEL 1 /* default Sio SERIAL channel */
#endif
#ifndef WDB_TTY_DEV_NAME
#define WDB_TTY_DEV_NAME "/tyCo/1" /* default TYCODRV_5_2 device name */
#endif
#ifndef WDB_TTY_BAUD
#define WDB_TTY_BAUD 9600 /* default baud rate */
#endif
#ifndef WDB_ULIP_DEV
#define WDB_ULIP_DEV "/dev/ulip14" /* default ULIP packet device */
#endif
#define WDB_NETROM_TYPE 400 /* default is old 400 series */
#define WDB_NETROM_WIDTH 1 /* width of a ROM word. This macro
* is not used for the 500 series. */
#define WDB_NETROM_INDEX 0 /* index into word of pod zero */
#define WDB_NETROM_NUM_ACCESS 1 /* of pod zero per byte read */
#define WDB_NETROM_ROMSIZE ROM_SIZE /* size of a single ROM. If your
* board has N ROMs, this definition
* must be divided by N to be right */
#define WDB_NETROM_POLL_DELAY 2 /* # clock ticks to poll for input */
/* miscelaneous agent constants */
#define WDB_MTU 1500 /* max RPC message size */
#define WDB_POOL_SIZE ((sysMemTop() - FREE_RAM_ADRS)/16) /* memory pool for host tools */
#define WDB_SPAWN_STACK_SIZE 0x5000 /* default stack size of spawned task */
#endif /* INCLUDE_WDB */
/******************************************************************************/
/* */
/* "GENERIC" BOARD CONFIGURATION */
/* */
/******************************************************************************/
/* device controller I/O addresses when included */
#define IO_ADRS_EI ((char *) 0x000fff00) /* 32A,32D i82596CA Ethernet */
/******************************************************************************/
/* */
/* "MISCELLANEOUS" CONSTANTS */
/* */
/******************************************************************************/
/* shared memory objects parameters (unbundled) */
#define SM_OBJ_MAX_TASK 40 /* max # of tasks using smObj */
#define SM_OBJ_MAX_SEM 60 /* max # of shared semaphores */
#define SM_OBJ_MAX_MSG_Q 10 /* max # of shared message queues */
#define SM_OBJ_MAX_MEM_PART 4 /* max # of shared memory partitions */
#define SM_OBJ_MAX_NAME 100 /* max # of shared objects names */
#define SM_OBJ_MAX_TRIES 5000 /* max # of tries to obtain lock */
/* shared memory network parameters - defaults to values DEFAULT_PKTS_SIZE
* and DEFAULT_CPUS_MAX in smPktLib.h respectively
*/
#define SM_PKTS_SIZE 0 /* shared memory packet size */
#define SM_CPUS_MAX 0 /* max # of cpus for shared network */
/* low memory layout */
#if (CPU_FAMILY == I80X86)
#define GDT_BASE_OFFSET 0x1000
#define SM_ANCHOR_OFFSET 0x1100
#define BOOT_LINE_OFFSET 0x1200
#define EXC_MSG_OFFSET 0x1300
#elif (CPU_FAMILY == PPC)
#define SM_ANCHOR_OFFSET 0x4100
#define BOOT_LINE_OFFSET 0x4200
#define EXC_MSG_OFFSET 0x4300
#elif (CPU==SH7750 || CPU==SH7729 || CPU==SH7700)
#define SM_ANCHOR_OFFSET 0x1600 /* not used for SDRAM config. */
#define BOOT_LINE_OFFSET 0x1700
#define EXC_MSG_OFFSET 0x1800
#else
#define SM_ANCHOR_OFFSET 0x600
#define BOOT_LINE_OFFSET 0x700
#define EXC_MSG_OFFSET 0x800
#endif /* (CPU_FAMILY == I80X86) */
/* The backplane driver onboard anchor at the following address */
#define SM_ANCHOR_ADRS ((char *) (LOCAL_MEM_LOCAL_ADRS+SM_ANCHOR_OFFSET))
/* The bootroms put the boot line at the following address */
#define BOOT_LINE_ADRS ((char *) (LOCAL_MEM_LOCAL_ADRS+BOOT_LINE_OFFSET))
#define BOOT_LINE_SIZE 255 /* use 255 bytes for bootline */
/* The boot line is stored in non-volatile RAM at the following offset */
#define NV_BOOT_OFFSET 0 /* store the boot line at start of NVRAM */
/* Messages from exceptions during exceptions go at the following address */
#define EXC_MSG_ADRS ((char *) (LOCAL_MEM_LOCAL_ADRS+EXC_MSG_OFFSET))
/* Backplane H/W support */
#define SM_TAS_TYPE SM_TAS_HARD /* hardware supports test-and-set */
/* Resident ROMs constants */
#define STACK_SAVE 0x1000 /* maximum stack used to preserve */
#define RESERVED 0
#define STACK_RESIDENT _wrs_kernel_data_start
#define STACK_ADRS STACK_RESIDENT
/* Default Boot Parameters */
#define HOST_NAME_DEFAULT "bootHost" /* host name */
#define TARGET_NAME_DEFAULT "vxTarget" /* target name (tn) */
#define HOST_USER_DEFAULT "target" /* user (u) */
#define HOST_PASSWORD_DEFAULT "" /* password */
#define SCRIPT_DEFAULT "" /* startup script (s) */
#define OTHER_DEFAULT "" /* other (o) */
/* Login security initial user name and password.
* Use vxencrypt on host to find encrypted password.
* Default password provided here is "password".
*/
#ifdef INCLUDE_SECURITY
#define LOGIN_USER_NAME "target"
#define LOGIN_PASSWORD "RcQbRbzRyc" /* "password" */
#endif /* INCLUDE_SECURITY */
/* install environment variable task create/delete hooks */
#ifdef INCLUDE_ENV_VARS
#define ENV_VAR_USE_HOOKS TRUE
#endif /* INCLUDE_ENV_VARS */
/* vxWorks Network Configuration */
#ifdef INCLUDE_NETWORK
/******************************************************************************/
/* */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -