📄 config.h
字号:
/* config.h - Motorola PowerChap board configuration header *//* Copyright 1984-2002 Wind River Systems, Inc. *//* Copyright 1996-2002 Motorola, Inc. All Rights Reserved *//*modification history--------------------01z,23may02,mil Updated INCLUDE_AUXCLK to INCLUDE_AUX_CLK.01y,28mar02,mil Merged T2.1 release of MCG LoPEC bsp, updated version.01x,16jan02,mil Updated DEFAULT_BOOT_LINE with fei device.01w,11oct91,cak Modified as per Wind River code review and conversion to Tornado 2.1.01v,03apr01,cak Removed alpha release note regarding ECC01u,02apr01,scb undef autosize and ecc when BYPASS_SPD #define'd01t,14mar01,cak Corrected PCI documentation01s,13feb01,cak Added support for RTC, alarm clock, and failsafe timer 01r,07feb01,cak Removed ULTRA2_SCSI define, moved to lopec.h01q,06feb01,cak Added SCSI support.01p,02feb01,scb remvoved shared memory related infomation01o,02feb01,scb removed INCLUDE_CACHE_L2 #define01n,26jan01,scb L2 cache support.01m,18jan01,scb Modified for MPC107 address map B (CHRP)01l,12jan01,djs Changed BYPASS_SPD to be undef'd by default01k,11jan01,cak Edited ATA_DEVn_STATE comments for 2.5" EIDE header 01j,02jan01,cak Added IDE/ATA support01i,18dec00,scb #define FLASH_BOOT by default01h,13dec00,djs Cleanup/rename macros01g,01dec00,djs Added a BYPASS_SPD around LOCAL_AUTO_MEMSIZE01f,30nov00,djs support for i8255901e,28nov00,scb Added BYPASS_SPD #define01d,20nov00,scb Processor support01c,14nov00,djs removed EXT interrupt source vectors01b,10nov00,djs modified EPIC edge/level and priority macros01a,02nov00,djs created from 01o,16feb00,rhk (mv2100/config.h)*//*DESCRIPTIONThis file contains the configuration parameters for theMotorola PowerChap 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"/* PRIMARY INCLUDES */#include "configAll.h"/* defines */#if (CPU == PPC604)# define DEFAULT_BOOT_LINE \ "fei(0,0)host:/tornado/lopec/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 */#define FLASH_BOOT /* select soldered Flash boot base */#define INCLUDE_ALTIVEC /* Effect on MPC7410 only, LoPEC-P011 */#define INCLUDE_AUX_CLK /* Auxiliary clock support */#define INCLUDE_CACHE_L2 /* L2 Cache Support */#define INCLUDE_END /* Enhanced Network Driver */#undef INCLUDE_ATA /* ATA-2 portion of EIDE support */#undef INCLUDE_SCSI /* SCSI Support */#undef INCLUDE_ECC /* MPC107 ECC */#undef INCLUDE_FAILSAFE /* Failsafe timer support */#undef INCLUDE_RTC /* Real-Time Clock and alarm clock support */#undef INCLUDE_SM_NET /* Leave as #undef, no support on this board *//* timestamp option not included by default; #define to include it */#undef INCLUDE_TIMESTAMP/* include support for onboard i82559 devices by default */#define INCLUDE_FEI_END/* * BYPASS_SPD is a debug build switch which, when defined, forces the BSP * to ignore SPD information and assume a 32MB SDRAM array and configures * the MPC107 for default (worst case) memory timing. */#undef BYPASS_SPD/* * Cache and MMU options - * The symbol INCLUDE_CACHE_SUPPORT (in "configAll.h") is #defined by * default and causes L1 cache support (including enabling of the cache) * to be provided. In the event that no L1 cache enabling is desired * include a #undef INCLUDE_CACHE_SUPPORT here. However, note that if * INCLUDE_CACHE_SUPPORT is not defined (L1 cache not enabled) then * L2 cache will not be enabled as well, regardless of the state of the * INCLUDE_CACHE_L2 define. This is because the L2 cache cannot be * enabled if the L1 cache is not enabled. */ #define INCLUDE_MMU_BASIC /* bundled mmu support */#undef USER_D_CACHE_MODE#define USER_D_CACHE_MODE (CACHE_COPYBACK | CACHE_SNOOP_ENABLE)/* * SCSI Support * * INCLUDE_SCSI_BOOT : Enables booting from a SCSI device. * INCLUDE_DOSFS : Enables DOS file system support. * SCSI_AUTO_CONFIG : Enables an automatic scan of the SCSI bus at * startup. * SYS_SCSI_CONFIG : Enables you to declare a SCSI peripheral * configuration, and is meant as a substitute for * SCSI_AUTO_CONFIG. You must also edit * sysScsiConfig in sysScsi.c, so that it reflects * the actual configuration of your SCSI bus. */#ifdef INCLUDE_SCSI# define INCLUDE_SCSI_BOOT /* include ability to boot from SCSI */# define INCLUDE_DOSFS /* DOS file system support */# undef SCSI_AUTO_CONFIG /* scan SCSI bus automatically on startup */# undef SYS_SCSI_CONFIG /* call sysScsiConfig in sysScsi.c */#endif /* INCLUDE_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 = do not probe. * * To probe for all devices connected to both controllers, change all * ATA_DEVx_STATE values to DEV_PRESENT. * * ATA_DEV0_STATE = cntrl 0 / device 0 * ATA_DEV1_STATE = cntrl 0 / device 1 * ATA_DEV2_STATE = cntrl 1 / device 0 * ATA_DEV3_STATE = cntrl 1 / device 1 * * If your board contains a 3.5" EIDE header: * ATA_DEV0_STATE corresponds to the master device * ATA_DEV1_STATE corresponds to the slave device * * If your board contains a 2.5" EIDE header: * ATA_DEV0_STATE corresponds to the master device * ATA_DEV1_STATE corresponds to the slave device * * If your board contains a Compact FLASH header: * ATA_DEV2_STATE corresponds to the compact FLASH * ATA_DEV3_STATE should remain undefined */#define DEV_PRESENT 1#define DEV_NOT_PRESENT 0# define ATA_DEV0_STATE DEV_NOT_PRESENT /* EIDE Master */# define ATA_DEV1_STATE DEV_NOT_PRESENT /* EIDE Slave */# define ATA_DEV2_STATE DEV_NOT_PRESENT /* Compact FLASH */# define ATA_DEV3_STATE DEV_NOT_PRESENT /* Do not alter */#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 *//* serial parameters */#undef NUM_TTY#define NUM_TTY N_SIO_CHANNELS/* * Auxiliary Clock support is needed by SPY */#ifdef INCLUDE_SPY# define INCLUDE_AUX_CLK#endif /* INCLUDE_SPY *//* * 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! * * When LOCAL_MEM_AUTOSIZE is defined, it goes out and reads the * SPD (Serial Presence Detect) for memory size information. When * the use of the SPD is being by bypassed, LOCAL_MEM_AUTOSIZE needs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -