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

📄 config.h

📁 powerPC866 系列平台BSP移植开发的参考代码
💻 H
字号:
/* rpx/config.h - Embedded Planet board configuration header */

/* Copyright 1984-2001 Wind River Systems, Inc. */
/* Copyright 2001-2004 Embedded Planet, LLC. */

/*
modification history
--------------------
02a,06Jul03,gad  first release for VxWorks 5.5
01a,19apr96,tpr  written.
*/

/*
This file contains the configuration parameters for the
Embedded Planet RPX boards
*/

#ifndef	INCconfigh
#define	INCconfigh

#define BSP_DEBUG
/*
 * BSP version/revision identification, should be placed
 * before #include "configAll.h"
 */
#define BSP_VER_1_1     0
#define BSP_VER_1_2     1
#define BSP_VERSION     "1.2"
#define BSP_REV         "/0"		/* 0 for the first bsp revision */

#include "configAll.h"

#undef INCLUDE_BCSR

/* Network Driver Types for config.h */
#define CPM_NETIF			1
#define CPM_END				2
#define FEC_END				3
#define CPM_FEC_END			4
#define FEC_CPM_END			5
#define FEC_SCC_END			6 	/* include sunwave scc hdlc END by Jin*/

/* Specify Boot Device: CPM_END, FEC_END, CPM_FEC_END, FEC_CPM_END FEC_SCC_END*/
#define BOOT_DEVICE FEC_END /*FEC_END*/

/* Network Options */
#undef IF_USR_NAME
#undef IF_USR_ATTACH
#undef IP_MAX_UNITS

#if (BOOT_DEVICE == CPM_END)
#undef  INCLUDE_MOT_FEC					/* Exclude Motorola FEC Fast Ethernet controller */
#define INCLUDE_CPM						/* Include Motorola SCC Ethernet controller */
#define INCLUDE_SMC_RELOCATE
#define BOOT_DEV_NAME	"cpm"
#define IF_USR_NAME		BOOT_DEV_NAME	/* device name */
#define IF_USR_ATTACH	sysCpmAttach	/* driver attach routine */
#define IP_MAX_UNITS	1
#elif  (BOOT_DEVICE == FEC_END)
#define INCLUDE_MOT_FEC 				/* Include Motorola FEC Fast Ethernet controller */
#undef  INCLUDE_CPM
#define INCLUDE_END						/* Exclude Motorola SCC Ethernet controller */
#undef  INCLUDE_SMC_RELOCATE
#define BOOT_DEV_NAME	"motfec"
#define IF_USR_NAME		BOOT_DEV_NAME	/* device name */
#define IF_USR_ATTACH	sysFecAttach	/* driver attach routine */
#define IP_MAX_UNITS	1
#elif  (BOOT_DEVICE == CPM_FEC_END)
#define INCLUDE_MOT_FEC    				/* Include Motorola FEC Fast Ethernet controller */
#define INCLUDE_CPM        				/* Include Motorola SCC Ethernet controller */
#define INCLUDE_SMC_RELOCATE
#define BOOT_DEV_NAME	"cpm"
#define IF_USR_NAME		BOOT_DEV_NAME	/* device name */
#define IF_USR_ATTACH	sysCpmAttach	/* driver attach routine */
#define IP_MAX_UNITS	2
#elif  (BOOT_DEVICE == FEC_CPM_END)
#define INCLUDE_MOT_FEC    				/* Include Motorola FEC Fast Ethernet controller */
#define INCLUDE_CPM        				/* Include Motorola SCC Ethernet controller */
#define INCLUDE_SMC_RELOCATE
#define BOOT_DEV_NAME	"motfec"
#define IF_USR_NAME		BOOT_DEV_NAME	/* device name */
#define IF_USR_ATTACH	sysFecAttach	/* driver attach routine */
#define IP_MAX_UNITS	2
#elif  (BOOT_DEVICE == FEC_SCC_END)		/* include sunwave scc hdlc END by Jin*/
#define INCLUDE_END				/* Exclude Motorola SCC Ethernet controller */
#define INCLUDE_MOT_FEC    			/* Include Motorola FEC Fast Ethernet controller */
#define INCLUDE_SCC_HDLC        		/* Include SunWave SCC HDLC controller by Jin*/
#define INCLUDE_SMC_RELOCATE
#define BOOT_DEV_NAME	"motfec"
#define IF_USR_NAME		BOOT_DEV_NAME	/* device name */
#define IF_USR_ATTACH	sysFecAttach	/* driver attach routine */
#define IP_MAX_UNITS	3
#endif

#undef  WDB_COMM_TYPE
#define WDB_COMM_TYPE WDB_COMM_END
/*
#define DEFAULT_BOOT_LINE	BOOT_DEV_NAME \
				"(0,0)host:vxWorks " \
				"e=20.0.0.31 " \
				"h=20.0.0.34 " \
				"u=anonymous pw=user " \
				"f=0x80 tn=ep8xx"
*/
#define DEFAULT_BOOT_LINE	BOOT_DEV_NAME \
				"(0,0)SUNWAVE-R&D:/tffs0/sys/vxWorks.z " \
				"e=20.0.0.40 " \
				"h=20.0.0.100 " \
				"u=wanet pw=123456 " \
				"f=0x00 tn=ep8xx "  \
				"o=motfec "

/*
 * If the FORCE_DEFAULT_BOOT_LINE is defined then the DEFAULT_BOOT_LINE
 * parameters are always used regardless of NVRAM values specified at
 * bootrom time. See target.nr for details. This is usually used to debug
 * downloaded images with out a bootrom present.
 */
#undef FORCE_DEFAULT_BOOT_LINE
/*#define FORCE_DEFAULT_BOOT_LINE*/

#define USER_I_MMU_ENABLE
#define USER_D_MMU_ENABLE
#define INCLUDE_MMU_BASIC

/* Number of TTY definition */
#undef  NUM_TTY
#undef  INCLUDE_SCC_SIO /* cannot be defined if BOOT_DEVICE=CPM_END */
#ifdef  INCLUDE_SCC_SIO
#define NUM_TTY 2
#else
#define NUM_TTY	1

/* VxWorks console definition */
#undef  CONSOLE_TTY
#define CONSOLE_TTY	0	/* 0 = use SMC as console; 1 = use SCC as console */

#endif /*  INCLUDE_SCC_SIO */

/* Optional timestamp support */
#undef	INCLUDE_TIMESTAMP

/* optional TrueFFS support */
#define  INCLUDE_TFFS

#ifdef  INCLUDE_TFFS
#define INCLUDE_DOSFS		/* dosFs file system */
#define INCLUDE_SHOW_ROUTINES	/* show routines for system facilities*/
#define INCLUDE_TFFS_SHOW 
#define INCLUDE_TL_FTL
#define INCLUDE_MTD_I28F016
#define DEBUG_PRINT
#define INCLUDE_TFFS_DOSFS 
#define INCLUDE_IO_SYSTEM 
#define INCLUDE_DISK_UTIL 

#define	FLASH_BASE_ADRS		0xFC200000	/* Flash memory base address */
#define	FLASH_SIZE		0x00400000L	/* Flash memory size */
#endif /* INCLUDE_DOSFS */

/* clock rates */
#define	SYS_CLK_RATE_MIN	1		/* minimum system clock rate */
#define	SYS_CLK_RATE_MAX	8000	/* maximum system clock rate */
#define	AUX_CLK_RATE_MIN	1		/* minimum auxiliary clock rate */
#define	AUX_CLK_RATE_MAX	8000	/* maximum auxiliary clock rate */

/*
 * Baud Rate Generator division factor - 0 for division by 1
 *					 1 for division by 4
 *					 2 for division by 16
 *					 3 for division by 64
 */
#define BRGCLK_DIV_FACTOR  0

/* remove unnecessary drivers */
#undef INCLUDE_BP
#undef INCLUDE_EX
#undef INCLUDE_ENP
#undef INCLUDE_SM_NET
#undef INCLUDE_SM_SEQ_ADD

/* miscellaneous definitions */
#define NV_RAM_ADRS     0xFA000000	/* address of first non-volatile byte */
#define NV_RAM_INTRVL   0x01		/* address interval between bytes */
#define NV_RAM_SIZE     0x20000		/* assume 128k for start, adjusted in sysHwInit */

/* Memory addresses */
#define LOCAL_MEM_AUTOSIZE                  /* use DPRAM values to set mem size */
#undef LOCAL_MEM_AUTOSIZE                  /* use DPRAM values to set mem size */

#define LOCAL_MEM_LOCAL_ADRS	0x00000000	/* Base of RAM */
#define LOCAL_MEM_SIZE		    0x02000000 	/* 32 Mbyte memory available */
	       									/* adjusted in sysHwInit */
/*
 * The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined
 * in config.h, MakeSkel, Makefile, and Makefile.*
 * All definitions for these constants must be identical.
 */
#define ROM_BASE_ADRS	0xFC000000		/* base address of ROM */
#define ROM_TEXT_ADRS	0xfff00100		/* ROM_BASE_ADRS + 0x100 */
#define ROM_SIZE		0x00800000		/* ROM space */
/*#define ROM_SIZE		0x04000000		*//* 0xfc000000 --- 0xffffffff */

/*
 *	user defined space
 */
#define REALTIME_BASE	0x33000000		/* base address of FPGA cs3 */
#define REALTIME_SIZE	0x00100000		/* spaces size of FPGA cs3 */

#define FPGA_CS3_BASE	0x30000000		/* base address of FPGA cs3 */
#define FPGA_CS4_BASE	0x31000000		/* base address of FPGA cs4 */
#define FPGA_CS5_BASE	0x32000000		/* base address of FPGA cs5 */
#define FPGA_CS3_SIZE	0x00100000		/* spaces size of FPGA cs3 */
#define FPGA_CS4_SIZE	0x00100000		/* spaces size of FPGA cs4 */
#define FPGA_CS5_SIZE	0x00100000		/* spaces size of FPGA cs5 */



/* RAM address for ROM boot */
#define RAM_HIGH_ADRS		(LOCAL_MEM_LOCAL_ADRS + 0x00A00000)

/* RAM address for sys image */
#define RAM_LOW_ADRS		(LOCAL_MEM_LOCAL_ADRS + 0x00010000)

#define USER_RESERVED_MEM	0x00000000	/* user reserved memory size */

/*
 * Default power management mode - selected via vxPowerModeSet() in
 * sysHwInit().
 */

#define DEFAULT_POWER_MGT_MODE  VX_POWER_MODE_DISABLE

#include "rpx.h"				/* include the rpx params */
#endif	/* INCconfigh */
#if defined(PRJ_BUILD)
#include "prjParams.h"
#endif

⌨️ 快捷键说明

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