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

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

NdisMRegisterIoPortRange

  • no.2354
  • 2004-06-09
Hi! I am writing a driver for a two channel on-chip MAc, which is connected through chip internal PCI BUS. As the PCI bus driver in WinCE can handle only one PCI bus hence I don't have a PCI bus driver for the chip internal PCI bus.I have cofigured the device in OEMInit. When I call NdisMRegisterIoPortRange the return value I get is c000009a.The physical IO base address in my case is 0x18000000. The QueryAdapterResources function gets the information from the folowing registry entry. [HKEY_LOCAL_MACHINECommMAC0Parms] "BusNumber"=dword:0 "BusType"=dword:0 "IoBase"=dword:18000000 "IoLen"=dword:100 "IRQ"=dword:06 And in platform.reg the registry entry for driver resources is [HKEY_LOCAL_MACHINEDriversResourcesIO] "Identifier"=dword:2 "Minimum"=dword:0 "Space"=dword:18000000 "Ranges"="0-0x1000" Can any on please tell me that what might be going wrong here ? My Basic objective is to mainatain driver portability and use the NdisRawReadXXX functions and coresponding write functions to read/write the registers. Thanking u in advance regards -Nitin