ufspsxc
Vitis Drivers API Documentation
xufspsxc_control.h File Reference

Macros

#define XUFSPSXC_LOWLEVEL_H_
 < prevent circular inclusions More...
 

Functions

u32 XUfsPsxc_SendUICCmd (const XUfsPsxc *InstancePtr, XUfsPsxc_UicCmd *UicCmdPtr)
 Send UIC Command. More...
 
u32 XUfsPsxc_SetHce (const XUfsPsxc *InstancePtr, u32 Value)
 Perform the Host Controller Enable/Disable. More...
 
void XUfsPsxc_FillNopOutUpiu (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr)
 This API Fill the transfer request descriptor for NOP-OUT UPIU. More...
 
void XUfsPsxc_FillTestUnitRdyUpiu (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr)
 This API Fill the transfer request descriptor for TEST UNIT READY Command. More...
 
void XUfsPsxc_FillReadCmdUpiu (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr, u64 Address, u32 BlkCnt, const u8 *Buff)
 This API Fill the transfer request descriptor for READ Command. More...
 
u32 XUfsPsxc_ProcessUpiu (const XUfsPsxc *InstancePtr, const XUfsPsxc_Xfer_CmdDesc *CmdDescPtr)
 This API send the UPIU to the UFS device. More...
 
void XUfsPsxc_FillFlagUpiu (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr, u32 IsRead, u32 FlagIDn)
 This API Fill the transfer request descriptor for READ/SET FLAG Command. More...
 
void XUfsPsxc_FillDescUpiu (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr, u32 Tsf_DW0, u32 IsRead, u32 Length)
 This API Fill the transfer request descriptor for read or write Descriptor Command. More...
 
void XUfsPsxc_FillAttrUpiu (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr, u32 IsRead, u32 AttrIDn, u32 Value)
 This API Fill the transfer request descriptor for read or write Attribute Command. More...
 
u32 XUfsPsxc_HostInitialize (XUfsPsxc *InstancePtr)
 Initializes the Host Controller. More...
 
u32 XUfsPsxc_CardInitialize (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr)
 This API Partially Initialize the UFS device. More...
 
u32 XUfsPsxc_GetLUNInfo (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr)
 This API update the Logical Unit information structure by reading the configuration descriptor. More...
 
u32 XUfsPsxc_WritePhyReg (const XUfsPsxc *InstancePtr, XUfsPsxc_UicCmd *UicCmdPtr, u32 Address, u32 Value)
 This API does PHY register write with the required sequence. More...
 
u32 XUfsPsxc_ReadPhyReg (const XUfsPsxc *InstancePtr, XUfsPsxc_UicCmd *UicCmdPtr, u32 Address, u32 *Value)
 This API does PHY register read with the required sequence. More...
 
u32 XUfsPsxc_Set4KBlkSize (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr)
 This API set the block size to 4K for Boot LUN. More...
 
u32 XUfsPsxc_PhyInit (const XUfsPsxc *InstancePtr)
 This API does PHY Initialization sequence. More...
 
u32 XUfsPsxc_SetRmmiConfig (const XUfsPsxc *InstancePtr)
 This API setup RMMI configurations. More...
 
u32 XUfsPsxc_EnableMPhy (const XUfsPsxc *InstancePtr)
 This API enable the MPHY and wait for Rx/Tx busy de-assertion. More...
 
u32 XUfsPsxc_ConfigureTxRxAttributes (const XUfsPsxc *InstancePtr, u32 SpeedGear, u32 RxTermCap, u32 TxTermCap)
 This API Configures the Tx/Rx Attributes. More...
 
u32 XUfsPsxc_ReadDeviceInfo (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr)
 This API read the UFS device information. More...
 
void XUfsPsxc_FillWriteCmdUpiu (XUfsPsxc *InstancePtr, XUfsPsxc_Xfer_CmdDesc *CmdDescPtr, u64 Address, u32 BlkCnt, const u8 *Buff)
 This API Fill the transfer request descriptor for WRITE Command. More...