调用这个函数在
sdStatus = SDSetCardFeature(pAdapter->hDevice,
SD_IO_FUNCTION_DISABLE,
&functionEnable,
sizeof(functionEnable));
//MessageBox(NULL, TEXT("Enable IO FUN"), (TEXT(IFSTRN) TEXT(CHIPSTRN) TEXT("_") TEXT(RFSTRN)), MB_OK);
//031407 Need to do delay here. Don't try to save the time....
DBGPRINT(DBG_LOAD|DBG_ERROR, (L"%S() - Sleeping for %d ms\n", __FUNCTION__, 100));
NdisMSleep(100000);
functionEnable.Interval = 500;
functionEnable.ReadyRetryCount = 3;
// turn on our function
sdStatus = SDSetCardFeature(pAdapter->hDevice,
SD_IO_FUNCTION_ENABLE,
&functionEnable,
sizeof(functionEnable));
返回错误。
打印消息:
+CESDHCSlot::BspESDHCIsCardPresent
+CESDHCSlot::HandleInsertion
+CSDDevice::GetCustomRegPath:\Drivers\SDCARD\ClientDrivers\Custom\MANF-0097-CARDID-4076
+CSDDevice::GetCustomRegPath:\Drivers\SDCARD\ClientDrivers\Custom\MANF-0097-CARDID-4076
+CSDDevice::GetCustomRegPath:\Drivers\SDCARD\ClientDrivers\Custom\MANF-0097-CARDID-4076
SDNDISLDR: +NDL_Init
SDNDISLDR:Open path \Drivers\SDCARD\ClientDrivers\Custom\MANF-0097-CARDID-4076-FUNC-1 SDNDISLDR: -NDL_Init
SDNDISLDR: +LoadMiniport
SDNDISLDR: stringBuff: ?#??
SDNDISLDR: Tokenizing instance information: SDIO8686:SDIO86861 SDNDISLDR: Miniport instance path \Comm\SDIO86861\Parms SDNDISLDR: Storing ActiveKey Path Drivers\Active\62
LoadMiniport: NdisRegisterAdapter MiniportName:SDIO8686
MiniportInstance:SDIO86861
INIT - Enter MrvDrvInitialize
[WiFi]: Driver Version: 38.p47
SDNdis: Active path str == Drivers\Active\62SDNdis: Active Path Retrieved: Drivers\Active\62
SDNDIS : Enabling Card ...
SDNDIS: Failed to enable Function:0xC0000012
*** SDIOInitialization FAILED! ***
*** SDIOInitialization FAILED! ***
[TT] SDIO initialization is failed! Quit initialization process
SDNDISLDR: -LoadMinipor failure |