config.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:17k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* config.h - IXP425 Eval board configuration header */
  2. /* Copyright 2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01j,14nov02,jb3  bump decimalrev
  7. 01i,17oct02,jb  Bump rev
  8. 01h,07oct02,jb  Remove IP address size change
  9. 01g,18sep02,jb  Increasing ixEth block counts
  10. 01f,18sep02,jb  Enable ixEthAccEnd
  11. 01e,14aug02,jb  Continuing End support and changing sdram from 128MB to 256MB
  12. 01d,26jun02,jb  Adding ixp425 End support
  13. 01c,18jun02,jb  Changing BOARD_DESC
  14. 01b,12jun02,jb  Continuing restructure
  15. 01a,05jun02,jb  initial version...
  16. */
  17. /*
  18. This module contains the configuration parameters for ixp425 IXDP425 platform.
  19. */
  20. #ifndef INCconfigh
  21.  #define INCconfigh
  22. /** BSP version/revision identification, before configAll.h **/
  23.  #define BSP_VER_1_2     1 /* 1.2 is backward compatible with 1.1 */
  24.  #define BSP_VER_1_1  1
  25.  #define BSP_VERSION  "1.3" /* Version string */
  26.  #define BSP_REV  "/2" /* 0 for first revision */
  27.  #define BOARD_DESC "Intel IXP425 - IXDP425 BE"
  28.  #include "configAll.h" /* Include the default configurations */
  29.  #include "ixp425.h"
  30. #ifdef INCLUDE_IXETH
  31. #ifndef   _ASMLANGUAGE
  32.  /* Detect invalid CSR_BASE early */
  33.  #include "IxTypes.h"
  34. #endif /* _ASMLANGUAGE */
  35. #endif /* INCLUDE_IXETH */
  36. /*
  37.  * STANDALONE_NET must be defined for network debug with
  38.  * standalone vxWorks.st
  39.  */
  40. #define STANDALONE_NET
  41. /*
  42.  * make use of data cache for fast DRAM
  43.  */
  44.  #undef INCLUDE_FAST_DRAM
  45.  #ifdef INCLUDE_FAST_DRAM
  46.   #define FD_CACHELINE   8  /* 8 UINT32's in a cache line (32-bytes) */
  47.   #define FD_LINESPERSET 28  /* 28 available cache lines per set */
  48.   #define FD_SETS  32  /* 32 sets in data cache */
  49.   #define FD_MAX_LINES (FD_LINESPERSET * FD_SETS)      /* Max number of lines one can allocate (28 x 32) */
  50. /*
  51.  * Location of virtual address just above SDRAM. This must be outside everybody else's
  52.  * address to avoid colision issues.
  53.  */
  54.   #define FD_ORIGIN    0x10000000  
  55.   #define FD_MAX_SIZE  0x7000  /* Max size for MMU table description, 28Kbytes */
  56. /* modify based on the number of cache lines you want to use as data ram... */
  57.   #define FD_NUMLINES  FD_MAX_LINES  /* set for max 28Kbytes */
  58.  #endif /* INCLUDE_FAST_DRAM */
  59. /* 
  60.  * Support network devices.
  61.  */
  62. #define  INCLUDE_NETWORK
  63. /* 
  64.  * First line below indicates host (xx.xx.xx.xx) and path of image
  65.  *  (c:vxWorks). The parameters that follow are:
  66.  *  h = Internet address of host (xx.xx.xx.xx)
  67.  *  e = Internet address of target (xx.xx.xx.xx)
  68.  *  tn = Name of target machine
  69.  *  u = user name used to access host
  70.  *  pw = password for user
  71.  */
  72. #define DEFAULT_BOOT_LINE 
  73.   "flash(0,0)host:vxWorks " 
  74.   "h=10.0.26.1 e=10.0.26.188 u=12 tn=targetname f=0x80 o=ixe0"
  75. /** Selection Macros, which might have affect later **/
  76.  #define INCLUDE_SYS_HW_INIT_0
  77.  #ifdef INCLUDE_SYS_HW_INIT_0
  78.   #ifndef _ASMLANGUAGE
  79.    IMPORT void sysHwInit0 (void);
  80.   #endif /* _ASMLANGUAGE */
  81.   #define SYS_HW_INIT_0() sysHwInit0 ()
  82.  #endif /* INCLUDE_SYS_HW_INIT_0 */
  83.  #define INCLUDE_TIMESTAMP
  84.  #define INCLUDE_USER_TIMESTAMP
  85.  #ifdef INCLUDE_USER_TIMESTAMP
  86.   #define USER_TIMESTAMP      sysTimestamp
  87.   #define USER_TIMESTAMPLOCK  sysTimestampLock
  88.   #define USER_TIMEENABLE     sysTimestampEnable
  89.   #define USER_TIMEDISABLE    sysTimestampDisable
  90.   #define USER_TIMECONNECT    sysTimestampConnect
  91.   #define USER_TIMEPERIOD     sysTimestampPeriod
  92.   #define USER_TIMEFREQ       sysTimestampFreq
  93.  #endif  /* INCLUDE_USER_TIMESTAMP */
  94.  #define INCLUDE_EXC_HANDLING
  95.  #define INCLUDE_EXC_TASK
  96.  #define INCLUDE_RAM_PAGE_TABLE
  97.  #undef INCLUDE_IXP425_UART_DEBUG /* Turn off very low level debug */
  98.  #define INCLUDE_UART1_SUPPORT /* Include Uart 1 console support  */
  99.  #define INCLUDE_UART2_SUPPORT /* Include Uart 2 console support  */
  100. #define INCLUDE_WDB
  101. /*** UART ***/
  102. /*
  103.  * Since there are two UARTs. The default UART defs like NUM_TTY, CONSOLE_TTY
  104.  * and CONSOLE_BAUD_RATE in configAll.h should work fine. If you change any
  105.  * defaults, it might affect the WDB defs also, so cross check with WDB defs.
  106.  *
  107. */
  108.  #define N_UARTS    2     /* Enable both uarts */
  109.  #undef  NUM_TTY
  110.  #define NUM_TTY    N_UARTS
  111.  #define DEFAULT_BAUD    115200
  112.  #define UART_DEFAULT_BAUD 115200
  113.  #undef  CONSOLE_TTY
  114.  #define CONSOLE_TTY    0
  115.  #undef  CONSOLE_BAUD_RATE
  116.  #define CONSOLE_BAUD_RATE DEFAULT_BAUD
  117. /*
  118.  * Define SERIAL_DEBUG to enable Windriver debugging
  119.  * via the serial ports.
  120.  */
  121.  #undef SERIAL_DEBUG
  122. #ifdef INCLUDE_WDB
  123.  #ifdef SERIAL_DEBUG
  124.   #define WDB_NO_BAUD_AUTO_CONFIG
  125.   #undef WDB_COMM_TYPE
  126.   #undef WDB_TTY_BAUD
  127.   #undef WDB_TTY_CHANNEL
  128.   #undef WDB_TTY_DEV_NAME
  129.   #define WDB_COMM_TYPE   WDB_COMM_SERIAL /* WDB in Serial mode */
  130.   #define WDB_TTY_BAUD   115200   /* Baud rate for WDB Connection */
  131.   #define WDB_TTY_CHANNEL   0   /* COM PORT #2 */
  132.   #define WDB_TTY_DEV_NAME   "/tyCo/1"   /* default TYCODRV_5_2 device name */
  133.  #else /* SERIAL_DEBUG */
  134.   /* Network WDB engine. */
  135.  #endif /* SERIAL_DEBUG */
  136. #endif /* INCLUDE_WDB */
  137. /*** MMU ***/
  138.  #define INCLUDE_MMU_BASIC
  139.  #ifdef INCLUDE_MMU_FULL  /* Full MMU Configuration */
  140.   #undef INCLUDE_MMU_BASIC
  141.  #endif /* INCLUDE_MMU_FULL */
  142.  #ifdef INCLUDE_MMU_BASIC /* Basic MMU Configuration */
  143.   #undef INCLUDE_MMU_FULL
  144.  #endif /* INCLUDE_MMU_BASIC */
  145.  #if defined(INCLUDE_MMU_FULL) || defined(INCLUDE_MMU_BASIC)
  146.   #define INCLUDE_MMU_VIRTUAL_MEM_EQUAL_PHY_MEM  /* Provide BSP mmuPhysToVirt,mmuVirtToPhys linear 1:1 mapping */
  147.  #endif /* INCLUDE_MMU_FULL || INCLUDE_MMU_BASIC */
  148. /***************************** 
  149.  * Cache  support 
  150.  ******************************/
  151.  #define INCLUDE_CACHE_SUPPORT
  152. /* StrongARM I-cache mode is a bit of an inappropriate concept, but use this */
  153.  #undef  USER_I_CACHE_MODE
  154.  #define USER_I_CACHE_MODE  CACHE_WRITETHROUGH
  155. /* StrongARM has to be this, as it does not support writethrough */
  156.  #undef  USER_D_CACHE_MODE
  157.  #define USER_D_CACHE_MODE  CACHE_COPYBACK
  158. /* If ROM code enables MMU then define ROM_ENABLES_MMU */
  159. #undef ROM_ENABLES_MMU
  160. #ifdef ROM_ENABLES_MMU
  161. /*
  162.  * if you def/undef the SECOND_LEVEL_PAGE_TABLE, you need to change the
  163.  * ROM_TEXT_ADRS in the Makefile. see #define ROM_TEXT_ADRS
  164.  */
  165.  #undef SECOND_LEVEL_PAGE_TABLE  /* selected the two level table */
  166.  /* Location of the translation table base, it needs to be 16k aligned */
  167.  #define MMU_TRANSLATION_BASE 0x00004000
  168.  #if defined(SECOND_LEVEL_PAGE_TABLE)
  169.   #define MMU_TABLE_SIZE     0x4800
  170.  #else
  171.   #define MMU_TABLE_SIZE     0x4000
  172.  #endif /* SECOND_LEVEL_PAGE_TABLE */
  173. #else
  174.  /* MMU not enabled */
  175.  #define MMU_TRANSLATION_BASE 0x1000
  176.  #define MMU_TABLE_SIZE     0x0000
  177. #endif /* ROM_ENABLES_MMU */
  178.  #if defined(INCLUDE_MMU_BASIC) || defined(INCLUDE_MMU_FULL)
  179.   #define INCLUDE_MMU
  180.  #endif /* NCLUDE_MMU_BASIC || INCLUDE_MMU_FULL */
  181.  #undef VM_PAGE_SIZE
  182.  #define VM_PAGE_SIZE 4096
  183. /* Memory configuration */
  184. #undef LOCAL_MEM_AUTOSIZE      /* NO run-time memory sizing */
  185. #define LOCAL_MEM_LOCAL_ADRS 0x00000000   /* The start of on board memory area */ 
  186. #define LOCAL_MEM_SIZE (128 * 0x00100000)  /* 128Meg - amout of memory for VxWorks  - all */ 
  187. #define USER_RESERVED_MEM (4 *  0x00100000)    /* 4Meg for now */
  188. /*** RAM Information ***/
  189. /* Link Address: To where the bootrom image will be decompressed  into reserved memory at top of memory*/
  190. #define RAM_HIGH_ADRS           0x04000000 /* 128MB - This must be the same as in Makefile */
  191. /* RAM starting address, RAM Size */
  192. #define RAM_LOW_ADRS            0x00020000  /* VxWorks image entry point */ 
  193. /*
  194.  * Boot ROM is an image written into Flash ROM and started
  195.  * at address 0. Due to the remapping of memory by the internal BUS
  196.  * controller , the Flash memory appears at an address of 0x50000000.
  197.  *
  198.  * The following parameters are defined here and in the Makefile.
  199.  * They must be kept synchronized; effectively config.h depends on
  200.  * Makefile. Any changes made here must be made in the Makefile and vice
  201.  * versa.
  202.  *
  203.  * ROM_BASE_ADRS is the base of the Flash ROM
  204.  * ROM_TEXT_ADRS is the entry point of the VxWorks image
  205.  * ROM_SIZE is the size of the part of the Flash ROM allocated to the VxWorks
  206.  *          image (block size - size of headers - NVRAM allocation)
  207.  *
  208.  * Two other constants are used:
  209.  * ROM_COPY_SIZE is the size of the part of the ROM to be copied into RAM
  210.  *       (uncompressed bootrom)
  211.  * ROM_SIZE_TOTAL is the size of the entire Flash ROM (used in sysPhysMemDesc)
  212.  *
  213.  * The boot ROM image starts at an offset of 0 into the n'th block of flash
  214.  * to give the diagnostics and other RTOS's room to live in.
  215.  *
  216.  * So the calculation for ROM_TEXT_ADRS is:
  217.  *                         Virtual      Physical
  218.  *   Address of Flash:     0x50000000   0x50000000
  219.  *   Offset of nth block:  0x00000000   0x00000000  - Currently putting Bootrom at offset zero into flash 
  220.  *   Sum:                  0x50000000   0x50000000
  221.  *
  222.  * Note also that the addresses given here are virtual addresses after
  223.  * the MMU is turned on. The physical addresses will be based on zero.
  224.  *
  225.  * The values are given as literals here to make it easier to ensure
  226.  * that they are the same as those in the Makefile. The build of the bootrom
  227.  * will check that it does not overflow the space allocated.
  228.  */
  229. #if 0
  230. #define ROM_FLASH_BASE       (0x50000000)  /* Base address of CS0 in boot position */
  231. #define ROM_FLASH_ALT_BASE      (0x50000000)  /* Base address of CS0 in alternate position */
  232. #define ROM_FLASH_OFFSET     (0x0)  /* Offset in Flash dedicated to VxWorks BSP */
  233. /*#define ROM_FLASH_RESERVED (0 * 0x00100000)*/ /* Size of Flash dev reserved from top */
  234. #define ROM_ACTUAL_FLASH_SIZE   (8 * 0x00100000) /* Real size of Flash */
  235. #define ROM_BASE_ADRS       0x50000000            /* base of writable Flash */
  236. #define ROM_SIZE            0x00800000           /* size - start */
  237.                                         
  238. #define ROM_COPY_SIZE       ((ROM_SIZE - 0x2000) / 4)
  239. #define ROM_SIZE_TOTAL      ROM_SIZE              /* total size of Flash ROM */
  240. #define BOOT_ROM_RELOCATE_SIZE (0x00200000)
  241. /*
  242.  * The size must be big enough so that
  243.  *    (ROM_BASE_ADRS + ROM_SIZE - ROM_TEXT_ADRS) >= size of boot image
  244.  * We allow up to an arbitrary 128K for the image.
  245.  */
  246. #if (ROM_BASE_ADRS + ROM_SIZE - ROM_TEXT_ADRS) < 0x20000 
  247.   #error  ROM_ values need checking in config.h/Makefile  
  248. #endif /* (ROM_BASE_ADRS + ROM_SIZE - ROM_TEXT_ADRS) < 0x20000 */
  249. #endif
  250. #if WITH_REDBOOT==1
  251. #define FLASH_SIZE             (ROM_SIZE - 0x40000 - 0x40000)
  252. #define ROM_TEXT_ADRS      0x50041000
  253. #define FLASH_ADRS    0x50040000
  254. #else
  255. #define FLASH_SIZE             (ROM_SIZE)
  256. #define ROM_TEXT_ADRS      0x50001000
  257. #undef ETHROM
  258. #ifdef ETHROM
  259. #define FLASH_ADRS 0x52000000
  260. #else
  261. #define FLASH_ADRS 0x50000000
  262. #endif
  263. #endif
  264. #define BOOTROM_IMAGE_MAX_SIZE (512 * 1024)
  265. #define LOAD_IMAGE_MAX_SIZE   (6 * 1024 * 1024)
  266. /*
  267.  * Where the text starts in ROM, (address of _romInit), normally it will be,
  268.  * MMU_TRANSLATION_BASE + 16K + additional 1K if we are using second level
  269.  * translation tables.
  270.  *
  271.  * ROM_TEXT_ADRS = MMU_TRANSLATION_BASE + 0x4000  (+ 0x400 if second level page
  272.  *     table used)
  273.  */
  274. /*
  275.  * ISR_STACK_SIZE is defined here rather than in ../all/configAll.h (as is
  276.  * more usual) because the stack size depends on the interrupt structure of the
  277.  * BSP.
  278.  */
  279.  #define ISR_STACK_SIZE 0x1000  /* ISR Stack Size 16 */
  280.  #undef STACK_SAVE
  281.  #define STACK_SAVE  1024  /* maximum size of stack preserved */
  282.  #define SIZE_OF_IP_ADDRESS 24
  283.  #define SIZE_OF_MAC_ADDRESS 6
  284.  #define NV_BOOT_LINE_SIZE (0x100)
  285.  #define NV_GENERIC_STORAGE_AREA_SIZE (0x100)
  286.  /* 
  287.   * These defines specify where the vxWorks bootline and end device information
  288.   * for the board is to be stored. They are mutually exclusive and should not be
  289.   * defined together.
  290.   */
  291. #undef USE_EEPROM_STORAGE /* Define this to enable eeprom as NVRAM - See ixdp425.html */
  292. /*
  293.   *
  294.   * The diagram below shows the EEPROM when used as NVRAM storage.
  295.   * 
  296.   +----+ Top of 512byte EEPROM.
  297.   |    |
  298.   |    |  MAC address storage.
  299.   |____|_ EEPROM + 256 Bytes -- NV_GENERIC_STORAGE_AREA
  300.   |    |
  301.   |    |  Boot Line Storage
  302.   |    |
  303.   +----+ Bottom of EEPROM -- sysNvRamGet/sysNvRamGet - Allows access to here to 
  304.   *
  305.   */
  306.  #define INCLUDE_FLASH
  307.  #ifdef INCLUDE_FLASH   
  308.   #define FLASH_WIDTH 2
  309.   #define FLASH_WIDTH_SPECIAL_2     /* Special definition for Word based flash devices */
  310.   #define SYS_FLASH_TYPE FLASH_28F128J3A /* Specify 16 bit 28F part */
  311.   #define FLASH_SEGMENT_SIZE (128 * 1024) /* sector size of E28F128J3 */
  312.   
  313.   #define FLASH_PARAM_BASE (FLASH_ADRS + FLASH_SIZE - FLASH_SEGMENT_SIZE) 
  314.   #define USE_FLASH_STORAGE
  315.   
  316.   #ifdef USE_FLASH_STORAGE
  317.     #define NV_RAM_SIZE FLASH_SEGMENT_SIZE
  318.     #undef  NV_BOOT_OFFSET
  319.     #define NV_BOOT_SEGMENT (FLASH_ADRS + FLASH_SIZE - FLASH_SEGMENT_SIZE)
  320.     #define NV_BOOT_OFFSET (FLASH_SEGMENT_SIZE - NV_BOOT_LINE_SIZE - NV_GENERIC_STORAGE_AREA_SIZE) /* BootLine Support */
  321.   #endif /* USE_FLASH_STORAGE */
  322. #define BOOTROM_IMAGE_BASE FLASH_ADRS
  323. #define VXWORKS_IMAGE_BASE (BOOTROM_IMAGE_BASE + BOOTROM_IMAGE_MAX_SIZE)
  324.   #undef SYS_FLASH_WRITE
  325.   #undef FLASH_NO_OVERLAY  
  326.  #else  /* INCLUDE_FLASH */
  327.   #define NV_RAM_SIZE NONE
  328.  #endif /* INCLUDE_FLASH */
  329. #undef INCLUDE_EEPROM
  330. #ifdef INCLUDE_EEPROM
  331.   #ifdef USE_EEPROM_STORAGE
  332.      #define NV_RAM_SIZE (0x200)
  333.   #endif /* USE_EEPROM_STORAGE */
  334. #endif /* INCLUDE_EEPROM */
  335. /* Allocation of Generic NV storage area */  
  336. #if defined(INCLUDE_FLASH) || defined(INCLUDE_EEPROM)
  337.   #define NV_RAM_IF_START_OFFSET        (NV_GENERIC_STORAGE_AREA_SIZE)
  338.   #define NV_MAC_ADDR_POOL (NV_GENERIC_STORAGE_AREA_SIZE)  /* Used as offset of sysNvRamGet/Set */
  339.   #define NV_MAC_ADRS_NPE1 (NV_MAC_ADDR_POOL)
  340.   #define NV_MAC_ADRS_NPE2 (NV_MAC_ADRS_NPE1 + SIZE_OF_MAC_ADDRESS)
  341.   /* 
  342.    * Most PCI NICS will store their own MAC address but we include room for them
  343.    * here in case they don't.
  344.    */
  345.   #define NV_MAC_ADRS_PCIEND1 (NV_MAC_ADRS_NPE2 + SIZE_OF_MAC_ADDRESS)
  346.   #define NV_MAC_ADRS_PCIEND2 (NV_MAC_ADRS_PCIEND1 + SIZE_OF_MAC_ADDRESS)
  347.   #define NV_MAC_ADRS_PCIEND3 (NV_MAC_ADRS_PCIEND2 + SIZE_OF_MAC_ADDRESS)
  348.   #define NV_MAC_ADRS_PCIEND4 (NV_MAC_ADRS_PCIEND3 + SIZE_OF_MAC_ADDRESS)
  349.   #define NV_IP_ADRS_RESERVED           (NV_MAC_ADRS_PCIEND4 + SIZE_OF_MAC_ADDRESS)
  350.   #define NV_IP_ADRS_NPE1               (NV_IP_ADRS_RESERVED + SIZE_OF_IP_ADDRESS)
  351.   #define NV_IP_ADRS_NPE2               (NV_IP_ADRS_NPE1 + SIZE_OF_IP_ADDRESS)
  352.   #define NV_IP_ADRS_PCIEND1            (NV_IP_ADRS_NPE2 + SIZE_OF_IP_ADDRESS)
  353.   #define NV_IP_ADRS_PCIEND2            (NV_IP_ADRS_PCIEND1 + SIZE_OF_IP_ADDRESS)
  354.   #define NV_IP_ADRS_PCIEND3            (NV_IP_ADRS_PCIEND2 + SIZE_OF_IP_ADDRESS)
  355.   #define NV_IP_ADRS_PCIEND4            (NV_IP_ADRS_PCIEND3 + SIZE_OF_IP_ADDRESS)
  356.    
  357.   #define NV_RAM_IF_END_OFFSET          (NV_IP_ADRS_PCIEND4 + SIZE_OF_IP_ADDRESS)
  358.   #define NV_RAM_IF_SIZE                (NV_RAM_IF_END_OFFSET - NV_RAM_IF_START_OFFSET)   
  359. #endif /* defined(INCLUDE_FLASH) || defined(INCLUDE_EEPROM) */
  360. #define INCLUDE_END /* Enable END drivers */
  361. #define INCLUDE_PCI /* enable PCI Bus */
  362. #ifdef INCLUDE_PCI
  363. #define INCLUDE_PCI_DMA
  364. #endif /* INCLUDE_PCI */
  365. #ifdef INCLUDE_END /* If END drivers are enabled */
  366. #if HAVE_82559==1
  367. #define INCLUDE_FEI82557END /* Enable Intel PCI based 8255x driver */
  368. #else
  369. #undef INCLUDE_FEI82557END
  370. #endif
  371. #ifdef INCLUDE_FEI82557END
  372. #ifndef INCLUDE_PCI /* Cannot have fei without pci */
  373. #undef INCLUDE_FEI82557END
  374. #endif /* INCLUDE_PCI */
  375. #define IXDP_FEIEND_USE_NVRAM_IP /* Get unassigned FEI IP addresses from NVRAM/EEPROM */
  376. #define IXP425_MAX_FEI_DEVS 1
  377. #define IXDP_FEI557_IP0_DEFAULT "192.168.10.1"    /* Default address for PORT0 */
  378. #define IXDP_FEI557_IP1_DEFAULT "192.168.20.1"    /* Default address for PORT0 */
  379. #define IXDP_FEI557_IP2_DEFAULT "192.168.30.1"    /* Default address for PORT0 */
  380. #define IXDP_FEI557_IP3_DEFAULT "192.168.40.1"    /* Default address for PORT0 */
  381. #endif /* INCLUDE_FEI82557END */
  382. /* define this to include IxEthAcc support */
  383. #define INCLUDE_IXETHACCEND
  384. #ifdef INCLUDE_IXETHACCEND
  385. #define INCLUDE_IXETHACC_PORT0_END /* enable eth phys port 0 */
  386. #define INCLUDE_IXETHACC_PORT1_END /* enable eth phys port 1 */
  387. #define IXDP_ETHACC_USE_NVRAM_MAC /* Get MAC addresses via NVRAM/EEPROM */
  388. #define IXDP_ETHACC_IP0_DEFAULT "192.168.50.1"    /* Default address for PORT0 */
  389. #define IXDP_ETHACC_IP1_DEFAULT "192.168.60.1"    /* Default address for PORT1 */
  390. /* The following IXETH and EthAcc defines are always defined */
  391. #define IXETHACC_MBLKS 128 /* Number of allocated mBlks per IxEth */
  392. #define IXETHACC_CLSTS 128 /* Number of allocated cLists per IxEth */
  393. #endif /* INCLUDE_IXETHACCEND */
  394. /* Define INCLUDE_USER_APPL to enable Init of all network devices */
  395. #define INCLUDE_USER_APPL
  396. /* This is the entry point into the IXP425 Application software */
  397. #define USER_APPL_INIT {void ixdp425AppInit(); ixdp425AppInit();}
  398. #endif /* INCLUDE_END */
  399. /*
  400.  * Strictly optional components which can be removed at will
  401.  */
  402. #define INCLUDE_SHELL
  403. #define INCLUDE_NET_INIT
  404. #define INCLUDE_SHOW_ROUTINES
  405. #define INCLUDE_NET_SHOW
  406. #define INCLUDE_ARP_API
  407. #define INCLUDE_BSD
  408. #define INCLUDE_PING
  409. #define INCLUDE_DEBUG
  410. #define INCLUDE_LOADER
  411. #define INCLUDE_UNLOADER
  412. #define INCLUDE_NET_REM_IO      /* network remote file i/o driver */
  413. #define INCLUDE_MCAST_ROUTING
  414. #define INCLUDE_IP_FILTER
  415. #define INCLUDE_TELNET
  416. #define INCLUDE_NET_HOST_SETUP
  417. #define INCLUDE_NET_SYM_TBL
  418. #define INCLUDE_STAT_SYM_TBL
  419. #define INCLUDE_SYM_TBL
  420. #define INCLUDE_TFFS
  421. #define INCLUDE_SHOW_ROUTINES
  422. #define INCLUDE_DOSFS
  423. #define CLED(value) 
  424. do { 
  425. volatile unsigned int *p; 
  426. unsigned int a; 
  427.  
  428. p = (unsigned int *)IXP425_GPIO_GPOUTR; 
  429. a = *p; 
  430. *p = (~((value << 4) & 0x70)) & (a|0x70); 
  431. }while (0)
  432. #endif /* INCconfigh */
  433. #if defined(PRJ_BUILD)
  434.  #include "prjParams.h"
  435. #endif