📄 sysdm9000end.c
字号:
/* sysDm9000End.c - pxa270 for system configuration module for dm9000End *//* includes */#include "vxWorks.h"#include "stdio.h"#include "stdlib.h"#include "string.h"#include "end.h"#include "config.h" #define INCLUDE_DM_END#ifdef INCLUDE_DM_END/* TODO - Fill in this file with I/O addresses and related constants for the pxa270 BSP. Anything with "pxa270" as a prefix needs to examined and re-named to id the BSP (i.e. iq80321, iq80310, etc.) *//* defines */#define END_LD_STR_SIZE 80/***************************************************************************** sysDM9000EndLoad - load fei82557 (fei) device.** This routine loads the fei device with initial parameters.** RETURNS: pointer to END object or ERROR.** SEE ALSO: fei82557EndLoad()*/END_OBJ * sysDM9000EndLoad ( char * pParamStr, /* ptr to initialization parameter string */ void * unused /* unused optional argument */ ){ END_OBJ *pEnd =NULL; char str[20]; if(strlen(pParamStr) == 0) { /* * muxDevLoad() calls us twice. If the string is zero * length, then this is the first call by MUX. * Just call driver load function and return. */ dm9000EndLoad(pParamStr); return 0; } else { /* * On the second pass though here, we actually create * the initialization parameter string on the fly. * Note that we will be handed our unit number on the * second pass through and we need to preserve that information. * So we use the unit number handed from the input string. */ /* * muxDevLoad() calls us twice. If the string is zero * length, then this is the first call by MUX. * Just call driver load function and return. */ pEnd = dm9000EndLoad (pParamStr); } return pEnd;}#endif /* INCLUDE_DM_END */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -