/* Waits for a data word from the SDHost read buffer */
void SDHostDataRead(unsigned long ulBase, unsigned long *pulData)
/* Waits for a data word from the SDHost read buffer */
void SDHostDataRead(unsigned long ulBase, unsigned long *pulData)
{
  while( !(HWREG(ulBase + MMCHS_O_PSTATE) & (1<<11)) )
  {
  }
  *pulData = HWREG(ulBase + MMCHS_O_DATA);
}