阅读:1674回复:0
SdBusOpenInterface() call failed
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. |
|
|