⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 confignet.h

📁 mpc5200 for bsp,it is have passed built.
💻 H
字号:
/* configNet.h - network configuration header */#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/* * "<bufBase>:<bufSize>:<fifoTxBase>:<fifoRxBase> * :<tbdNum>:<rbdNum>:<phyAddr>:<isoPhyAddr>:<phyDefMode>:<userFlags> * :<clockSpeed>" *//* * clockSpeed is optional for processors running at 50 MHz or less but required * for proper MII management operation, otherwise.  The "stringize" macros are * ANSI C.  Use of K&R C requires clockSpeed to be hard-coded or set in a * separate function */#define FEC_CLOCK_STRINGIZE(x)	#x#define FEC_CLOCK_SPEED(x)	FEC_CLOCK_STRINGIZE(x)#define FEC_LOAD_STR "-1:0x0:-1:-1:0x40:0x30:0x0:0xff:2:0x4:" \			FEC_CLOCK_SPEED(IPB_CLOCK_LITERAL)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_FEI82557END#define FEI_LOAD_FUNC	sysFei82557EndLoad		/* driver external interface */#define FEI_BUFF_LOAN	1/* The END_LOAD_STRING is defined empty and created dynamicaly */#define FEI_LOAD_STR "" /* created in sysFei82557EndLoad */IMPORT END_OBJ * FEI_LOAD_FUNC (char*, void*);#endif /* INCLUDE_FEI82557END *//* max number of SENS ipAttachments we can have */#ifndef IP_MAX_UNITS#   define IP_MAX_UNITS (NELEMENTS (endDevTbl) - 1)#endifEND_TBL_ENTRY endDevTbl [] ={#ifdef INCLUDE_FEC_END    { 0, FEC_LOAD_FUNC, FEC_LOAD_STR, 1, NULL, FALSE},#endif /* INCLUDE_FEC_END */#ifdef INCLUDE_FEI82557END	{ 0, FEI_LOAD_FUNC, FEI_LOAD_STR, FEI_BUFF_LOAN, NULL, FALSE},#endif /* INCLUDE_FEI82557END */    { 0, END_TBL_END, NULL, 0, NULL, FALSE},};#endif /* INCconfigNeth */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -