config.h
上传用户:yuanda199
上传日期:2022-06-26
资源大小:412k
文件大小:7k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* Copyright 2002 Broadcom Corporation */
  2. /*
  3. modification history
  4. --------------------
  5. 01b,17sep02,jmb  add TFFS 
  6. 01a,01aug02,jmb  Written 
  7. */
  8. /*
  9. This file contains the configuration parameters for the
  10. BCM 47xx
  11. */
  12. #ifndef __INCconfigh
  13. #define __INCconfigh
  14. /* BSP version/revision identification, before configAll.h */
  15. #define BSP_VER_1_1     1
  16. #define BSP_VER_1_2     1
  17. #define BSP_VERSION     "1.0"
  18. #define BSP_REV         "/0"    /* 0 for first revision */
  19. /******************************************************************************/
  20. /*                                                                            */
  21. /*                        INCLUDE FILES                                       */
  22. /*                                                                            */
  23. /******************************************************************************/
  24.     
  25. #include "configAll.h"
  26. #include "mbz.h"
  27. #undef  INCLUDE_HW_FP
  28. #define INCLUDE_SW_FP           /* include software floating point library */
  29. #undef INCLUDE_SHELL
  30. #define INCLUDE_TFFS
  31. /******************************************************************************/
  32. /*                                                                            */
  33. /*              ENHANCED NETWORK DRIVER SUPPORT                               */
  34. /*                                                                            */
  35. /******************************************************************************/
  36. #define INCLUDE_NET_SHOW
  37. #define INCLUDE_END             
  38. #define STANDALONE_NET
  39. #define IP_MAX_UNITS 5
  40. #define INCLUDE_ET0_END
  41. #define ET0_IP_ADDRESS "192.168.1.1"
  42. #define INCLUDE_ET1_END
  43. #define ET1_IP_ADDRESS "10.19.13.181"
  44. /* For bcm47xx INCLUDE_PCI must be defined */
  45. #define INCLUDE_PCI
  46. /******************************************************************************/
  47. /*                                                                            */
  48. /*                        BOOT PARAMETERS                                     */
  49. /*                                                                            */
  50. /******************************************************************************/
  51. #define DEFAULT_BOOT_LINE 
  52. "et(0,0)borg:boot/bcm.bmw h=192.168.2.1 e=192.168.2.21:ffffff00 u=tornado pw=tornado+"
  53. #define INCLUDE_DOSFS           /* dosFs file system */
  54. #define INCLUDE_FLASH_BOOT
  55. #define INCLUDE_FLASH
  56. /******************************************************************************/
  57. /*                                                                            */
  58. /*                          CACHING SUPPORT                                   */
  59. /*                                                                            */
  60. /******************************************************************************/
  61. #undef USER_I_CACHE_MODE
  62. #undef USER_D_CACHE_MODE
  63.  
  64. #define INCLUDE_CACHE_SUPPORT
  65. #define USER_I_CACHE_MODE       CACHE_COPYBACK
  66. #define USER_D_CACHE_MODE       CACHE_COPYBACK
  67. #define USER_I_CACHE_ENABLE                         /* undef to leave disabled*/
  68. #define USER_D_CACHE_ENABLE                         /* undef to leave disabled*/
  69. #undef  USER_B_CACHE_ENABLE                         /* undef to leave disabled*/
  70. /* WDB agent config */
  71. #undef SERIAL_SYS_MODE_DEBUG
  72. #ifdef SERIAL_SYS_MODE_DEBUG
  73. #undef  WDB_COMM_TYPE
  74. #define WDB_COMM_TYPE    WDB_COMM_SERIAL
  75. #undef  WDB_TTY_BAUD
  76. #define WDB_TTY_BAUD     115200
  77. #undef  WDB_TTY_CHANNEL
  78. #define WDB_TTY_CHANNEL  0
  79. #undef  WDB_TTY_DEV_NAME
  80. #define WDB_TTY_DEV_NAME "/tyCo/0"
  81. #endif /* SERIAL_SYS_MODE_DEBUG */
  82. /******************************************************************************/
  83. /*                                                                            */
  84. /*                          SERIAL SUPPORT                                    */
  85. /*                                                                            */
  86. /******************************************************************************/
  87. #undef  NUM_TTY
  88. #define NUM_TTY                         1
  89. #ifdef CONSOLE_BAUD_RATE
  90. #undef CONSOLE_BAUD_RATE                
  91. #endif
  92. #define CONSOLE_BAUD_RATE       9600          /* console baud rate */
  93.  
  94. /******************************************************************************/
  95. /*                                                                            */
  96. /*                          TIMER SUPPORT                                     */
  97. /*                                                                            */
  98. /******************************************************************************/
  99. #define SYS_CLK_RATE_MIN        1           /* minimum system clock rate */
  100. #define SYS_CLK_RATE_MAX        3600        /* maximum system clock rate */
  101. #define AUX_CLK_RATE_MIN        1           /* minimum auxiliary clock rate */
  102. #define AUX_CLK_RATE_MAX        10000       /* maximum auxiliary clock rate */
  103. /******************************************************************************/
  104. /*                                                                            */
  105. /*                       MEMORY CONSTANTS                                     */
  106. /*                                                                            */
  107. /******************************************************************************/
  108. #define LOCAL_MEM_LOCAL_ADRS        0x80000000 
  109. #define LOCAL_MEM_SIZE              0x01000000  /* 16MB  memory */
  110. #define LOCAL_MEM_SIZE_LM           0x02000000  /* 32MB  memory */
  111. /* User reserved memory, See sysMemTop */
  112. #define USER_RESERVED_MEM 0
  113. /*
  114.  * The constants ROM_TEXT_ADRS, ROM_SIZE, RAM_LOW_ADRS and
  115.  * RAM_HIGH_ADRS are defined in config.h, and MakeSkel.
  116.  * All definitions for these constants must be identical.
  117.  */
  118. #define ROM_TEXT_ADRS           0xbfc00000      /* base addresss of ROM */
  119. #define ROM_BASE_ADRS           ROM_TEXT_ADRS  
  120. #define ROM_SIZE                0x00080000      /* 512KB ROM space */
  121. #define RAM_LOW_ADRS            0x80100000      /* RAM address for kernel/compressed code storage start */
  122. #define RAM_HIGH_ADRS           0x80c10000      /* RAM address for ROM boot/RAM code start address */
  123.  
  124. /******************************************************************************/
  125. /*                                                                            */
  126. /*                        APPLICATION ENTRY POINT                             */
  127. /*                                                                            */
  128. /******************************************************************************/ 
  129. /* Start the Orion SOC diagnostics shell */
  130. #define INCLUDE_USER_APPL
  131. #define USER_APPL_INIT { extern void vxSpawn(void); vxSpawn(); }
  132.              
  133. #ifndef _ASMLANGUAGE
  134. extern unsigned long readCount(void);
  135. extern unsigned long readInstr(void);
  136. extern void APPLICATION(void);   
  137. #endif  /* _ASMLANGUAGE */
  138.               
  139. #endif  /* __INCconfigh */
  140. #if defined(PRJ_BUILD)
  141. #include "prjParams.h"
  142. #endif
  143. /* end of config.h */