usrendlib.c
来自「IXP425的BSP代码」· C语言 代码 · 共 71 行
C
71 行
/* 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 + =
减小字号Ctrl + -
显示快捷键?