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

📄 config.h

📁 cpc-1631的BSP包for VxWorks操作系统
💻 H
📖 第 1 页 / 共 2 页
字号:
/* config.h - sandpoint sp8240/755/7400 configuration header file */

/* Copyright 1984-2000 Wind River Systems, Inc. */

/*
modification history
--------------------
01z,18jul02,pcs  define SP8240 if either SP8241 or SP8245 is defined. Missed
                 it in the previous checkin.
01y,16jul02,pcs  define SP8240 if either SP8245 or SP8241 is defined.
01x,17may02,pcs  undef SNOOP_ENABLE , Add macros for WINDML support
01w,01may02,jnz  enable on chip duarts for 8245/8241 by default.
01v,01apr02,jnz  added support for 8245/8241 on chip duarts.
01u,07mar02,pcs  Add support for 7455.
01t,31jan02,pcs  Cleanup .
01s,24jan02,mil  Changed define of CPU7410 to SP7410 and define SP7400 if
                 SP7410 is defined.
01r,24jan02,pcs  Disable L2 cache if -DSP745 specified.
01q,22jan02,pcs  Merge the 7450 from T2.1
01p,21jan02,pcs  Cleanup: sync with sp74xx/config.h
01o,10jan02,pcs  Update DEFAULT_BOOT_LINE to reflect for 7450.
01n,10jan02,pcs  Bump up BSP_REV to 5 for the PPMC7450 support (sp745x BSP).
01m,03jan02,pcs  Add support for L2/L3 Cache (7450)
01l,31oct01,pcs  Add support for 7450.
01k,23may01,kab  Exclude ATA by default
01j,15may01,pch  Rename local floppy driver to fix clash with generic in
                 project facility 
01i,13apr01,mil  Added new -DCPU7410
01h,12apr01,mil  debug
01g,21mar01,pcs  DEBUGGING
01f,22jan01,pcs  Add support for sp750 as received from teamF1
01e,15jan01,pcs  Modify to make a non-altivec release.
01d,03dec00,ksn  BSP_REV set to 3, and added altivec, cache locking and
                 cache snooping support (teamF1)
01c,28sep00,ksn  changed bsp rev to 2 (teamF1)
01b,12sep00,ksn  added support for SP755 & SP7400 (teamF1)
01a,10oct99,mtl  written from SPS/Motorola & yk750 by teamF1.
*/

/*
This file contains the configuration parameters for the sandpoint BSP.
*/

#ifndef	INCconfigh
#define	INCconfigh

#ifdef __cplusplus
extern "C" {
#endif

/* BSP version/revision identification, before configAll.h */

#define BSP_VER_1_1     1
#define BSP_VERSION     "1.2"
#define BSP_REV         "/6"    /* 0 for first revision */

#include "configAll.h"          /* Set the VxWorks default configuration */

/*#define  _BYTE_ORDER  _LITTLE_ENDIAN*/

/* The MPC7410 shares the MPC7400 features in the scope of this BSP */

#ifdef SP7410
#  undef  SP7400
#  define SP7400                /* define both SP7410 and SP7400 */
#endif  /* SP7410 */

#if (defined(SP750) || defined(SP755)  || defined(SP745) )
#define DEFAULT_BOOT_LINE \
"dc(0,0)host:/target/config/sp7xx/vxWorks h=90.0.0.3 e=90.0.0.50 u=vxworks"
#elif  defined (SP7400)
#define DEFAULT_BOOT_LINE \
"dc(0,0)host:/target/config/sp74xx/vxWorks h=90.0.0.3 e=90.0.0.50 u=vxworks"
#elif  (defined (SP7450) || defined (SP7455) || defined (SP7441) || defined (SP7445)) 
#define DEFAULT_BOOT_LINE \
"dc(0,0)host:/target/config/sp745x/vxWorks h=90.0.0.3 e=90.0.0.50 u=vxworks"
#elif  (defined (SP8240) || defined (SP8245) || defined (SP8241))
#define DEFAULT_BOOT_LINE \
"rtl(0,0)host:vxWorks.st h=192.168.99.24 e=192.168.99.220 g=192.168.99.1 u=target pw=target"
#endif

#define INCLUDE_SHELL
#if 1
#define INCLUDE_SYM_TBL
#define INCLUDE_SYM_TBL_SHOW

#define INCLUDE_SYM_TBL_INIT
/*vxwork.st中的符号表支持*/

#define INCLUDE_STANDALONE_SYM_TBL
#define STANDALONE_NET/*支持vxworks.st中的网络协议加载*/
#endif
#define INCLUDE_LOADER
#define INCLUDE_UNLOADER
#define INCLUDE_NET_SHOW
#define INCLUDE_RLOGIN
#define INCLUDE_TELNET
#define INCLUDE_PING
#define INCLUDE_SHOW_ROUTINES

#undef  INCLUDE_SHELL_BANNER
#define INCLUDE_STARTUP_SCRIPT

#define INCLUDE_FTP 
#define INCLUDE_FTP_SERVER

#define INCLUDE_NET_DRV

#define INCLUDE_NET_HOST_SETUP
#define INCLUDE_NET_REM_IO

#define INCLUDE_MEM_SHOW
#define INCLUDE_SEM_SHOW
#define INCLUDE_STDIO_SHOW
#define INCLUDE_SYM_TBL_SHOW
#define INCLUDE_TASK_HOOKS_SHOW
#define INCLUDE_TASK_SHOW
#define INCLUDE_WATCHDOGS_SHOW
#define INCLUDE_STANDALONE_SYM_TBL
#undef  INCLUDE_ATA_SHOW
#define INCLUDE_TCP_SHOW
#define INCLUDE_UDP_SHOW
#undef INCLUDE_PCI_CFGSHOW

#define INCLUDE_VGA
 
#define  INCLUDE_USB /*支持USB*/
#ifdef  INCLUDE_USB
#undef  INCLUDE_OHCI
#undef  INCLUDE_OHCI_INIT
#define INCLUDE_UHCI
#define INCLUDE_UHCI_INIT
#define  INCLUDE_USB_INIT
#define  INCLUDE_USB_TARG
#define  INCLUDE_USB_KEYBOARD
#define  INCLUDE_USB_MS_BULKONLY
#define  INCLUDE_USB_MOUSE
#define  INCLUDE_USB_MS_BULKONLY_INIT
#define  INCLUDE_USB_KEYBOARD_INIT
#define  INCLUDE_USB_MOUSE_INIT
#undef ATTACH_USB_KEYBOARD_TO_SHELL  TRUE
#define USB_KEYBOARD_POLLING  FALSE
#undef  BULK_DRIVE_NAME
#define  BULK_DRIVE_NAME  "/bd/usb"
#undef  BULK_MAX_DEVS
#define BULK_MAX_DEVS            4         /* Maximum number of bulk devices */
#undef  BULK_MAX_DRIVE
#define BULK_MAX_DRIVE           2  /* Maximum number of logical units */
#endif/*defined INCLUDE_USB*/

/* User include/exclude section */
#define CPCI_PCI_6150
#undef INCLUDE_ATA
#define INCLUDE_ATA_686
#define INCLUDE_SYSCLK			/* PPC decrementer system clock */
#undef INCLUDE_AUXCLK			/* i8254 Aux clock driver 	*/
#define INCLUDE_SERIAL			/* i8250Sio.c serial driver 	*/
#define INCLUDE_NVRAM			/* NVRAM driver byteNvRam.c 	*/
#undef INCLUDE_FLASH           	/* 29F040 flashDrv.c 		*/
#define INCLUDE_SYS_UPDATE_FLASH       	/* sysUpdateFlash() - sysLib.c 	*/ 
#define INCLUDE_MMU_BASIC		/* basic MMU support 		*/
#define INCLUDE_CACHE_SUPPORT   	/* cacheLib support 		*/
#define	INCLUDE_NETWORK			/* network code 		*/
#define	INCLUDE_NET_INIT		/* network startup code		*/
#define INCLUDE_PCI			/* pciConfigLib/pciIntLib 	*/
#undef INCLUDE_FDC			/* PS2 floppy disk driver       */
#undef  INCLUDE_TIMESTAMP		/* PPC decrementer as timestamp */
#undef  INCLUDE_INSTRUMENTATION		/* windview optional product 	*/
#define	INCLUDE_CACHE_L2                /* include L2 cache support     */
#undef INCLUDE_L2PM                    /* include L2 pvt mem support   */
#define	INCLUDE_CACHE_L3                /* include L3 cache support     */
#undef INCLUDE_PRIMARY_END             /* Primary present              */
#undef	INCLUDE_USER_APPL               /* Include user application     */
#undef SNOOP_ENABLE                    /* enable snooping */
/* INCLUDES required for running VTS */

#undef INCLUDE_CAN_BUS /*include can bus*/

#undef INCLUDE_LPT
#define INCLUDE_LPT_686

/* optional TrueFFS support */
#undef  INCLUDE_TFFS

#define INCLUDE_TFFS_1208

#ifdef INCLUDE_TFFS_1208
#undef INCLUDE_TFFS_DOSFS
#undef INCLUDE_TFFS_SHOW
#define INCLUDE_DOSFS        /* dosFs file system */
#define INCLUDE_SHOW_ROUTINES    /* show routines for system facilities*/
#define INCLUDE_IO_SYSTEM
#define INCLUDE_DISK_UTIL
#endif /* INCLUDE_DOSFS */

#define INCLUDE_DOSFS
#if defined(INCLUDE_DOSFS)

#define INCLUDE_DISK_UTIL       /* ls, cd, mkdir, xcopy, etc. */
#define INCLUDE_DOSFS           /* usrDosFsOld.c wrapper layer */
#define INCLUDE_DOSFS_MAIN      /* dosFsLib (2) */
#define INCLUDE_DOSFS_FAT       /* dosFs FAT12/16/32 FAT table handler */
#define INCLUDE_DOSFS_DIR_VFAT  /* Microsoft VFAT dirent handler */
#define INCLUDE_DOSFS_DIR_FIXED /* 8.3 & VxLongNames directory handler */
#define INCLUDE_DOSFS_FMT       /* dosFs2 file system formatting module */
#define INCLUDE_DOSFS_CHKDSK    /* file system integrity checking */
#define INCLUDE_CBIO            /* CBIO API module */
#undef INCLUDE_DISK_CACHE      /* CBIO API disk caching layer */
#undef INCLUDE_DISK_PART       /* disk partition handling code, fdisk... */
#undef INCLUDE_RAM_DISK        /* CBIO API ram disk driver */

#undef RAM_DISK_SIZE    0x1000000	/**16M**/
#undef RAM_DISK_MAX_FILES  100

#endif /*defined(INCLUDE_DOSFS) */

#define INCLUDE_RTL_81X9_END  /*(END) include RTL81x9 driver */

/* Note: This is a temp solution untill we are able to differentiate between 
 *        the MPC7450 & MPC7441 
 *        and MPC7455 & MPC7445
 *        based on some board specific information.
 */

#define SP8245

#if defined(SP7441)
#define SP7450 
#undef INCLUDE_CACHE_L3
#endif

#if defined(SP7445)
#define SP7455
#undef INCLUDE_CACHE_L3
#endif

#if (defined(SP8241) || defined(SP8245))
#define SP8240
#endif

/* Note: The L2 Cache was not behaving consistently on the board on which
 *       this bsp was tested. So undef INCLUDE_CACHE_L2 for the present 
 *       untill the problem is resolved.  
 */
#if (defined(SP7445))
#undef INCLUDE_CACHE_L2
#endif

#if (defined(SP7400) || defined(SP7450) || defined(SP7455))
#define INCLUDE_ALTIVEC
#endif
#ifdef INCLUDE_ALTIVEC
#define INCLUDE_TASK_HOOKS              /* taskHookLib support */
#endif /* INCLUDE_ALTIVEC */

/*  NOTE:  The L3 cache is present only on the MPC7450. 
           So the define INCLUDE_CACHE_L3 is only revelant for the 
           sp745x BSP (Sandpoint Valis ). 
*/

#if !((defined(SP7450)) || (defined(SP7455)))
#undef  INCLUDE_CACHE_L3                /* include L3 cache support     */
#endif /* SP7450 */

#undef INCLUDE_DUART                    /* exclude duart by default */
#if defined(SP8245) || defined(SP8241)
#ifndef INCLUDE_DUART
#define INCLUDE_DUART            /* include on chip duart support */
#endif /* INCLUDE_DUART */
#endif

#define INCLUDE_DUART 

/* 
 * Sandpoint/PPMC8240 SDRAM & MPC107 static memory bank configuration.
 *
 * The PPMC8240 has one DIMM slot. The DIMM module uses two memory banks.
 * There are eight memory banks on the MPC107 memory controller.  
 *
 * By default, the BSP is configured to support a single 8MB SDRAM DIMM
 * module residing in the PPMC DIMM slot.  16MB bank size is set for each bank
 * except Bank zero. Bank zero is enabled, bank one through seven disabled.
 *
 * The macro MPC107_BANK[x]_SIZE determines the size of the memory bank. 
 * The tested bank size is 8MB.  Other sizes are untested.
 * The default is 16MB for each bank except bank zero, whic is 8MB.
 * To change the default size for a particular bank, redefine the
 * macro for that bank.
 *
 * The macro MPC107_MBER_VAL defines which banks are enabled by the MPC107's
 * memory bank enable register.  The default is to enable bank 0,
 * which enables both memory banks on the DIMM in the slot.
 * 
 * Any change requires a rebuild of the bootrom image, and reprogramming
 * of the physical bootrom with the rebuilt image (bootrom.hex, etc.)
 * One must also define LOCAL_MEM_SIZE and USER_RESERVED_MEM accordingly.
 */

/* memory bank sizes. 8240 PMC uses 1. */

#define MPC107_BANK0_SIZE	0x08000000/*(128M)*//*BANKSIZE_SIXTEEN_MEG*/
#define MPC107_BANK1_SIZE	0x08000000/*(128M)*//*BANKSIZE_SIXTEEN_MEG*/
#define MPC107_BANK2_SIZE	0x08000000/*(128M)*//*BANKSIZE_SIXTEEN_MEG*/
#define MPC107_BANK3_SIZE	0x08000000/*(128M)*//*BANKSIZE_SIXTEEN_MEG*/
#define MPC107_BANK4_SIZE	BANKSIZE_SIXTEEN_MEG	
#define MPC107_BANK5_SIZE	BANKSIZE_SIXTEEN_MEG
#define MPC107_BANK6_SIZE	BANKSIZE_SIXTEEN_MEG
#define MPC107_BANK7_SIZE	BANKSIZE_SIXTEEN_MEG

/* bank sizes */

#define BANKSIZE_TWO_MEG	0x00200000	/*  2MB - 1/2  4MB DIMM */
#define BANKSIZE_FOUR_MEG	0x00400000	/*  4MB - 1/2  8MB DIMM */
#define BANKSIZE_EIGHT_MEG	0x00800000	/*  8MB - 1/2 16MB DIMM */
#define BANKSIZE_SIXTEEN_MEG	0x01000000	/* 16MB - 1/2 32MB DIMM */
#define BANKSIZE_THIRTYTWO_MEG	0x02000000	/* 32MB - 1/2 64MB DIMM */

/* setup which memory banks to enable */

/*enable 0-3banks (cs0-cs3)*/
#define MPC107_MBER_VAL   (MPC107_BANK0_ENABLE|MPC107_BANK1_ENABLE|MPC107_BANK2_ENABLE|MPC107_BANK3_ENABLE)

/*
 * The constants ROM_TEXT_ADRS, ROM_SIZE, RAM_HIGH_ADRS, and RAM_LOW_ADRS
 * are defined in config.h and Makefile.
 * All definitions for these constants must be identical.
 */

⌨️ 快捷键说明

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