sysEtEnd.c
资源名称:bcm4702.rar [点击查看]
上传用户:yuanda199
上传日期:2022-06-26
资源大小:412k
文件大小:2k
源码类别:
VxWorks
开发平台:
C/C++
- /* sysEtnd.c - system configuration module for BCM47xx et END */
- /*
- modification history
- --------------------
- 01a,02aug02,jmb created
- */
- /*
- DESCRIPTION
- This is the configuration module for the VxWorks BCM4702 (et) END
- driver. It has been adapted for "MBZ".
- */
- #if (defined(INCLUDE_NETWORK) && defined(INCLUDE_END) &&
- (defined(INCLUDE_ET0_END) || defined(INCLUDE_ET1_END)))
- /* includes */
- #include "vxWorks.h"
- #include "stdio.h"
- #include "stdlib.h"
- #include "string.h"
- #include "end.h"
- #include "config.h"
- IMPORT STATUS (* _func_etEnetAddrGet)
- (char *dev,int unit,unsigned char *pMac);
- /* defines */
- /* forward declarations */
- /* typedefs */
- /* locals */
- IMPORT END_OBJ* et_load (char *);
- /******************************************************************************
- *
- * sysEtEndLoad - board specific initialization for BCM4702 internal ethernet
- *
- * RETURNS: pointer to END object or ERROR.
- *
- * SEE ALSO: bcm570xEndLoad()
- */
- END_OBJ * sysEtEndLoad
- (
- char * pParamStr, /* ptr to initialization parameter string */
- void * unused /* BSP-specific param */
- )
- {
- END_OBJ * pEnd;
- if (strlen (pParamStr) == 0)
- {
- /*
- * muxDevLoad() calls us twice. If the string is
- * zero length, then this is the first time through
- * this routine, so we just return.
- */
- pEnd = et_load (pParamStr);
- }
- else
- {
- _func_etEnetAddrGet = sysEnetAddrGet;
- if ((pEnd = et_load (pParamStr)) == (END_OBJ *)ERROR)
- {
- printf ("Error: et device failed et_load routine.n");
- }
- }
- return (pEnd);
- }
- #endif