Lines Matching refs:ulBase
69 SDHostInit(unsigned long ulBase) in SDHostInit() argument
74 HWREG(ulBase + MMCHS_O_SYSCONFIG) = 0x2; in SDHostInit()
79 while( !(HWREG(ulBase + MMCHS_O_SYSCONFIG) & 0x1) ) in SDHostInit()
87 HWREG(ulBase + MMCHS_O_SYSCTL) |= (1 << 24); in SDHostInit()
92 while( (HWREG(ulBase + MMCHS_O_SYSCTL) & (0x1 << 24)) ) in SDHostInit()
100 HWREG(ulBase + MMCHS_O_CAPA) = (0x7 <<24); in SDHostInit()
105 HWREG(ulBase + MMCHS_O_HCTL) |= 0x7 << 9; in SDHostInit()
110 HWREG(ulBase + MMCHS_O_HCTL) |= 1 << 8; in SDHostInit()
115 while( !(HWREG(ulBase + MMCHS_O_HCTL) & (1<<8)) ) in SDHostInit()
120 HWREG(ulBase + MMCHS_O_CON) |= 1 << 21; in SDHostInit()
125 HWREG(ulBase + MMCHS_O_IE) = 0xFFFFFFFF; in SDHostInit()
141 SDHostCmdReset(unsigned long ulBase) in SDHostCmdReset() argument
143 HWREG(ulBase + MMCHS_O_SYSCTL) |= 1 << 25; in SDHostCmdReset()
144 while( (HWREG(ulBase + MMCHS_O_SYSCTL) & (1 << 25)) ) in SDHostCmdReset()
176 SDHostCmdSend(unsigned long ulBase, unsigned long ulCmd, unsigned ulArg) in SDHostCmdSend() argument
181 HWREG(ulBase + MMCHS_O_SYSCTL) |= 0x000E0000; in SDHostCmdSend()
186 if( (HWREG(ulBase + MMCHS_O_PSTATE) & 0x1)) in SDHostCmdSend()
194 HWREG(ulBase + MMCHS_O_ARG) = ulArg; in SDHostCmdSend()
199 HWREG(ulBase + MMCHS_O_CMD) = ulCmd; in SDHostCmdSend()
219 SDHostDataNonBlockingWrite(unsigned long ulBase, unsigned long ulData) in SDHostDataNonBlockingWrite() argument
225 if( (HWREG(ulBase + MMCHS_O_PSTATE) & (1<<10)) ) in SDHostDataNonBlockingWrite()
230 HWREG(ulBase + MMCHS_O_DATA) = ulData; in SDHostDataNonBlockingWrite()
261 SDHostDataWrite(unsigned long ulBase, unsigned long ulData) in SDHostDataWrite() argument
266 while( !(HWREG(ulBase + MMCHS_O_PSTATE) & (1<<10)) ) in SDHostDataWrite()
274 HWREG(ulBase + MMCHS_O_DATA) = ulData; in SDHostDataWrite()
293 SDHostDataRead(unsigned long ulBase, unsigned long *pulData) in SDHostDataRead() argument
298 while( !(HWREG(ulBase + MMCHS_O_PSTATE) & (1<<11)) ) in SDHostDataRead()
306 *pulData = HWREG(ulBase + MMCHS_O_DATA); in SDHostDataRead()
324 SDHostDataNonBlockingRead(unsigned long ulBase, unsigned long *pulData) in SDHostDataNonBlockingRead() argument
330 if( (HWREG(ulBase + MMCHS_O_PSTATE) & (1<<11)) ) in SDHostDataNonBlockingRead()
335 *pulData = HWREG(ulBase + MMCHS_O_DATA); in SDHostDataNonBlockingRead()
372 SDHostIntRegister(unsigned long ulBase, void (*pfnHandler)(void)) in SDHostIntRegister() argument
403 SDHostIntUnregister(unsigned long ulBase) in SDHostIntUnregister() argument
451 SDHostIntEnable(unsigned long ulBase,unsigned long ulIntFlags) in SDHostIntEnable() argument
462 HWREG(ulBase + MMCHS_O_ISE) |= (ulIntFlags & 0x3FFFFFFF); in SDHostIntEnable()
483 SDHostIntDisable(unsigned long ulBase,unsigned long ulIntFlags) in SDHostIntDisable() argument
493 HWREG(ulBase + MMCHS_O_ISE) &= ~(ulIntFlags & 0x3FFFFFFF); in SDHostIntDisable()
509 SDHostIntStatus(unsigned long ulBase) in SDHostIntStatus() argument
522 ulIntStatus |= (HWREG(ulBase + MMCHS_O_STAT) & 0x3FFFFFFF); in SDHostIntStatus()
545 SDHostIntClear(unsigned long ulBase,unsigned long ulIntFlags) in SDHostIntClear() argument
555 HWREG(ulBase + MMCHS_O_STAT) = (ulIntFlags & 0x3FFFFFFF); in SDHostIntClear()
576 SDHostCardErrorMaskSet(unsigned long ulBase, unsigned long ulErrMask) in SDHostCardErrorMaskSet() argument
581 HWREG(ulBase + MMCHS_O_CSRE) = ulErrMask; in SDHostCardErrorMaskSet()
598 SDHostCardErrorMaskGet(unsigned long ulBase) in SDHostCardErrorMaskGet() argument
603 return(HWREG(ulBase + MMCHS_O_CSRE)); in SDHostCardErrorMaskGet()
621 SDHostSetExpClk(unsigned long ulBase, unsigned long ulSDHostClk, in SDHostSetExpClk() argument
629 HWREG(ulBase + MMCHS_O_SYSCTL) &= ~0x4; in SDHostSetExpClk()
634 HWREG(ulBase + MMCHS_O_SYSCTL) |= 0x1; in SDHostSetExpClk()
641 HWREG(ulBase + MMCHS_O_SYSCTL) = ((HWREG(ulBase + MMCHS_O_SYSCTL) & in SDHostSetExpClk()
647 while( !(HWREG(ulBase + MMCHS_O_SYSCTL) & 0x2) ) in SDHostSetExpClk()
655 HWREG(ulBase + MMCHS_O_SYSCTL) |= 0x4; in SDHostSetExpClk()
672 SDHostRespGet(unsigned long ulBase, unsigned long ulRespnse[4]) in SDHostRespGet() argument
678 ulRespnse[0] = HWREG(ulBase + MMCHS_O_RSP10); in SDHostRespGet()
679 ulRespnse[1] = HWREG(ulBase + MMCHS_O_RSP32); in SDHostRespGet()
680 ulRespnse[2] = HWREG(ulBase + MMCHS_O_RSP54); in SDHostRespGet()
681 ulRespnse[3] = HWREG(ulBase + MMCHS_O_RSP76); in SDHostRespGet()
701 SDHostBlockSizeSet(unsigned long ulBase, unsigned short ulBlkSize) in SDHostBlockSizeSet() argument
706 HWREG(ulBase + MMCHS_O_BLK) = ((HWREG(ulBase + MMCHS_O_BLK) & 0x00000FFF)| in SDHostBlockSizeSet()
724 SDHostBlockCountSet(unsigned long ulBase, unsigned short ulBlkCount) in SDHostBlockCountSet() argument
731 ulRegVal = HWREG(ulBase + MMCHS_O_BLK); in SDHostBlockCountSet()
736 HWREG(ulBase + MMCHS_O_BLK) = ((ulRegVal & 0x0000FFFF)| in SDHostBlockCountSet()