欢迎来到天天文库
浏览记录
ID:1954320
大小:114.50 KB
页数:31页
时间:2017-11-13
《dm9000驱动解析 收藏》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、DM9000驱动解析1收藏/**dm9000.c:Version1.203/18/2003**ADavicomDM9000ISANICfastEthernetdriverforLinux.*Copyright(C)1997StenWang**Thisprogramisfreesoftware;youcanredistributeitand/or*modifyitunderthetermsoftheGNUGeneralPublicLicense*aspublishedbytheFreeSoftwareFoundation;eitherversion2*oftheLicense,
2、or(atyouroption)anylaterversion.**Thisprogramisdistributedinthehopethatitwillbeuseful,*butWITHOUTANYWARRANTY;withouteventheimpliedwarrantyof*MERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.Seethe*GNUGeneralPublicLicenseformoredetails.**(C)Copyright1997-1998DAVICOMSemiconductor,Inc.AllRightsRe
3、served.**V0.1106/20/2001REG_0Abit3=1,defaultenableBPwithDAmatch*06/22/2001SupportDM9801progrmming*E3:R25=((R24+NF)&0x00ff)
4、0xf000*E4:R25=((R24+NF)&0x00ff)
5、0xc200*R17=(R17&0xfff0)
6、NF+3*E5:R25=((R24+NF-3)&0x00ff)
7、0xc200*R17=(R17&0xfff0)
8、NF**v1.00modifybysimon2001.9.5*changeforkernel2.4.x**v1.
9、111/09/2001fixforcemodebug**v1.203/18/2003WeilunHuang:*Fixedphyreset.*Addedtx/rx32bitmode.*Cleanedupforkernelmerge.**03/03/2004SaschaHauer*Portto2.6kernel**24-Sep-2004BenDooks*Cleanupofcodetoremoveifdefs*Allowedplatformd
10、evicedatatoinfluenceaccesswidth*Reformattingareasofcode**17-Mar-2005SaschaHauer**removed2.4stylemoduleparameters**removedremovedunusedstatcounterandfixed*net_device_stats**introducedtx_timeoutfunction**reworkedlocking**01-Jul-2005BenDooks**fixedspin
11、lockcallwithoutpointer**ensurespinlockisinitialised*/#include#include#include#include#include#include#include#include#include#include12、000.h>#include#include#include#include#include#include"dm9000.h"/*Board/System/Debuginformation/definition----------------*/#defineDM9000_PHY0x40/*PHYaddress0x01*/#defineCARDNAME"d
12、000.h>#include#include#include#include#include#include"dm9000.h"/*Board/System/Debuginformation/definition----------------*/#defineDM9000_PHY0x40/*PHYaddress0x01*/#defineCARDNAME"d
此文档下载收益归作者所有