nandpsu
Xilinx SDK Drivers API Documentation
Data Structures | Macros | Functions
xnandpsu.h File Reference

Data Structures

struct  XNandPsu_Config
 
struct  XNandPsu_BbtDesc
 
struct  XNandPsu_BadBlockPattern
 
struct  XNandPsu_Geometry
 
struct  XNandPsu_Features
 
struct  XNandPsu_EccMatrix
 
struct  XNandPsu_EccCfg
 
struct  XNandPsu
 

Macros

#define XNandPsu_SetBits(InstancePtr, RegOffset, BitMask)
 
#define XNandPsu_ClrBits(InstancePtr, RegOffset, BitMask)
 
#define XNandPsu_ReadModifyWrite(InstancePtr, RegOffset, Mask, Value)
 
#define XNandPsu_IntrSigEnable(InstancePtr, Mask)
 
#define XNandPsu_IntrSigClear(InstancePtr, Mask)
 
#define XNandPsu_IntrStsEnable(InstancePtr, Mask)
 
#define IS_ONFI(Buff)
 

Functions

s32 XNandPsu_CfgInitialize (XNandPsu *InstancePtr, XNandPsu_Config *ConfigPtr, u32 EffectiveAddr)
 
s32 XNandPsu_Erase (XNandPsu *InstancePtr, u64 Offset, u64 Length)
 
s32 XNandPsu_Write (XNandPsu *InstancePtr, u64 Offset, u64 Length, u8 *SrcBuf)
 
s32 XNandPsu_Read (XNandPsu *InstancePtr, u64 Offset, u64 Length, u8 *DestBuf)
 
s32 XNandPsu_EraseBlock (XNandPsu *InstancePtr, u32 Target, u32 Block)
 
s32 XNandPsu_WriteSpareBytes (XNandPsu *InstancePtr, u32 Page, u8 *Buf)
 
s32 XNandPsu_ReadSpareBytes (XNandPsu *InstancePtr, u32 Page, u8 *Buf)
 
s32 XNandPsu_ChangeTimingMode (XNandPsu *InstancePtr, XNandPsu_DataInterface NewIntf, XNandPsu_TimingMode NewMode)
 
s32 XNandPsu_GetFeature (XNandPsu *InstancePtr, u32 Target, u8 Feature, u8 *Buf)
 
s32 XNandPsu_SetFeature (XNandPsu *InstancePtr, u32 Target, u8 Feature, u8 *Buf)
 
s32 XNandPsu_ScanBbt (XNandPsu *InstancePtr)
 
s32 XNandPsu_MarkBlockBad (XNandPsu *InstancePtr, u32 Block)
 
void XNandPsu_EnableDmaMode (XNandPsu *InstancePtr)
 
void XNandPsu_DisableDmaMode (XNandPsu *InstancePtr)
 
void XNandPsu_EnableEccMode (XNandPsu *InstancePtr)
 
void XNandPsu_DisableEccMode (XNandPsu *InstancePtr)
 
void XNandPsu_Prepare_Cmd (XNandPsu *InstancePtr, u8 Cmd1, u8 Cmd2, u8 EccState, u8 DmaMode, u8 AddrCycles)
 
XNandPsu_ConfigXNandPsu_LookupConfig (u16 DevID)