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

📄 sysnet.c

📁 WINDRIVER SBC7410 BSP
💻 C
字号:
/* sysNet.c - system network interface support library *//* Copyright 1984-2002 Wind River Systems, Inc. *//*modification history--------------------01b,13may02,gtf  modified for wrSbc7410 bsp.01a,21mar01,gh   written.*//*DESCRIPTIONThis library contains board-specific routines for network subsystems.*//* includes */#include "copyright_wrs.h"#include "vxWorks.h"#include "taskLib.h"#include "sysLib.h"#include "config.h"#if defined (INCLUDE_NETWORK)/***************************************************************************** sysNetHwInit - initialize the network interface** This routine initializes the network hardware to a quiescent state.  It* does not connect interrupts.** Only polled mode operation is possible after calling this routine.* Interrupt mode operation is possible after the memory system has been* initialized and sysNetHwInit2() has been called.** RETURNS: N/A** SEE ALSO: sysHwInit()*/void sysNetHwInit (void)    {#ifdef INCLUDE_END#if defined(WANCOM_MII_INT) || defined(INCLUDE_FEI82557END) || defined(INCLUDE_GEI_END)    UINT32 temp ;#endif#ifdef INCLUDE_WANCOMEND    /* Hook up ethernet 0 to ethernet controller 0 MII interface */    GT64260_REG_WR(MPP_SP_MUX, 0x00000101);    /* Setup phy address on ports 0,1,2 to all be default 31 (max), these       addresses are set to the correct value in sysWancomEnd.c. */    GT64260_REG_WR(ETH_PHY_ADRS, 0x00007fff);#ifdef WANCOM_MII_INT/* Used for MII interrupt from LXT972s. *//*The interrupt from the LXT972 indicate the following conditions:

⌨️ 快捷键说明

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