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

📄 confignet.h

📁 powerpc 系列cpu mpc860ads vxworks BSP 得花钱买的
💻 H
字号:
/* 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_CPM_END#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_END */#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:-1:0x0:-1:-1:0x40:0x30:0x0:0xff:2:0x4:" \			FEC_CLOCK_SPEED(SPLL_FREQ_REQUESTED)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_END    { 1, CPM_LOAD_FUNC, CPM_LOAD_STRING, 1, NULL, FALSE},#endif /* INCLUDE_CPM_END */    { 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 */#ifdef __cplusplus    }#endif#endif /* INCconfigNeth */

⌨️ 快捷键说明

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