sysnet.c

来自「vxworks的bsp开发包(基于POWERPC的PRPMC800)」· C语言 代码 · 共 82 行

C
82
字号
/* sysNet.c - template system network initialization *//* Copyright 1984-2001 Wind River Systems, Inc. *//* Copyright 1999-2001 Motorola, Inc., All Rights Reserved *//*modification history--------------------01c,16aug00,dmw  Wind River coding standards review.01b,07jun00,dmw  Update to PrPMC name convention.01a,01aug00,dmw  written (from version 01c of mv5100/sysNet.c).*//*DESCRIPTIONThis library contains board-specific routines for network subsystems.*//* includes */#include "vxWorks.h"#include "taskLib.h"#include "config.h"/******************************************************************************** sysLanIntEnable - enable the LAN interrupt** This routine enables interrupts at a specified level ** RETURNS: OK, or ERROR if network support not included.** SEE ALSO: sysLanIntDisable()*/STATUS sysLanIntEnable    (    int intLevel 		/* interrupt level to enable */    )    {#if defined (INCLUDE_NETWORK)    /* enable the IRQ for LAN */    intEnable (intLevel);    return (OK);#else    return (ERROR);#endif    }/******************************************************************************** sysLanIntDisable - disable the LAN interrupt** This routine has been modified and is temporarily a stub. Changes to the WRS* 21x40End driver are required to switch from a dedicated interrupt line for the* Ethernet chip to the bussed PCI interrupt structure used by the PrPMC750. This* change is also required to support Ethernet chips resident on PMC sites. WRS* has assigned SPR #27879 to track the 21x40End driver change.** RETURNS: return of intDisable, or ERROR if network support not included.** SEE ALSO: sysLanIntEnable()*/STATUS sysLanIntDisable    (    int intLevel 		/* interrupt level to enable */    )    {#if defined (INCLUDE_NETWORK)    return (OK);#else    return (ERROR);#endif    }

⌨️ 快捷键说明

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