/* This function is used to do initial Host Configuration.  */
void XSdPs_HostConfig(XSdPs *InstancePtr)
/* This function is used to do initial Host Configuration.  */
void XSdPs_HostConfig(XSdPs *InstancePtr)
{
    XSdPs_ConfigPower(InstancePtr);
    XSdPs_ConfigDma(InstancePtr);
    XSdPs_ConfigInterrupt(InstancePtr);
    InstancePtr->TransferMode = XSDPS_TM_DMA_EN_MASK | XSDPS_TM_BLK_CNT_EN_MASK |
            XSDPS_TM_DAT_DIR_SEL_MASK;
    XSdPs_WriteReg16(InstancePtr->Config.BaseAddress,
            XSDPS_BLK_SIZE_OFFSET, XSDPS_BLK_SIZE_512_MASK);
}