iwub
驱动牛犊
驱动牛犊
  • 注册日期2002-10-09
  • 最后登录2009-06-22
  • 粉丝0
  • 关注0
  • 积分7分
  • 威望60点
  • 贡献值0点
  • 好评度17点
  • 原创分0分
  • 专家分0分
阅读:1674回复:0

SdBusOpenInterface() call failed

楼主#
更多 发布于:2005-05-24 18:28
I call it in my MiniportInitialize() function, but it failed.

 

  NdisMGetDeviceProperty(
   Adapter->MrvDrvAdapterHdl,
   &(Adapter->PhyDeviceObject),
   &(Adapter->FuncDeviceObject),
   &(Adapter->LowerDeviceObject),
   NULL,
   NULL
   );                           //by here is success
      KdPrint((\"NdisMGetDeviceProperty()   Adapter = %x,\\nPDO = %x,\\n FDO
= %x,\\n LDO = %x\\n\",Adapter->MrvDrvAdapterHdl,
   Adapter->PhyDeviceObject,Adapter->FuncDeviceObject,Adapter->LowerDeviceObject));
        //Open Sd
  Status = SdBusOpenInterface(
     Adapter-> PhyDeviceObject,  // LowerDeviceObject // FuncDeviceObject //UnderlyingPDO
     &Adapter->SdBusIfStd,
     sizeof(SDBUS_INTERFACE_STANDARD),
     SDBUS_INTERFACE_VERSION);     //error


the sdbusapi.doc said, SD function drivers are WDM drivers that are linked to the SD

bus driver lib. they are not minport driver like NDIS or SCSI driver. How to understand it?

 

and it said, the SdBusOpenInterface() should be called in AddDevice(), but I develop a driver

for NDIS NIC, then I have no this callback routine , I call it in my MiniportInitialize(), but it failed

all the time, I have no idea.

Must it be written in WDM driver?

But MS recommend that the driver to be written in NDIS miniport driver.

If use WDM type, it will be do more other things. maybe modify much more.

iwub
游客

返回顶部