confignet.h

来自「This file contains board-specific inform」· C头文件 代码 · 共 81 行

H
81
字号
/* configNet.h - network configuration header *//* Copyright 1984-1998 Wind River Systems, Inc. *//*modification history--------------------01e,12jun02,kab  SPR 74987: cplusplus protection01d,13sep99,rhk removed CPM ethernet support.01c,31aug99,rhk modified for cpv3060.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 */ /* * 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 */			       }; /* Motorola Fast Ethernet Controller */#define FEC_LOAD_FUNC	motFecEndLoad#define FEC_LOAD_STRING	"0xfa200000:0x07:-1:0x0:-1:-1:0x20:0x20:0x0:0xff:2:0x4"IMPORT END_OBJ* FEC_LOAD_FUNC (char *, void*);/* * "<motCpmAddr>:<ivec>:<bufBase>:<bufSize>:<fifoTxBase>:<fifoRxBase> * :<tbdNum>:<rbdNum>:<phyAddr>:<isoPhyAddr>:<phyDefMode>:<userFlags>" */#ifdef MPC860TEND_TBL_ENTRY endDevTbl [] ={    { 0, FEC_LOAD_FUNC, FEC_LOAD_STRING, 1, NULL, FALSE},    { 0, END_TBL_END, NULL, 0, NULL, FALSE},};#elseEND_TBL_ENTRY endDevTbl [] ={    { 0, END_TBL_END, NULL, 0, NULL, FALSE},    { 0, END_TBL_END, NULL, 0, NULL, FALSE},};#endif /* MPC860T */#ifdef __cplusplus    }#endif#endif /* INCconfigNeth */

⌨️ 快捷键说明

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