正文

dm9000在wince6.0上的移植过程2010-02-22 15:25:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/liyutai/50690.html

分享到:

1、dm9000a文件夹放到\WINCE600\PLATFORM\zylonite_mhlv\SRC\DRIVERSMzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
并做以下修改MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
A、g_szDm9ConfigParams[]修改如下MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
{ CID_IO_BASE_ADDRESS, 0x14000300, NDIS_STRING_CONST("IoAddress")},MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
这项又硬件而定,ZW310dm9000地址为0x14000300MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
B、dm9isa.h中修改如下MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
#defineMzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
DM9000_DATA_OFFSETMzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
0x02
MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
这个参数取决于CMD接在A几上,A12A24MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
2、打开在driver目录下的dirs文件,在该文件里将dm9000加入到dirsMzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
如:MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
….MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
dm9000a\MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
3、添加dm9000注册项到系统中,在platform.reg添加如下,MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä

IF BSP_NODM9000 !MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
[HKEY_LOCAL_MACHINE\Comm\DM9CE]MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"DisplayName"="DM9000A/9010 ISA Fast Ethernet Adapter"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"Group"="NDIS"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"ImagePath"="dm9isa.dll"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
[HKEY_LOCAL_MACHINE\Comm\DM9CE\Linkage]MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"Route"=multi_sz:"dm9ce1"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
[HKEY_LOCAL_MACHINE\Comm\DM9CE1]MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"DisplayName"="DM9000A/9010 ISA Fast Ethernet Adapter"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"Group"="NDIS"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"ImagePath"="dm9isa.dll"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
[HKEY_LOCAL_MACHINE\Comm\Tcpip\Linkage]MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"Bind"="dm9ce1"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
[HKEY_LOCAL_MACHINE\Comm\DM9CE1\Parms]MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"BusNumber"=dword:0MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"BusType"=dword:1MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"XmitBuffer"=dword:20MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"RecvBuffer"=dword:20MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"IrqNumber"=dword:17 MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"SysIntr"=dword:17MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
[HKEY_LOCAL_MACHINE\Comm\DM9CE1\Parms\TcpIp]MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"EnableDHCP"=dword:0MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"UseZeroBroadcast"=dword:0MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"DefaultGateway"="192.168.0.1"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"IpAddress"="192.168.0.11"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"Subnetmask"="255.255.255.0"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
"DNS"="192.168.0.1"MzýŸn€ÇÃ2zhanwei.seaskyer.netŽ¼Ò»²È2`Ä
ENDIF BSP_NODM9000 !

......

更多内容请点击查看原文:http://www.hzlitai.com.cn/article/ARM11/SYSTEM/1740.html

 

.......

阅读(2539) | 评论(0)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

暂无评论
您需要登录后才能评论,请 登录 或者 注册