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

📄 config.h

📁 WINDRIVER 8260 ATM BSP
💻 H
字号:
/* config.h - SBC8260ATM configuration header file *//* Copyright 1984-2002 Wind River Systems, Inc. *//*modification history--------------------01k,30apr03,jtp  Bump BSP_REV for changes01j,30jan03,dee  fix SPR# 85481 - Wind River MAC address 1st 3 bytes01i,03oct02,nrv  undefining INCLUDE_TFFS01h,01oct02,nrv  defining INCLUDE_TFFS01g,27sep02,nrv  Adding optional TFFS support01f,17feb02,g_h  Add the NO_NETWORK option to BOOT_DEVICE type01e,29jan02,g_h  Add #undef NV_RAM_SIZE before re-defining		 it again01d,25jan02,g_h  Add EEPROM_DELAY macro.01c,18jan02,g_h  Remove MAC_ADRS_IN_NVRAM macro01b,24sep01,g_h  change rev number01a,05may01,g_h  adopted from sbc8260/config,h (ver 01d)*//*This file contains the configuration parameters for the BSP.*/#ifndef	__INCconfigh#define	__INCconfigh#ifdef __cplusplusextern "C" {#endif/*                                                                  *//* BSP version/revision identification, should be placed before the *//* the #include "configAll.h"                                       */#define BSP_VER_1_1   1#define BSP_VERSION   "1.2"	/* Tornado 2.2 is 1.2 */#define BSP_REV       "/5"	/* increment by whole numbers *//* Now include the global configuration information.                */#include "configAll.h"/* Memory configuration *//* * The constants ROM_TEXT_ADRS, ROM_SIZE, and RAM_HIGH_ADRS are defined * in config.h and Makefile. All definitions for these constants must be * identical.  (can be fine-tuned for various configurations) *  */#define ROM_SIZE             0x00100000        /* 1M ROM space               */#define ROM_BASE_ADRS        0xfff00000        /* base address of ROM        */#define ROM_TEXT_ADRS        ROM_BASE_ADRS + 0x100#define RAM_LOW_ADRS         0x00100000        /* RAM address for sys image  */#define RAM_HIGH_ADRS        0x01E00000        /* RAM address for ROM boot   */#define LOCAL_MEM_LOCAL_ADRS 0x00000000        /* Base of RAM                */#define LOCAL_MEM_SIZE       0x10000000        /* 256 Mbyte memory           */#define USER_RESERVED_MEM    0x0E000000        /* user reserved memory size  */#define ROM_WARM_ADRS	     (ROM_TEXT_ADRS+8)  /* warm reboot entry */#ifndef RAM_DST_ADRS         /* default uncompress dest. */#define RAM_DST_ADRS         RAM_HIGH_ADRS#endif  /* RAM_DST_ADRS *//* Boot FLASH Types */#define ON_BOARD_FLASH    1#define SIMM_FLASH        2#define BOOT_FLASH           ON_BOARD_FLASH /* Specify CS0 connection: ON_BOARD_FLASH, SIMM_FLASH */#define FLASH_SIZE_2MB	     0x00200000#define FLASH_SIZE_64MB	     0x04000000/* Flash address definitions are true regardless which flash bank is the boot bank */#if (BOOT_FLASH == ON_BOARD_FLASH)  #define LOCAL_FLASH_CS0  #define CS0_FLASH_ADRS     0xFE000000  #define CS0_FLASH_SIZE     FLASH_SIZE_2MB  /*  2MB */  #define CS6_FLASH_ADRS     0xE0000000  #define CS6_FLASH_SIZE     FLASH_SIZE_64MB /* 64MB */#elif (BOOT_FLASH == SIMM_FLASH)  #define SIMM_FLASH_CS0  #define CS0_FLASH_ADRS     0xFC000000  #define CS0_FLASH_SIZE     FLASH_SIZE_64MB /* 64MB */  #define CS6_FLASH_ADRS     0xE0000000  #define CS6_FLASH_SIZE     FLASH_SIZE_2MB  /*  2MB */#else  #define LOCAL_FLASH_CS0  #define CS0_FLASH_ADRS     0xFC000000  #define CS0_FLASH_SIZE     FLASH_SIZE_64MB /* 64MB */  #define CS6_FLASH_ADRS     0xE0000000  #define CS6_FLASH_SIZE     FLASH_SIZE_2MB  /*  2MB */#endif/* Serial port configuration */#define INCLUDE_TTY_DEV      /* Include TTY Dev for those that use command line building */#undef	NUM_TTY#define	NUM_TTY		     N_SIO_CHANNELS		/* Timer configuration */#define  INCLUDE_AUX_CLK#define  INCLUDE_TIMESTAMP/* Optional TrueFFS support */#undef  INCLUDE_TFFS            /* define to include TrueFFS driver */#ifdef INCLUDE_TFFS#define INCLUDE_SHOW_ROUTINES#define INCLUDE_DOSFS#endif /* INCLUDE_TFFS *//* Cache configuration  */#define INCLUDE_CACHE_SUPPORT#define USER_I_CACHE_ENABLE  #undef	USER_I_CACHE_MODE#define USER_I_CACHE_MODE    CACHE_COPYBACK /* select COPYBACK or WRITETHROUGH */#define USER_D_CACHE_ENABLE  #undef	USER_D_CACHE_MODE#define USER_D_CACHE_MODE    CACHE_COPYBACK /* select COPYBACK or WRITETHROUGH *//* MMU configuration  */#define INCLUDE_MMU_BASIC#undef  INCLUDE_MMU_FULL#define USER_I_MMU_ENABLE#define USER_D_MMU_ENABLE/* LED configuration */#define INCLUDE_SYSLED/* Local Bus SDRAM configuration */#define INCLUDE_LOCAL_BUS_SDRAM/* Frequency configuration */#undef  HARDCODED_FREQ_PARMS /* undef to use User Dip Switchs see target.nr */#ifdef  HARDCODED_FREQ_PARMS#define INPUT_FREQUENCY      FREQ_66MHZ   /* see target.nr for details */#define CPM_FREQUENCY        FREQ_133MHZ#define CORE_FREQUENCY       FREQ_200MHZ#endif /* HARDCODED_FREQ_PARMS */#define DEC_CLOCK_FREQ       sysInputFreqGet()#define SYS_CPU_FREQ         sysInputFreqGet()/* MAC Address configuration */#define MAC_ADRS_LEN	     6	/* 6 bytes in MAC address */#define MAX_MAC_ADRS         8#define WR_ENET0  	    0x00 /* WR specific portion of MAC (MSB->LSB) */#define WR_ENET1  	    0xA0#define WR_ENET2  	    0x1E	  #define CUST_ENET3_0        0xA0 /* Customer portion of MAC address */#define CUST_ENET3_1        0xA1#define CUST_ENET3_2        0xA2#define CUST_ENET3_3        0xA3#define CUST_ENET3_4        0xA4#define CUST_ENET3_5        0xA5#define CUST_ENET3_6        0xA6#define CUST_ENET3_7        0xA7#define CUST_ENET4 	    0xAA#define CUST_ENET5 	    0xA0/* * The Ethernet hardware address that is used with FCC or SCC is * *       00:A0:1E:nn:nn:nn * * where the first three bytes are defined below, and last three bytes are * user specified. *//* 				This is byte swapped (little endian issue) *                                    ___ Alignment pad *                                   |                   *                                  \|/                  *                                   V */#define ENET_DEFAULT         0x1EA00000 /* WR fixed MAC addr *//* NvRAM storage configuration */#define SMART_EEPROM_WRITE     /* skip EEPROM write if already the value */#define INCLUDE_EEPROM_LOCKING /* lock eeprom via software protection 	 */#define ETHERNET_ADR_SET       /* (bootConfig.c to enable 'N' command)   */#define EEPROM_DELAY         50     /* NvRAM configuration */#define NV_RAM_SIZE	     EEPROM_SIZE /* 8K bytes non-volatile RAM */#define NV_RAM_ADRS          EEPROM_ADRS#define NV_RAM_INTRVL        1#define RETRY_NVWRITE_COUNT  1000 /* abort loop after interations */#define NVRAM_INITIALIZED    "MAC_ADRS=" /* Initialization Indicator    */#define NV_INIT_SIZE         (sizeof(NVRAM_INITIALIZED)-1)#undef  NV_BOOT_OFFSET	     /* room for init indicator     */                             /* (and possibly MAC address)  */#if (NV_RAM_SIZE != NONE)#define NV_BOOT_OFFSET       (NV_INIT_SIZE + (MAC_ADRS_LEN * MAX_MAC_ADRS))  #define NV_MAC_ADRS_OFFSET   -(MAC_ADRS_LEN * MAX_MAC_ADRS)#else#define NV_BOOT_OFFSET       NV_INIT_SIZE #endif  /* (NV_RAM_SIZE != NONE) *//* Wind River ATM driver configuration */#undef  INCLUDE_ATM#ifdef  INCLUDE_ATM#define INCLUDE_ATM_SUNI_DUAL_PHY /* ATM Suni-Dual PHY */#endif  /* INCLUDE_ATM *//* Network driver configuration */#define	INCLUDE_NETWORK#define INCLUDE_NET_INIT#undef  INCLUDE_BP#undef	INCLUDE_EX#undef	INCLUDE_ENP#undef	INCLUDE_SM_NET#undef  INCLUDE_SM_SEQ_ADD/* Only if using network */#ifdef  INCLUDE_NETWORK/* Enhanced Network Driver (END) support */#define	INCLUDE_END		/* Enhanced Network Driver (see configNet.h) */#undef  INCLUDE_BSD		/* BSD 4.4 drivers (not supported) *//* Network Driver Types */#define NO_NETWORK           0#define SCC_FCC_END          1#define SCC_END              2#define FCC_END              3#define BOOT_DEVICE          SCC_FCC_END /* Specify Boot Device: SCC_END or FCC_END SCC_FCC_END */#endif /* INCLUDE_NETWORK */            /* Boot device */#if (BOOT_DEVICE == FCC_END)#define INCLUDE_MOTFCCEND    /* Include Motorola FCC Fast Ethernet controller */#undef  INCLUDE_MOTSCCEND    /* Exclude Motorola SCC Ethernet controller */#define BOOT_DEV_NAME        "motfcc"#undef  WDB_COMM_TYPE#define WDB_COMM_TYPE WDB_COMM_END#elif (BOOT_DEVICE == SCC_END)#ifdef INCLUDE_ATM#error "The SCC channel is not working with the ATM support!!!"#else /* INCLUDE_ATM is not defined */#undef  INCLUDE_MOTFCCEND    /* Exclude Motorola FCC Fast Ethernet controller */#define INCLUDE_MOTSCCEND    /* Include Motorola SCC Ethernet controller */#define BOOT_DEV_NAME        "motscc"#undef  WDB_COMM_TYPE#define WDB_COMM_TYPE WDB_COMM_END#endif /* INCLUDE_ATM */#elif (BOOT_DEVICE == SCC_FCC_END)#ifdef INCLUDE_ATM#error "The SCC channel is not working with the ATM support!!!"#else /* INCLUDE_ATM is not defined */#define BOOT_DEV_NAME        "motfcc"#define INCLUDE_MOTFCCEND    /* Include Motorola FCC Fast Ethernet controller */#define INCLUDE_MOTSCCEND    /* Include Motorola SCC Ethernet controller */#undef  WDB_COMM_TYPE#define WDB_COMM_TYPE WDB_COMM_END#endif /* INCLUDE_ATM */#elif (BOOT_DEVICE == NO_NETWORK)#define BOOT_DEV_NAME        "none"#undef  INCLUDE_MOTFCCEND#undef  INCLUDE_MOTSCCEND#else#define BOOT_DEV_NAME        "none"#endif /* (BOOT_DEVICE == SCC_FCC_END) *//* Debuging configuration *//* 			 * 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 * WR downloaded images with out a bootrom present. */#undef  FORCE_DEFAULT_BOOT_LINE#ifdef  INCLUDE_WDB_COMM_VTMD#define FORCE_DEFAULT_BOOT_LINE /* When using TMD this macro should be undefined */#endif  /* INCLUDE_WDB_COMM_VTMD *//* visionWARE configuration */#define INCLUDE_VWARE_LAUNCH/* Stuff to be excluded if FORCE_DEFAULT_BOOT_LINE defined */#ifdef  FORCE_DEFAULT_BOOT_LINE#undef  INCLUDE_VWARE_LAUNCH#undef  NV_RAM_SIZE#define NV_RAM_SIZE		  NONE#endif  /* FORCE_DEFAULT_BOOT_LINE *//* Boot line configuration */#ifdef BOOT_DEV_NAME#define DEFAULT_BOOT_LINE    BOOT_DEV_NAME \                             "(0,0)wrSbc8260Atm:vxWorks " \                             "e=24.42.124.92 " \                             "h=24.42.124.94 " \                             "g=0.0.0.0 " \                             "u=vx pw=vx " \                             "f=0x00 tn=wrSbc8260Atm"#ifdef INCLUDE_VWARE_LAUNCH#define VWARE_BOOT_LINE	     BOOT_DEV_NAME \                             "(0,0)wrSbc8260Atm:vxworks " \                             "%s " \                             "%s " \                             "%s " \                             "u=anonymous pw=user " \                             "f=0x00 tn=wrSbc8260Atm" #endif /* INCLUDE_VWARE_LAUNCH */#endif /* BOOT_DEV_NAME *//* * User application initialization * * USER_APPL_INIT must be a valid C statement or block.  It is * included in the usrRoot() routine only if INCLUDE_USER_APPL is * defined.  The code for USER_APPL_INIT is only an example.  The * user is expected to change it as needed.  The use of taskSpawn * is recommended over direct execution of the user routine. */#undef	INCLUDE_USER_APPL#define	USER_APPL_INIT \	{ \	IMPORT int myAppInit(); \	taskSpawn ("myApp", 30, 0, 5120, \		   myAppInit, 0x1, 0x2, 0x3, 0,0,0,0,0,0,0); \	}/* Include hardware header file */#include "wrSbc8260Atm.h"#ifdef __cplusplus}#endif#endif	/* __INCconfigh */#if defined(PRJ_BUILD)#include "prjParams.h"#endif

⌨️ 快捷键说明

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