📄 confignet.h
字号:
/* configNet.h - network configuration header *//* Copyright 1984-1999 Wind River Systems, Inc. *//*modification history--------------------01f,31mar99.dat SPR 25958, added #ifndef IP_MAX_UNITS01e,18mar99,cn changed to use sysMotCpmEnd (SPR# 25839). 01d,08feb99,cn changes required by performance improvement (SPR# 24883).01c,18nov98,cn changed motCmpEnd to motCpmEnd, CMP to CPM.01b,09nov98,cn added support for ads860T's FEC.01a,02jun98,cn written.*/ #ifndef INCconfigNeth#define INCconfigNeth#include "vxWorks.h"#include "end.h"/* defines */ #define PHY_10BASE_T 0x00 /* 10 Base-T */#define PHY_10BASE_T_FDX 0x01 /* 10 Base Tx, full duplex */#define PHY_100BASE_TX 0x02 /* 100 Base Tx */#define PHY_100BASE_TX_FDX 0x03 /* 100 Base TX, full duplex */#define PHY_100BASE_T4 0x04 /* 100 Base T4 */ #ifdef INCLUDE_CPM#define CPM_LOAD_FUNC sysMotCpmEndLoad/* motCpmAddr:ivec:sccNum:txBdNum:rxBdNum:txBdBase:rxBdBase:bufBase *//* * this is the default initialization string, valid for all ads860 * boards using SCC1. If running an 823, use SCC2 => the initialization * string slightly varies, in that both the SCC number and the interrupt * vector have different values */#define CPM_LOAD_STRING ""IMPORT END_OBJ* CPM_LOAD_FUNC (char *, void*);#endif /* INCLUDE_CPM */#ifdef INCLUDE_MOT_FEC/* Motorola Fast Ethernet Controller */#define FEC_LOAD_FUNC motFecEndLoad/* * "<motCpmAddr>:<ivec>:<bufBase>:<bufSize>:<fifoTxBase>:<fifoRxBase> * :<tbdNum>:<rbdNum>:<phyAddr>:<isoPhyAddr>:<phyDefMode>:<userFlags>" */#define FEC_LOAD_STRING "0x02200000:0x07:-1:0x0:-1:-1:0x40:0x30:0x0:0xff:2:0x4"IMPORT END_OBJ* FEC_LOAD_FUNC (char *, void*);/* * this table may be customized by the user to force a * particular order how different technology abilities may be * negotiated by the PHY. */ INT16 motFecPhyAnOrderTbl [] = { PHY_100BASE_T4, /* 100Base-T4 */ PHY_100BASE_TX_FDX, /* 100Base-T full duplex*/ PHY_100BASE_TX, /* 100Base-T */ PHY_10BASE_T_FDX, /* 10Base-T full duplex */ PHY_10BASE_T, /* 10Base-T */ -1 /* Signal end of table */ };#endif /* INCLUDE_MOT_FEC *//* max number of SENS ipAttachments we can have */ #ifndef IP_MAX_UNITS# define IP_MAX_UNITS (NELEMENTS (endDevTbl) - 1)#endif #ifdef FADS_860TEND_TBL_ENTRY endDevTbl [] ={ { 0, FEC_LOAD_FUNC, FEC_LOAD_STRING, 1, NULL, FALSE},#ifdef INCLUDE_CPM { 1, CPM_LOAD_FUNC, CPM_LOAD_STRING, 1, NULL, FALSE},#endif /* INCLUDE_CPM */ { 0, END_TBL_END, NULL, 0, NULL, FALSE},};#else /* FADS_860T */END_TBL_ENTRY endDevTbl [] ={ { 0, CPM_LOAD_FUNC, CPM_LOAD_STRING, 1, NULL, FALSE}, { 0, END_TBL_END, NULL, 0, NULL, FALSE},};#endif /* FADS_860T */#endif /* INCconfigNeth */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -