config.h
资源名称:idt438.rar [点击查看]
上传用户:yingyi0918
上传日期:2022-06-26
资源大小:214k
文件大小:7k
源码类别:
VxWorks
开发平台:
C/C++
- /* config.h - IDT 79PMC438 BSP configuration header */
- /* Copyright 1984-2002 Wind River Systems, Inc. */
- #include "copyright_wrs.h"
- /*
- * This file has been developed or significantly modified by the
- * MIPS Center of Excellence Dedicated Engineering Staff.
- * This notice is as per the MIPS Center of Excellence Master Partner
- * Agreement, do not remove this notice without checking first with
- * WR/Platforms MIPS Center of Excellence engineering management.
- */
- /*
- modification history
- --------------------
- 01a,16Oct02,krao New BSP from IDT for IDT79PMC438 Board.
- */
- /*
- DESCRIPTION
- This file contains the configuration parameters for the IDT79PMC438 BSP.
- */
- #ifndef __INCconfigh
- #define __INCconfigh
- #ifdef __cplusplus
- extern "C" {
- #endif /* __cplusplus */
- /* defines */
- /* BSP version/revision identification, before configAll.h */
- #define BSP_VER_1_1 1
- #define BSP_VER_1_2 1
- #define BSP_VERSION "1.2"
- #define BSP_REV "/0" /* 0 for first revision */
- /* includes */
- #include "configAll.h"
- #include "idt79pmc438.h"
- /* defines contd. */
- #undef INCLUDE_HW_FP /* Exclude hardware floating point libary */
- #define INCLUDE_SW_FP /* Include software floating point library */
- #define DEFAULT_BOOT_LINE
- "idt(0,0)corpjqg2f11:c:Tornado2.2targetconfigidt79pmc438vxWorks "
- "h=157.165.159.140 e=157.165.29.77 u=krao"
- #define INCLUDE_PCI /* include PCI support */
- /* define for testing purposes */
- #undef INCLUDE_TEST
- #ifdef INCLUDE_TEST
- #define INCLUDE_STAT_SYM_TBL /* Include static symbol table */
- #define INCLUDE_SHELL /* Include VxWorks shell */
- #define INCLUDE_PING /* Include ping library */
- #define INCLUDE_RLOGIN /* Include rlogin library */
- #define INCLUDE_NET_SHOW /* Include network show routines library */
- #define INCLUDE_NET_SYM_TBL /* Include network symbol table */
- #define INCLUDE_LOADER /* Include loader */
- #define INCLUDE_SHOW_ROUTINES /* show routines for system facilities */
- #define INCLUDE_SYM_TBL /* symbol table package */
- #define INCLUDE_UNLOADER /* Include unloader */
- #define INCLUDE_TIMESTAMP /* Include Timestamp routines */
- #define INCLUDE_ARP_API /* Include arp library functions */
- #endif
- /* Defines to include Ethernet and PCI drivers */
- #define INCLUDE_END /* include enhanced network driver support */
- #define INCLUDE_IDT_END /* Include IDT Ethernet driver */
- /* Define the number of Ethernet and PCI Devices */
- #define NUM_IDT_UNITS 1 /* Number of Ethernet Units */
- #define IP_MAX_UNITS 5 /* Max number of IP Units */
- /* Add boot shell code to set ether addr. */
- #define ETHERNET_ADR_SET
- /* This defines the Last three bytes of the default ethernet address
- * to be 65:65:65. The LONGSWAP is required to accomodate the way in
- * which the boot shell 'N' command handles this macro for _BIG_ENDIAN
- * byte order.
- */
- #define ENET_DEFAULT LONGSWAP(0x0040bc)
- #if defined(BROADCOM_BSP)
- # define BROADCOM_SHELL
- /*
- * The following causes the DC ethernet device on the Jupiter board to
- * be attached and initialized by default (see usrDepend.c)
- */
- #define STANDALONE_NET
- # ifdef BROADCOM_SHELL
- # define INCLUDE_USER_APPL
- # define USER_APPL_INIT { extern void vxSpawn(void); vxSpawn();}
- # undef INCLUDE_SHELL
- # ifdef INCLUDE_SHELL
- #error "INCLUDE_SHELL Defined"
- # endif
- # endif
- #endif
- /* CPU-specific facilities */
- #define AUTO_CACHE_DETECT
- #undef USER_D_CACHE_MODE
- #define USER_D_CACHE_MODE CACHE_WRITETHROUGH
- #undef USER_I_CACHE_MODE
- #define USER_I_CACHE_MODE CACHE_WRITETHROUGH
- #if !defined (AUTO_CACHE_DETECT)
- #define ICACHE_SIZE 0x4000
- #define ICACHE_LINE_SIZE 0x10
- #define DCACHE_SIZE 0x4000
- #define DCACHE_LINE_SIZE 0x10
- #endif
- #ifndef MIPS4KC_N_TLB_ENTRIES
- #define MIPS4KC_N_TLB_ENTRIES 16
- #endif
- /* miscellaneous definitions */
- #undef NUM_TTY
- #define NUM_TTY N_SIO_CHANNELS
- #define SYS_CLK_RATE_MIN 1 /* Minimum system clock rate */
- #define SYS_CLK_RATE_MAX 5000 /* Maximum system clock rate */
- #define AUX_CLK_RATE_MIN 1 /* Minimum auxiliary clock rate */
- #define AUX_CLK_RATE_MAX 10000 /* Maximum auxiliary clock rate */
- /* NVRAM(I2C EEPROM) allocation constants for bootline */
- #define NV_RAM_INTRVL 1 /* Byte Interval in I2C */
- #undef NV_BOOT_OFFSET
- #define NV_BOOT_OFFSET 12 /* Offset of bootline in I2C */
- #undef BOOT_LINE_SIZE
- #define BOOT_LINE_SIZE 255 /* Bytes used in I2C for bootline */
- #define NV_ENET_OFFSET0 -6 /* Ethernet address offset relative */
- /* NV_BOOT_OFFSET */
- #define ENET_SIZE 6 /* Ethernet address size */
- #define NV_OFF_BINDFIX 0x0408
- /* Using I2C resident NVRAM allocation
- * memory constants
- */
- #define LOCAL_MEM_LOCAL_ADRS 0x80000000
- /* 64MB memory available on board as default */
- #define LOCAL_MEM_SIZE 0x04000000
- /* Measure memory dynamically - undefined by default */
- #undef LOCAL_MEM_AUTOSIZE
- /* User reserved memory, See sysMemTop */
- #define USER_RESERVED_MEM 0
- /*
- * The constants ROM_TEXT_ADRS, ROM_SIZE, RAM_LOW_ADRS and
- * RAM_HIGH_ADRS are defined in config.h, and MakeSkel.
- * All definitions for these constants must be identical.
- */
- #define ROM_TEXT_ADRS 0xbfc00000 /* Base address of ROM */
- #define ROM_BASE_ADRS ROM_TEXT_ADRS
- #define ROM_SIZE 0x00200000 /* 2MB ROM space */
- #define RAM_LOW_ADRS 0x80100000 /* RAM address for kernel */
- #define RAM_HIGH_ADRS 0x80c10000 /* RAM address for ROM boot */
- #if defined(PRJ_BUILD)
- #include "prjParams.h"
- #endif
- #define INCLUDE_DEBUG
- #undef WDB_COMM_TYPE
- #define WDB_COMM_TYPE WDB_COMM_END
- #undef WDB_MODE
- #define WDB_MODE WDB_MODE_TASK
- #ifdef __cplusplus
- }
- #endif /* __cplusplus */
- #endif /* __INCconfigh */