/* Waits to write a data word into the SDHost write buffer. */
void SDHostDataWrite(unsigned long ulBase, unsigned long ulData)
/* Waits to write a data word into the SDHost write buffer. */
void SDHostDataWrite(unsigned long ulBase, unsigned long ulData)
{
  while( !(HWREG(ulBase + MMCHS_O_PSTATE) & (1<<10)) )
  {
  }
  HWREG(ulBase + MMCHS_O_DATA) = ulData;
}