MODIFICATION HISTORY:
Ver Who Date Changes ----- --- -------- ----------------------------------------------- 1.00a hk/sg 10/17/13 Initial release 2.0 hk 12/13/13 Added check for arm to use sleep.h and its API's 2.1 hk 04/18/14 Add sleep for microblaze designs. CR# 781117.
#include "xsdps.h"
Functions | |
u32 | XSdPs_FrameCmd (u32 Cmd) |
int | XSdPs_CmdTransfer (XSdPs *InstancePtr, u32 Cmd, u32 Arg, u32 BlkCnt) |
void | XSdPs_SetupADMA2DescTbl (XSdPs *InstancePtr, u32 BlkCnt, const u8 *Buff) |
int | XSdPs_CfgInitialize (XSdPs *InstancePtr, XSdPs_Config *ConfigPtr, u32 EffectiveAddr) |
int | XSdPs_SdCardInitialize (XSdPs *InstancePtr) |
int | XSdPs_ReadPolled (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt, u8 *Buff) |
int | XSdPs_WritePolled (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt, const u8 *Buff) |
int | XSdPs_Select_Card (XSdPs *InstancePtr) |
int | XSdPs_MmcCardInitialize (XSdPs *InstancePtr) |
|
Initializes a specific XSdPs instance such that the driver is ready to use.
|
|
This function does SD command generation.
|
|
This function frames the Command register for a particular command. Note that this generates only the command register value i.e. the upper 16 bits of the transfer mode and command register. This value is already shifted to be upper 16 bits and can be directly OR'ed with transfer mode register value.
|
|
Mmc initialization is done in this function
|
|
This function performs SD read in polled mode.
|
|
SD initialization is done in this function
|
|
Selects card and sets default block size
|
|
API to setup ADMA2 descriptor table
|
|
This function performs SD write in polled mode.
|