?? confignet.h
字號(hào):
/* configNet.h - network configuration header *//* Copyright 1984-2001 Wind River Systems, Inc. *//*modification history--------------------01i,12jun02,kab SPR 74987: cplusplus protection01h,28jan02,dtr Changing INCLUDE_CPM to INCLUDE_CPM_END.01g,26oct01,crg added support for proper setting of MII management interface speed (SPR 33812)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#ifdef __cplusplus extern "C" {#endif#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_MOT_FEC/* Motorola Fast Ethernet Controller */#define FEC_LOAD_FUNC motFecEndLoad/* * "<motFecAddr>:<ivec>:<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_STRING "0x02200000:0x07:0x0:-1:0x0:-1:-1:0x40:0x30:0x0:0xff:2:0x0:0x0"#define FEC_LOAD_STRING2 "0x02200000:0x03:0x1:-1:0x0:-1:-1:0x40:0x30:0x1:0xff:2:0x0:0x0"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)#endifEND_TBL_ENTRY endDevTbl [] ={ { 0, FEC_LOAD_FUNC, FEC_LOAD_STRING, 1, NULL, FALSE},#ifdef INCLUDE_FEC2 { 1, FEC_LOAD_FUNC, FEC_LOAD_STRING2, 1, NULL, FALSE},#endif /* INCLUE_FEC2 */ { 0, END_TBL_END, NULL, 0, NULL, FALSE}};#ifdef __cplusplus }#endif#endif /* INCconfigNeth */
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -