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

📄 config.h

📁 mtx603在vxworks下的bsp模板源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* config.h - Motorola PowerPlus board configuration header *//* Copyright 1984-2002 Wind River Systems, Inc. *//* Copyright 1996,1997,1998,1999 Motorola, Inc., All Rights Reserved *//*modification history--------------------01t,22may02,sbs  Changed INCLUDE_AUXCLK to INCLUDE_AUX_CLK01s,29apr01,sbs  removed reference to PMC_SPAN (SPR 22706).                 mod history cleanup.01r,08dec01,dat  new USB stub system, version 1.2/201q,15nov99,dat  merged mcg code to new version 1.2/101p,06aug99,dmw  Fixed feature include comments.01o,08jun99,dmw  added support for MTXPlus.01n,17mar99,db   changed RAM_HIGH_ADRS to 0x00300000(SPR #25757).01m,10mar99,jkf  made MTX default #undef INCLUDE_ECC. SPR#25649.                 see new target.nr comment re: ECC support.01l,25feb99,dat  merge from motorola drop (SPR 25357)01k,11aug98,sbs  changed WDB_COMM_TYPE to WDB_COMM_END.01j,30jul98,tb   enabled ECC support in Falcon.01i,10jul98,sut changed BSP_VERSION to "1.2" and BSP_REV to "/0"                added BSP_VER_1_2 macro, defined INCLUDE_END, removed                END_OVERRIDE ( Tornado 2.0 release ).01h,09jun98,mas rev 1 -> 2 for mcp750 release.01g,02jun98,tm  revert to Mot autoconfig code and MCP750 dependencies01f,14may98,tm  added INCLUDE_PCI_AUTOCONF and INCLUDE_ECC01e,16apr98,db  added floppy disk support01d,13apr98,db  merge from Motorola bsp(macro INCLUDE_PCI added).01c,15jan98,srr changed auxiliary clock for MCP750 to use Raven timer.01b,13jan98,srr changed revision to 0.2 for MCG factory release.01a,09jan98,rhk created (from ver 02d, mv2600/config.h)*//*This file contains the configuration parameters for theMotorola PowerPlus architecture*/#ifndef	INCconfigh#define	INCconfigh#ifdef __cplusplusextern "C" {#endif/* The following defines must precede configAll.h *//* BSP version/revision identification */#define BSP_VER_1_1     1#define BSP_VER_1_2     1#define BSP_VERSION     "1.2"#define BSP_REV         "/2"		/* Second revision *//* PRIMARY INCLUDES */#include "configAll.h"/* defines */#if (CPU == PPC603)#   define DEFAULT_BOOT_LINE \	"dc(0,0)host:/tornado/mv2603/vxWorks h=90.0.0.1 e=90.0.0.2 u=vxworks"#   define WRONG_CPU_MSG "A PPC603 VxWorks image cannot run on a PPC604!\n";#elif (CPU == PPC604)#   define DEFAULT_BOOT_LINE \	"dc(0,0)host:/tornado/mv2604/vxWorks h=90.0.0.1 e=90.0.0.2 u=vxworks"#   define WRONG_CPU_MSG "A PPC604 VxWorks image cannot run on a PPC603!\n";#endif	/* (CPU == PPC604) *//* * Default board configurations * * If a supported feature is desired, *         change to: #define * If a feature is not desired or not supported *         change to: #undef * * NOTE: Not all functionality is supported on all boards */#ifdef  MTX#    define	INCLUDE_PCI_AUTOCONF	/* Auto PCI configuration */#    undef	INCLUDE_ECC		/* DRAM ECC support */#    define	INCLUDE_CACHE_L2	/* L2 cache support */#    define	INCLUDE_I8250_SIO       /* COM1 and COM2 via i8250 */#    undef	INCLUDE_Z85230_SIO      /* serial ports 3 & 4 via Z85230 */#    define	INCLUDE_PRIMARY_ENET	/* DEC 21143 */#    undef	INCLUDE_SECONDARY_ENET	/* DEC 21143 - define for MTXPlus */#    undef	INCLUDE_PRIMARY_SCSI	/* NCR 875 */#    undef	INCLUDE_SECONDARY_SCSI	/* [NOT AVAILABLE] */#    define	INCLUDE_AUX_CLK		/* Raven Aux Clk */#    define	INCLUDE_I2C		/* I2C Bus Controller support */#    undef	INCLUDE_ATA		/* ATA-2 portion of EIDE support */#    define	INCLUDE_PCI		/* include the PCI library support */#    undef	INCLUDE_FD		/* [OPTIONAL] Floppy Disk  */#endif/* Memory map selection - PReP by default */#undef EXTENDED_PCI#ifdef INCLUDE_PRIMARY_ENET    #define INCLUDE_NETWORK#endif /* INCLUDE_PRIMARY_ENET *//* MMU and Cache options */#define	INCLUDE_MMU_BASIC       /* bundled mmu support */#undef	USER_D_CACHE_MODE#define	USER_D_CACHE_MODE       (CACHE_COPYBACK | CACHE_SNOOP_ENABLE)#ifdef  INCLUDE_CACHE_L2#    define	USER_L2_CACHE_ENABLE			/* enable L2 cache */#    define	L2_CACHE_MODE	CACHE_WRITETHROUGH	/* Only 1 supported */#endif  /* INCLUDE_CACHE_L2 *//* timestamp option not included by default;  #define to include it */#undef  INCLUDE_TIMESTAMP/* De-select unused (default) network drivers selected in configAll.h */#undef  INCLUDE_EX              /* include Excelan Ethernet interface */#undef  INCLUDE_ENP             /* include CMC Ethernet interface*//* De-select unused advanced network driver support */#define	INCLUDE_END		/* Enhanced Network Driver (see configNet.h) *//* Primary SCSI support */#define INCLUDE_SCSI2		/* Use SCSI2 library, not SCSI1 */#ifdef  INCLUDE_PRIMARY_SCSI#define INCLUDE_SCSI#define INCLUDE_SCSI_BOOT	/* include ability to boot from SCSI */#define INCLUDE_DOSFS		/* file system to be used */#undef	SCSI_AUTO_CONFIG	/* scan bus for devices on startup */#undef	SCSI_WIDE_ENABLE	/* enable wide SCSI, 16-bit data transfers */#define	SYS_SCSI_CONFIG		/* call sysScsiConfig in sysScsi.c */#endif  /* INCLUDE_PRIMARY_SCSI *//* ATA-2 portion of EIDE support */#ifdef	INCLUDE_ATA#   ifndef	INCLUDE_DOSFS#      define	INCLUDE_DOSFS		/* file system to be used */#   endif	/* INCLUDE_DOSFS *//* *	The ATA_DEVx_STATE determines whether the ATA driver should probe *	for a device.  DEV_PRESENT = probe; DEV_NOT_PRESENT = don't probe. * *	To probe for all devices connect to both buses, *	change all ATA_DEVx_STATE values to DEV_PRESENT. * *	ATA_DEV0_STATE = cntlr 0 / device 0 *	ATA_DEV1_STATE = cntlr 0 / device 1 *	ATA_DEV2_STATE = cntlr 1 / device 0 *	ATA_DEV3_STATE = cntlr 1 / device 1 */#   define	DEV_PRESENT	1#   define	DEV_NOT_PRESENT	0#   define	ATA_DEV0_STATE	DEV_PRESENT#   define	ATA_DEV1_STATE	DEV_NOT_PRESENT #   define	ATA_DEV2_STATE	DEV_NOT_PRESENT#   define	ATA_DEV3_STATE	DEV_NOT_PRESENT#endif	/* INCLUDE_ATA *//* PCI bus numbers for secondary and subordinate buses */#define PCI_SECONDARY_BUS       1#define PCI_SUBORD_BUS          1#define PCI_MAX_BUS             2       /* Max. number of PCI buses in system *//* PMC Span configuration values */#define	P2P_IO_BASE              0x01060000	/* PCI I/O window */#define	P2P_IO_SIZE              0x00040000#define	P2P_PREF_MEM_BASE        0x02000000	/* PCI prefetch mem window */#define	P2P_PREF_MEM_SIZE        0x01000000#define	P2P_PREF_HI32_BASE       0x00000000	/* hi 32 bits of address */#define	P2P_NONPREF_MEM_BASE     0x03000000	/* PCI non-prefech mem window */#define P2P_NONPREF_MEM_SIZE	 0x01000000#define P2P_CACHE_LINE_SIZE      8		/* cache line size */#define P2P_PRIM_LATENCY         0		/* latency *//* serial parameters */#undef	NUM_TTY#define	NUM_TTY			N_SIO_CHANNELS/* Include MPIC support by default */#define	INCLUDE_MPIC/* * Auxiliary Clock support is an optional feature that is not supported * by all BSPs.   * * NOTE: If INCLUDE_MPIC is not defined (8259 interrupt controller) and this  * BSP is running on an MTXPlus, no Aux Clock interrupts will be generated as  * the 8536 is emulated on MTXPlus and CIO interrupts are not supported. */#ifdef  INCLUDE_AUX_CLK#ifdef  INCLUDE_MPIC#    define INCLUDE_RAVEN_AUXCLK	/* specify Raven aux clock device */#else#    define INCLUDE_Z8536_AUXCLK	/* specify z8536 aux clock device */#endif /* INCLUDE_MPIC */#else#    undef INCLUDE_SPY#endif /* INCLUDE_AUX_CLK *//* * Local Memory definitions * * By default, the available DRAM memory is sized at bootup (LOCAL_MEM_AUTOSIZE * is defined).  If auto-sizing is not selected, make certain that * LOCAL_MEM_SIZE is set to the actual amount of memory on the board. * By default, it is set to the minimum memory configuration: 16 MB. * Failure to do so can cause unpredictable system behavior! */#define	LOCAL_MEM_AUTOSIZE			/* undef for fixed size */#define LOCAL_MEM_LOCAL_ADRS	0x00000000	/* fixed at zero */#define LOCAL_MEM_SIZE		0x01000000	/* Default: Min memory: 16MB */#define RAM_HIGH_ADRS		0x00300000  	/* RAM address for ROM boot */#define RAM_LOW_ADRS		0x00100000	/* RAM address for kernel *//* user reserved memory, see sysMemTop() */#define USER_RESERVED_MEM	(0)	/* number of reserved bytes */

⌨️ 快捷键说明

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