之的信息主要说明发送了如下命令:
CMD5-CMD0-CMD55+ACMD41-CMD0-CMD55+ACMD41-CMD2-CMD3-CMD9-CMD13-CMD7-CMD55+ACMD51-CMD55+ACMD42-CMD55+ACMD6。
由于比较长,所以,没法弄上来,
WaitForSingleObject--m_hResponseReceivedEvent is been treg
*(vm_pSDIReg->SDIRSP0) = 0x920
__IST___TransferIstThread_Here is TRANSFER_DONE
___STATUS___ SDIO_Interrupt_Disabled
-/-/-/SDHCB:Get_SDI_Bus_Width m_dwSDIBusWidth = 0x0
-/-/-/SDHCB:Stop_SDI_Clock
After clear SD_RINTSTS=0x 0
After clear SD_CTRL=0x 10
End of TransferIstThread SD_STATUS=0x 3106
---FiveHandler--- SDHCDSlotOptionHandler starts
SDHCDSlotOptionHandler option=SDHCDSetSlotInterface
??????InterfaceMode = 0
-/-/-/SDHCB:Set_SDI_Bus_Width_1Bit
^=^=^=^=^Here enable SetClockRate in SlotOptionHandler,because SDCLOCK cannt reach 25MHZ.If set CLk 25Mhz,it will tell kernel error
-/-/-/SDHCB SetClockRate start, dwClockRate = 0xbebc20
In SetClockRate SD_APBCLKDIV = 0xe,
dwClockRate=12500000
******SetClockRate dwPrescale = 0x0; dwActualRate = 0x57316d
Before fClockIsRunning SD_CLKENA = 0x0
-/-/-/SDHCB:Is_SDI_Clock_Running SD_CLKENA = 0x0
After fClockIsRunning SD_CLKENA = 0x0
fClockIsRunning= 0
SDHCD:SetClockRate() - Clock rate set to 5714285 Hz
SDHCD:SetClockRate() -This is end
---FiveHandler---SDHCDSlotOptionHandler ends
~_~_~_~_~SDMemory: DLL_PROCESS_ATTACH
~_~_~_~_~SDMemory: +SMC_Init
~_~_~_SDMemCalcDataAccessClocks: Tpd:f ns, Asynch: f ns, AsyncClocks:0 , SyncClocks: 1080418304, ReadTotal: 0, Write Factor:
1094116192 WriteTotal: 8571
~_~_~_SDMemory: Power Management Setup complete
~_~_~_~_~SDMemory: -SMC_Init
~_~_~_~_~SDMemory: +-SMC_Open
~_~_~_~_~SDMemory: +SMC_IOControl
~_~_~_~_~SMC_IOControl: Recevied IOCTL 3280896 =~_~_~**UNKNOWN**
~_~_~_~_~SDMemory: -SMC_IOControl returning 1
~_~_~_~_~SDMemory: +-SMC_Open
~_~_~_~_~SDMemory: +-SMC_Close
~_~_~_~_~SDMemory: +-SMC_Open
~_~_~_~_~SDMemory: +SMC_IOControl
~_~_~_~_~SMC_IOControl: Recevied IOCTL 1 =~_~_~DISK_IOCTL_GETINFO
~_~_~_~_~SDMemory: -SMC_IOControl returning 1
~_~_~_~_~SDMemory: +SMC_IOControl
~_~_~_~_~SMC_IOControl: Recevied IOCTL 464896 =~_~_~IOCTL_DISK_DEVICE_INFO
~_~_~_~_SDMemory: GetDeviceInfo - Profile = SDMemory, length = 18
~_~_~_~_~SDMemory: -SMC_IOControl returning 1
~_~_~_~_~SDMemory: +SMC_IOControl
~_~_~_~_~SMC_IOControl: ReceviSEP0718DISP::InitializeHardware
ed IOCTL 465956 =~_~_~IOCTL_DISK_GET_STORAGEID
~_~_~_~_SDMemory: +GetStorageID
~_~_~_~_~SDMem+OALIntrRequestSysIntr(1,ory: -SMC_IOControl returning 0
~_~_~_~_~SDMemory: +SMC_IOControl
~_~_~_~_~SMC_IOControl: R 0xc0565090, 0x00000000)
-OALIntrRequestSysIntr(irq = 1, sysIntr = 19)
+OALIntrRequestSysIntrecevied IOCTL 465956 =~_~_~IOCTL_DISK_GET_STORAGEID
~_~_~_~_SDMemory: +GetStorageID
~_~_~_~_(1, 0xc0565094, 0x00000000)
-OALIntrRequestSysIntr(irq = 18, sysIntr = 20)
+OEMInterruptEnable(19, 0x0, 0)
+OALIntrEnableIrqs(1, 0x80a066f4)
+BSPIntrEnableIrq(1)
-BSPIntrEnableIrq(irq = 1)
-OALIntrEnableIrqs(rc = 1)
-OEMInterruptEnable(rc = 1)
+OEMInterruptEnable(20, 0x0, 0)
+OALIntrEnableIrqs(1, 0x80a066f8)
+BSPIntrEnableIrq(18)
-BSPIntrEnableIrq(irq = 18)
-OALIntrEnableIrqs(rc = 1)
-OEMInterruptEnable(rc = 1)
Maximum AlloweSDMemory: -GetStorageID
~_~_~_~_~SDMemory: -SMC_IOControl returning 1
~_~_~_~_~SDMemod Error 7:
ry: +SMC_IOControl
~_~_~_~_~SMC_IOControl: Recevied IOCTL 465920 =~_~_~IOCTL_DISK_GETINFO
~_~_~_~_~SDMemory: -SMC_IOControl returning 1
~_~_~_~_~SDMemory: +SMC_IOControl
~_~_~_~_~SMC_IOControl: Recevied IOCTL 482312 =~_~_~IOCTL_DISK_READ
~_~_~_SDMemory: +SDMemRead
~_~_~_SDMemRead: Reading blocks 0-0
BlockTransferSize = 30, NeedToTransfer = 1
~_~SDMemReadMultiple: Reading blocks 0-0
~_~SDMemDoBusRequest: CMD17 Arg 0x00000000 TransferClass 0 NumBlocks 1 BlockSize 512
////////////////////////////////////(CMD:17)//////////////////////////
---FiveHandler---BusRequestHandler starts (CMD:17)
-/-/-/SDHCB:Start_SDI_Clock
!!Alert!!!!!Alert!!! Here Set the Bus Width, move from SetupPollingXfer/SetupDmaXfer
-/-/-/SDHCB:Get_SDI_Bus_Width m_dwSDIBusWidth = 0x0
!!Alert!!!!!Alert!!! Here enable SetupDmaXfer,disable SetupPollingXfer/
pBlockBuffer=0xd0410008,m_dwNumBytesToTransfer=0x 200,
-/-/-/SDHCB SetupDmaXfer started
Here in case SD_READ
-/-/Stop_SDIO_DMA_Channel/-/!!!Alert!!!Alert!!! SEP0718 dont have such function,here use reset DMA instead
Last in SetupDmaXfer SD_CTRL =0x30
Last in SetupDmaXfer--DMACC0Control=0x 2024ad ,DMACC0Configuration=0x 38c
---CmdType---this is SD_WRITE or SD_READ
BLKSIZ = 0x200
|-|-|-|-SendCommand (0xd002c980,Cmd= 17, Arg=00000000, respType=0001, 0x1) starts
respType short response required,right now SD_CMD =0x 3200
SD_CMD =0x 3351
........SendCommand end
After SendCommand,SD_RINTSTS=0x 24
After SendCommand,SD_STATUS=0x80208d09
WaitForSingleObject--m_hResponseReceivedEvent is been treg
*(vm_pSDIReg->SDIRSP0) = 0x900
***0-1*****Most important DMACIntTCStatus0=0x 0
-/-/Enable_SDIO_DMA_Channel/-/--Here we only configure DMA0 Channel,DMACC0Control=0x 1c24ad ,DMACC0Configuration=0x 38d
***0-2*****Most important DMACIntTCStatus0=0x 0
Here after Enable_SDIO_DMA_Channel--DMACC0Control=0x 24ad ,DMACC0Configuration=0x 38c
-/-/-/SDHCB:Get_SDI_Bus_Width m_dwSDIBusWidth = 0x0
Before WaitForSingleObject DMACIntTCStatus0=0x 0
After WaitForSingleObject DMACIntTCStatus0=0x 0
OK OK OK we pass the DMA Intr
-/-/Stop_SDIO_DMA_Channel/-/!!!Alert!!!Alert!!! SEP0718 dont have such function,here use reset DMA instead
//////MemCopy SD_READ,Do it now,pBlockBuffer = 0xd0410008
***5*****Most important SD_RINTSTS=0x 45ac
m_pDMABuffer=0xd03d0000, m_pDMABufferPhys=0x3250e000
*********m_dwNumBytesToTransfer= 0x200,pBlockBuffer0= 0xeb,pBlockBuffer1= 0x58
eb 58 90 4d 53 44 4f 53 35 2e 30 0 2 8 24 0 2 0 0 0 0 f8 0 0 3f 0 ff 0 0 0 0 0 0 46 1e 0 8e 7 0 0 0 0 0 0 2 0 0 0 1 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 52 f0 63 43 70 9c 9e 40 9c 82 9a 8a 40 40 40 40 8c 82 a8 66 64 40 40 40 67 93 1d a3 79 e8 f7 1d 83 1d b3 7a 0 f9 10 9c 5 14 ac 81 68 11 9a 26 e6 b 73 ff ff 15 e2 cc 1f 6d 8c 80 cc 1f 6d a3 1 c4 7f ef c5 d 9b 81 da c 82 cc 1f 6f 92 cd ef c2 cd 12 8d f1 6 fc 2c 0 ea 71 6 fc 54 0 ee 64 cd 16 8c 38 cd 7 80 19 76 1 1 72 2 1 d0 56 1 d2 90 7 41 f4 fb 68 fb 17 e1 59 9 80 e8 2e 79 fe e8 13 68 1d 76 e 1 9a 21 d7 dd 41 f6 fb d7 cb 41 f2 fb d7 c1 31 9a 2d 9a 32 cc c0 cc 76 8d f0 1f 4 94 0 cc d4 0 cc a0 c a6 cc d0 20 0 2 1 0 fc 4 0 1f a 40 1 68 83 77 54 ab 14 ac 81 9a 26 1f 4 38 1 3 f6 ab 54 1f a 28 1 ed 82 2 1f 8 1a 1 fc 8c 5 68 85 14 ac 81 17 e9 9a 27 61 f2 cc b0 cc b0 cc b0 cc b1 d6 54 cc 67 a4 cc 1f 6e 9c 30 cd ef e3 fd 85 15 94 cd 17 a0 cd 83 d4 21 ee ec 35 d ad 14 ac 81 15 d1 81 c8 c 15 99 70 2 5 9a 26 cc c2 1f 4 a9 ff 3 86 0 4 cc 80 92 1f a e3 ff 86 9c a8 98 88 a4 40 40 40 40 40 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1a 14 a4 ca da de ec ca 40 c8 d2 e6 d6 e6 40 de e4 40 de e8 d0 ca e4 40 da ca c8 d2 c2 5d fe 1a 14 88 d2 e6 d6 40 ca e4 e4 de e5 fe 1a 14 a0 e4 ca e6 e6 40 c2 dc f2 40 d6 ca f2 40 e8 de 40 e4 ca e6 e8 c2 e4 e8 1a 14 0 0 0 0 1 59 97 b0 0 0 ab 55
here is end of data__IST___TransferIstThread_Here is TRANSFER_DONE
___STATUS___ SDIO_Interrupt_Disabled
-/-/-/SDHCB:Get_SDI_Bus_Width m_dwSDIBusWidth = 0x0
-/-/-/SDHCB:Stop_SDI_Clock
After clear SD_RINTSTS=0x 0
After clear SD_CTRL=0x 10
End of TransferIstThread SD_STATUS=0x 8906
---FiveHandler---BusRequestHandler ends
~_~_~_SDMemory: -SDMemRead
~_~_~_~_~SDMemory: -SMC_IOControl returning 1
~_~_~_~_~SDMemory: +SMC_IOControl
~_~_~_~_~SMC_IOControl: Recevied IOCTL 482312 =~_~_~IOCTL_DISK_READ
~_~_~_SDMemory: +SDMemRead
~_~_~_SDMemRead: Reading blocks 0-0
BlockTransferSize = 30, NeedToTransfer = 1
~_~SDMemReadMultiple: Reading blocks 0-0
~_~SDMemDoBusRequest: CMD17 Arg 0x00000000 TransferClass 0 NumBlocks 1 BlockSize 512
|