ข่าวสารและการฝึกอบรม

เทคนิค ถาม และ ตอบ

Migration of RTL8019 LAN driver from CE3.0 to CE.Net

  • no.2338
  • 2003-09-10
Dear All, I having problem on migrating RTL8019 LAN driver from CE3.0 to CE.Net on MIPS VR4131 platform. From Retail message that i put in, i found that calling NdisMRegisterIoPortRange( ) return error code c000009a. FYI, my RTL8091 LAN controller is connected to IO address 0x0C200000 and size 0x200000. 1. In CE3.0, function below return no error but not in CE.Net 4.2 NdisMRegisterIoPortRange( (PVOID *)(&(Adapter->IoPAddr)), Adapter->MiniportAdapterHandle, (ULONG)Adapter->IoBaseAddr,// 0xC200000 0x200000 ); 2. I heard that IO registry need to be modified but i have no idea how to modify it. [HKEY_LOCAL_MACHINEDriversResourcesIO] "Identifier"=dword:2 "Minimum"=dword:0 "Space"=dword:02000000 "Ranges"="0x0-0x1FFFFFF" 3. Somebody in the news group mentioned that AND third parms in NdisMRegisterIoPortRange( ) with 0xFFFF and it will return NDIS_STATUS_SUCCESS. I get it done but what are the reasons behind? Although NdisMRegisterIoPortRange( ) return NDIS_STATUS_SUCCESS, but Adapter->IoPAddr is equal to 0 and causing my driver initialisation fail. Can someone help me on this issues? Thank you. Best Regards, KCLye