configNet.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:
VxWorks
开发平台:
C/C++
- /* configNet.h - Network configuration header file */
- /* Copyright 2002 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01a,05jun02,jb initial version...
- */
- #ifndef INCconfigNeth
- #define INCconfigNeth
- #ifdef INCLUDE_END
- #include "vxWorks.h"
- #include "end.h"
- #include "ixp425.h"
- #define IP_MAX_UNITS 7
- /*
- * The number of entries here must match EBSA285_MAX_END_DEVS (excluding
- * the terminator entry)
- */
- /* @CS*/
- /* Parmeters for loading the CS8900 Ethernet driver
- *
- * The initialization string format for LOAD_STRING is:
- * "0xIOAddr:0xIntLevel:0xMemAddr:MediaType:0xConfigFlags"
- *
- * where MediaType includes:
- * MEDIA_AUI 1
- * MEDIA_10BASE2 2
- * MEDIA_10BASET 3
- */
- #define CS_LOAD_FUNC csEndLoad
- #if ( IXP425_EXPANSION_BUS_CS4_BASE + 0x300) != 0x54000300
- #error Base Address Mismatch - check CS_LOAD_STRING
- #endif
- #if ( IXP425_INT_LVL_GPIO0 ) != 6
- #error GPIO Pin Mismatch - check CS_LOAD_STRING
- #endif
- #define CS_INTERRUPT_LEVEL ( IXP425_INT_LVL_GPIO0)
- #define CS_INTERRUPT_VECTOR ( IXP425_VEC_GPIO0 )
- /* Note Level does not in string, is not ixp425 interrupt level,
- * it sets the Interrupt Number register in the cs8900 */
- /* #define CS_LOAD_STRING "0x54000300:0xA:0x0:3:0x8010" */ /* Normal unicast addr filtering */
- #define CS_LOAD_STRING "0x54000300:0xA:0x0:3:0x8210" /* Promiscious mode */
- IMPORT END_OBJ* CS_LOAD_FUNC(char*, void*);
- END_TBL_ENTRY endDevTbl [] =
- {
- #ifdef INCLUDE_CS8900END
- { 0, CS_LOAD_FUNC, CS_LOAD_STRING, 1, NULL, FALSE},
- #endif
- { 0, END_TBL_END, NULL, 0, NULL, FALSE}, /*Up to 4 PCI NICs*/
- { 0, END_TBL_END, NULL, 0, NULL, FALSE},
- { 0, END_TBL_END, NULL, 0, NULL, FALSE},
- { 0, END_TBL_END, NULL, 0, NULL, FALSE},
- { 0, END_TBL_END, NULL, 0, NULL, FALSE}, /*Two Ethernet devices on board*/
- { 0, END_TBL_END, NULL, 0, NULL, FALSE},
- { 0, END_TBL_END, NULL, 0, NULL, FALSE}, /*Placeholder denoting end of table*/
- };
- #endif /* INCLUDE_END */
- #endif /* INCconfigNeth */