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

VxWorks

开发平台:

C/C++

  1. /* configNet.h - Network configuration header file */
  2. /* Copyright 2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,05jun02,jb  initial version...
  7. */
  8. #ifndef INCconfigNeth
  9. #define INCconfigNeth
  10. #ifdef INCLUDE_END
  11. #include "vxWorks.h"
  12. #include "end.h"
  13. #include "ixp425.h"
  14. #define IP_MAX_UNITS 7
  15. /*
  16.  * The number of entries here must match EBSA285_MAX_END_DEVS (excluding
  17.  * the terminator entry)
  18.  */
  19. /* @CS*/
  20. /* Parmeters for loading the CS8900 Ethernet driver
  21. *
  22. * The initialization string format for LOAD_STRING is:
  23. *  "0xIOAddr:0xIntLevel:0xMemAddr:MediaType:0xConfigFlags"
  24. *
  25. * where MediaType includes:
  26. *     MEDIA_AUI           1
  27. *     MEDIA_10BASE2       2
  28. *     MEDIA_10BASET       3
  29. */
  30. #define CS_LOAD_FUNC csEndLoad
  31. #if  ( IXP425_EXPANSION_BUS_CS4_BASE + 0x300) != 0x54000300 
  32. #error Base Address Mismatch - check CS_LOAD_STRING
  33. #endif
  34. #if  ( IXP425_INT_LVL_GPIO0 ) != 6  
  35. #error GPIO Pin Mismatch - check CS_LOAD_STRING
  36. #endif
  37. #define CS_INTERRUPT_LEVEL  ( IXP425_INT_LVL_GPIO0)
  38. #define CS_INTERRUPT_VECTOR  ( IXP425_VEC_GPIO0 )
  39. /* Note Level does not in string, is not ixp425 interrupt level, 
  40.  * it sets the Interrupt Number register in the cs8900  */
  41. /* #define CS_LOAD_STRING "0x54000300:0xA:0x0:3:0x8010"    */  /* Normal unicast addr filtering */ 
  42. #define CS_LOAD_STRING "0x54000300:0xA:0x0:3:0x8210"  /* Promiscious  mode */
  43. IMPORT END_OBJ* CS_LOAD_FUNC(char*, void*);
  44. END_TBL_ENTRY endDevTbl [] =
  45. {
  46. #ifdef INCLUDE_CS8900END
  47.    { 0, CS_LOAD_FUNC, CS_LOAD_STRING, 1, NULL, FALSE},
  48. #endif
  49.    { 0, END_TBL_END, NULL, 0, NULL, FALSE}, /*Up to 4 PCI NICs*/
  50.    { 0, END_TBL_END, NULL, 0, NULL, FALSE},
  51.    { 0, END_TBL_END, NULL, 0, NULL, FALSE},
  52.    { 0, END_TBL_END, NULL, 0, NULL, FALSE},
  53.    { 0, END_TBL_END, NULL, 0, NULL, FALSE}, /*Two Ethernet devices on board*/  
  54.    { 0, END_TBL_END, NULL, 0, NULL, FALSE}, 
  55.    { 0, END_TBL_END, NULL, 0, NULL, FALSE}, /*Placeholder denoting end of table*/
  56. };
  57. #endif /* INCLUDE_END */
  58. #endif /* INCconfigNeth */