📄 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_FEC_END/* Motorola Fast Ethernet Controller */#define FEC_LOAD_FUNC m5200FecEndLoad/* * "<MBARAddr>:<ivec>:<bufBase>:<bufSize>:<fifoTxBase>:<fifoRxBase> * :<tbdNum>:<rbdNum>:<phyAddr>:<isoPhyAddr>:<phyDefMode>:<userFlags>" */#define FEC_LOAD_STRING "0xf0000000:0x05:-1:0x0:-1:-1:0x40:0x30:0x0:0xff:0x00:0x00"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 m5200FecPhyAnOrderTbl [] = { 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_FEC_END */#ifdef INCLUDE_FEI_END#define END_LOAD_FUNC sysFei82557EndLoad#define END_BUFF_LOAN 1#define END_LOAD_STRING "" /* created in sysEnd.c */IMPORT END_OBJ* END_LOAD_FUNC (char*, void*);#endif/* max number of SENS ipAttachments we can have */ #ifndef IP_MAX_UNITS# define IP_MAX_UNITS (NELEMENTS (endDevTbl) - 1)#endif END_TBL_ENTRY endDevTbl [] ={ #ifdef INCLUDE_FEC_END { 0, FEC_LOAD_FUNC, FEC_LOAD_STRING, 1, NULL, FALSE}, #endif /* INCLUDE_FEC_END */ #ifdef INCLUDE_FEI_END { FEI_UINT, END_LOAD_FUNC, END_LOAD_STRING, END_BUFF_LOAN, NULL, FALSE}, #endif /* INCLUDE_FEI82551_END */ { 0, END_TBL_END, NULL, 0, NULL, FALSE},};#endif /* INCconfigNeth */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -