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

📄 sysnet.c

📁 WINDRIVER SBC405 BSP
💻 C
字号:
/* sysNet.c - Wind River SBC405GP system network initialization *//* Copyright 1984-2001 Wind River Systems, Inc. *//*modification history--------------------01b,11jul02,pch  SPR 77845: Use generic fei82557End driver01a,22apr01,gh   create*//*DESCRIPTIONThis library contains board-specific routines for network subsystems.This library will support either the 405GP integrated Ethernet core calledEMAC.*//* This file contributes nothing if INCLUDE_NETWORK is not defined */#ifdef INCLUDE_NETWORK/* includes */#include "vxLib.h"#include "stdio.h"#include "ctype.h"#ifdef INCLUDE_FEI82557END#include "drv/end/fei82557End.h"/* imports */IMPORT void   sys557PciInit (void);IMPORT STATUS sys557Init (int unit, FEI_BOARD_INFO *pBoard);#endif /* INCLUDE_FEI82557END */#ifdef INCLUDE_EMAC_NETWORK#include "ibmEmacEnd.h"/* imports */IMPORT STATUS sysIbmEmacEndBldLoadStr(void);   IMPORT void   sysIbmEmacInit(void);#endif /* INCLUDE_EMAC_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: sysNetHwInit2()*/void sysNetHwInit    (    void    )    {    /*     * Build the load string for the IBM EMAC Ethernet core.     */    #ifdef INCLUDE_EMAC_NETWORK    sysIbmEmacEndBldLoadStr();    #endif /* INCLUDE_EMAC_NETWORK */    return;    }/**************************************************************************** sysNetHwInit2 - initialize additional features of the network interface** This routine completes initialization needed for interrupt mode operation* of the network device drivers.  Interrupt handlers can be connected.* Interrupt or DMA operations can begin.** RETURNS: N/A**/void sysNetHwInit2    (    void    )    {    #ifdef INCLUDE_FEI82557END    sys557PciInit ();            /* Intel 82557/9 device */    #endif /* INCLUDE_FEI82557END */    #ifdef INCLUDE_EMAC_NETWORK    sysIbmEmacInit();            /* IBM EMAC device */    #endif /* INCLUDE_EMAC_NETWORK */    }#endif /* INCLUDE_NETWORK */

⌨️ 快捷键说明

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