📄 confignet.h
字号:
/* configNet.h - Network configuration header file *//* Copyright 2002 Wind River Systems, Inc. *//*modification history--------------------01b,27feb03,jb3 add C++ protection01a,05jun02,jb initial version...*/#ifndef INCconfigNeth#define INCconfigNeth#ifdef __cplusplusextern "C" {#endif#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 */#ifdef __cplusplus}#endif#endif /* INCconfigNeth */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -