📄 config.h
字号:
/* config.h - Motorola PowerPlus board configuration header *//* Copyright 1984-2002 Wind River Systems, Inc. *//* Copyright 1996-1998 Motorola, Inc. *//*modification history--------------------02p,25jun02,kab SPR 77883: Workaround for SECONDARY_ENET (temp)02o,15may02,sbs changed INCLUDE_AUXCLK to INCLUDE_AUX_CLK02n,06may02,sbs updating bsp revision02m,16jan02,yvp Increased RAM_HIGH_ADRS to 0x00300000 - prevent build errors.02l,11oct99,dmw Moved VME_A32_MSTR_LOCAL here from mv2600.h02k,18aug99,dmw Added PRIMARY_ENET_ID and SECONDARY_ENET_ID02j,30mar99,dat chg'd P2P_PRIM_LATENCY to 0xff. (SPR 24507)02i,09mar99,sbs corrected documentation for Raven Mpic LEVEL_SENSE default value (SPR #21995) 02h,07aug98,tb Added VMEbus DMA support02g,07aug98,tb Fixed support for SM_OFF_BOARD02f,07aug98,tb Turned on Falcon's ECC02e,07aug98,tb Added TAS support which uses the VMEbus RMW02d,13oct98,dat SPR 20654, added ravenAuxClk for mv230002c,11aug98,sbs changed WDB_COMM_TYPE to WDB_COMM_END.02b,21jul98,db changed BSP_VERSION to "1.2" and BSP_REVISION to "/0". added BSP_VER_1_2 macro, defined INCLUDE_END, removed END_OVERRIDE(Tornado 2.0 release).02a,18may98,ms_ change ROM_SIZE to 1 Meg (0x00100000) (SPR 21240)01z,15apr98,db added support for floppy disk driver.01y,13apr98,ms_ merged Motorola mv2700 support01x,08apr98,dat REV 5, new generic pciConfigLib and if_dc.o modules01w,03oct97,mas assigned non-zero MPIC priorities to all PCI ints (SPR 9388).01v,18sep97,dds added macro SCSI_WIDE_ENABLE.01u,14aug97,mas Extended VME addressing is now default; no slave VME A24 space (for cumulative patch release 9/97; BSP_REV 4).01t,24jul97,mas added MPIC priority scheme (SPR 8956).01s,20jul97,dat REV 3 for jumbo patch 2, chg'd SM_ANCHOR_ADRS (SPR 9019).01r,17jul97,mas added undef of LOCAL_MEM_AUTOSIZE, refined definition of VME_A32_SLV_SIZE (SPR 8824).01q,09jul97,mas NCR810_DELAY_MULT now defined in mv2600.h (SPR 8842).01p,17jun97,mas merged w/SENS version of BSP.01o,05jun97,mas added support for serial ports 3 & 4 (Z85230 ESCC). (SPR 8566)01n,29may97,srr Added comments about shared memory setup (MCG MR #74)01m,12may97,dat moving things between config.h and mv2600.h01l,09may97,mas added extended VME addressing (SPR 8410). added NCR810_DELAY_MULT (SPR 8430).01k,28apr97,gnn Added documentation for END_OVERRIDE and INCLUDE_END01j,25apr97,map BSP_REV is 2. Added SENS support.01i,23apr97,mas added MPIC support from Motorola (SPR 8170).01h,11apr97,dat moved macros around, user changeable macros are here, not-changeable ones are in mv2600.h01g,10apr97,mas added PCI I/O function defines and PMC Span support (SPR 8226).01f,01apr97,dat new VME window configuration macros, SPR 827101e,18feb97,mas added undef of INCLUDE_TIMESTAMP (SPR 7772, 7811).01d,03jan97,mas BSP_REV set to "/0".01c,02jan97,dat default does not include SCSI, fixed mod history01b,19oct96,srr Replaced CPU_SPEED with MEMORY_BUS_SPEED to be compatible with change made by Wind River.01a,01oct96,mot written. (from ver 01q, mv1600/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 /* 1.2 is backward compatible with 1.1 */#define BSP_VER_1_2 1#define BSP_VERSION "1.2"#define BSP_REV "/1" /* 0 for first 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) *//* * If any slave board in the chassis cannot generate a VMEbus * RMW, or the master board cannot translate an incoming VMEbus * RMW into an atomic operation, define ANY_BRDS_IN_CHASSIS_NOT_RMW * else * All slave boards are generating a VMEbus RMW, and the master * board can translate an incoming VMEbus RMW into an atomic * operation, so undef ANY_BRDS_IN_CHASSIS_NOT_RMW */#define ANY_BRDS_IN_CHASSIS_NOT_RMW/* * 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 MV2600# define INCLUDE_CACHE_L2 /* L2 cache support */# define INCLUDE_I8250_SIO /* COM1 and COM2 via i8250 */# define INCLUDE_Z85230_SIO /* serial ports 3 & 4 via Z85230 */# define INCLUDE_PRIMARY_ENET /* DEC 21140 */# undef INCLUDE_SECONDARY_ENET /* [NOT AVAILABLE] */# undef INCLUDE_PRIMARY_SCSI /* NCR 825 */# undef INCLUDE_SECONDARY_SCSI /* [NOT AVAILABLE] */# define INCLUDE_AUX_CLK /* Z 8536 */# undef INCLUDE_VME_DMA /* VME DMA support */# undef INCLUDE_FD /* Floppy Disk */#endif#ifdef MV2700# define INCLUDE_CACHE_L2 /* L2 cache support */# define INCLUDE_I8250_SIO /* COM1 and COM2 via i8250 */# define INCLUDE_Z85230_SIO /* serial ports 3 & 4 via Z85230 */# define INCLUDE_PRIMARY_ENET /* DEC 21140 */# undef INCLUDE_SECONDARY_ENET /* [NOT AVAILABLE] */# define INCLUDE_PRIMARY_SCSI /* NCR 825 */# undef INCLUDE_SECONDARY_SCSI /* [NOT AVAILABLE] */# define INCLUDE_AUX_CLK /* Z 8536 */# undef INCLUDE_VME_DMA /* VME DMA support */# undef INCLUDE_FD /* Floppy Disk */#endif#ifdef MV3600# define INCLUDE_CACHE_L2 /* L2 cache support */# define INCLUDE_I8250_SIO /* COM1 and COM2 via i8250 */# define INCLUDE_Z85230_SIO /* serial ports 3 & 4 via Z85230 */# define INCLUDE_PRIMARY_ENET /* DEC 21140 */# undef INCLUDE_SECONDARY_ENET /* DEC 21040: SPR 77883 */# define INCLUDE_PRIMARY_SCSI /* NCR 825 */# define INCLUDE_SECONDARY_SCSI /* NCR 825 */# define INCLUDE_AUX_CLK /* Z 8536 */# undef INCLUDE_VME_DMA /* VME DMA support */# undef INCLUDE_FD /* Floppy Disk */#endif#ifdef MV2300# undef INCLUDE_CACHE_L2 /* [NOT AVAILABLE] */# define INCLUDE_I8250_SIO /* Debug port via i8250 */# undef INCLUDE_Z85230_SIO /* [NOT AVAILABLE] */# define INCLUDE_PRIMARY_ENET /* Primary Ethernet */# undef INCLUDE_SECONDARY_ENET /* [NOT AVAILABLE] */# undef INCLUDE_PRIMARY_SCSI /* [NOT AVAILABLE] */# undef INCLUDE_SECONDARY_SCSI /* [NOT AVAILABLE] */# define INCLUDE_AUX_CLK /* ravenAuxClk.c */# undef INCLUDE_VME_DMA /* VME DMA support */# undef INCLUDE_FD /* [NOT AVAILABLE] */#endif#define PRIMARY_ENET_ID 0 /* Primary Ethernet. first DEC device found */#define SECONDARY_ENET_ID 1 /* Secondary Ethernet, second device found *//* 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 the L2 cache */#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) */#ifdef INCLUDE_END#undef WDB_COMM_TYPE /* WDB agent communication path is END device */ #define WDB_COMM_TYPE WDB_COMM_END #endif /* INCLUDE_END *//* * Primary Ethernet = DEC21140 = device unit #0 * * The if_dc driver can handle up to 4 devices. * Currently, it is only possible to boot from unit #0. */#ifdef INCLUDE_PRIMARY_ENET#define INCLUDE_DC#define DC_POOL_ADRS (RAM_LOW_ADRS - DC_POOL_SIZE) /* memory pool adrs */#define DC_POOL_SIZE 0x0000C000 /* memory pool size */#define DC_MODE 0x08 /* Dec21140 */#endif /* INCLUDE_PRIMARY_ENET *//* Secondary Ethernet = DEC21040 = device unit #1 */#ifdef INCLUDE_SECONDARY_ENET#define DC1_POOL_ADRS NONE /* memory pool adrs */#define DC1_POOL_SIZE NONE /* memory pool size */#define DC1_MODE NONE /* Default: dec21040 */#endif /* INCLUDE_SECONDARY_ENET *//* 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 on startup */#undef SCSI_WIDE_ENABLE /* enable wide SCSI on MVME761-011 only */#define SYS_SCSI_CONFIG /* call sysScsiConfig in sysScsi.c */#endif /* INCLUDE_PRIMARY_SCSI *//* 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 (PCI Bridge) configuration parameters */#undef INCLUDE_PMC_SPAN /* PMC Span support not included by default *//* 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 0xff /* latency *//* serial parameters */#undef NUM_TTY#define NUM_TTY N_SIO_CHANNELS/* * Auxiliary Clock support is an optional feature that is not supported * by all BSPs. */#ifdef INCLUDE_AUX_CLK#ifdef MV2300# define INCLUDE_RAVEN_AUXCLK /* specify aux clock device */#else# define INCLUDE_Z8536_AUXCLK /* specify aux clock device */#endif /* MV2300 */#else# undef INCLUDE_SPY#endif /* INCLUDE_AUX_CLK *//* Shared-memory Backplane Network parameters *//* * INCLUDE_SM_NET and INCLUDE_SM_SEQ_ADDR are the shared memory backplane * driver and the auto address setup which are defined in configAll.h. To * excluded them uncomment the following lines: * * #undef INCLUDE_SM_NET * #undef INCLUDE_SM_SEQ_ADDR *//* * Changing SM_OFF_BOARD to TRUE also requires changing * SM_ANCHOR_ADRS and SM_MEM_ADRS appropriately. */#define SM_OFF_BOARD FALSE#undef SM_ANCHOR_ADRS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -