1、将dm9000a文件夹放到\WINCE600\PLATFORM\zylonite_mhlv\SRC\DRIVERS下Mzý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`Ä
这项又硬件而定,ZW310的dm9000地址为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`Ä
0x02MzýnÇÃ2zhanwei.seaskyer.net¼Ò»²È2`Ä
这个参数取决于CMD接在A几上,A1为2,A2为4MzýnÇÃ2zhanwei.seaskyer.net¼Ò»²È2`Ä
2、打开在driver目录下的dirs文件,在该文件里将dm9000加入到dirs中Mzý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`Ä
[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 !
正文
dm9000在wince6.0上的移植过程2010-02-22 15:25:00
【评论】 【打印】 【字体:大 中 小】 本文链接:http://blog.pfan.cn/liyutai/50690.html
CODE:
IF BSP_NODM9000 !MzýnÇÃ2zhanwei.seaskyer.net¼Ò»²È2`Ä
阅读(2539) | 评论(0)
版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!
评论