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

📄 usrendlib.c

📁 IXP425的BSP代码
💻 C
字号:
/* usrEndLib.c - End Init routines *//* Copyright 1992 - 1998 Wind River Systems, Inc. *//*modification history--------------------01e,29may01,pch  Change type of pCookie to (void *), to match muxDevLoad()01d,02mar01,rae  Corrected pCookie conversion01c,30jul99,pul  replace arpresolve with ipEtherResolvRtn01b,30sep98,ms   folded in INCLUDE_NT_ULIP hacks from usrNetwork.c01a,18aug98,ann  created from usrNetwork.c*//*DESCRIPTIONThis configlette contains the initialization routine for theINCLUDE_END component.NOMANUAL*/#ifdef INCLUDE_NT_ULIPextern int ntResolv ();#endif /* INCLUDE_NT_ULIP */STATUS usrEndLibInit()    {        int			count;    END_TBL_ENTRY *	pDevTbl;    void *		pCookie = NULL;    /* Add our default address resolution functions. */#ifdef INCLUDE_NT_ULIP    muxAddrResFuncAdd (M2_ifType_ethernet_csmacd, 0x800, ntResolv);#else    muxAddrResFuncAdd (M2_ifType_ethernet_csmacd, 0x800, ipEtherResolvRtn);#endif    /* Add in mux ENDs. */    for (count = 0, pDevTbl = endDevTbl; pDevTbl->endLoadFunc != END_TBL_END;         pDevTbl++, count++)        {        /* Make sure that WDB has not already installed the device. */        if (!pDevTbl->processed)            {            pCookie = muxDevLoad (pDevTbl->unit,                                  pDevTbl->endLoadFunc,                                  pDevTbl->endLoadString,                                  pDevTbl->endLoan, pDevTbl->pBSP);            if (pCookie == NULL)                {                printf("muxDevLoad failed for device entry %d!\n", count);                }            else                {                pDevTbl->processed = TRUE;                if (muxDevStart(pCookie) == ERROR)                    {                    printf("muxDevStart failed for device entry %d!\n", count);                    }                }            }        }    return (OK);    }

⌨️ 快捷键说明

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