dp
Xilinx SDK Drivers API Documentation
xdp.c File Reference

Enumerations

enum  XDp_TxTrainingState
 This typedef enumerates the list of training states used in the state machine during the link training process. More...
 

Functions

void XDp_CfgInitialize (XDp *InstancePtr, XDp_Config *ConfigPtr, UINTPTR EffectiveAddr)
 This function retrieves the configuration for this DisplayPort instance and fills in the InstancePtr->Config structure. More...
 
u32 XDp_Initialize (XDp *InstancePtr)
 This function prepares the DisplayPort core for use depending on whether the core is operating in TX or RX mode. More...
 
u32 XDp_TxGetRxCapabilities (XDp *InstancePtr)
 This function retrieves the RX device's capabilities from the RX device's DisplayPort Configuration Data (DPCD). More...
 
u32 XDp_TxCfgMainLinkMax (XDp *InstancePtr)
 This function determines the common capabilities between the DisplayPort TX core and the RX device. More...
 
u32 XDp_TxEstablishLink (XDp *InstancePtr)
 This function checks if the link needs training and runs the training sequence if training is required. More...
 
u32 XDp_TxCheckLinkStatus (XDp *InstancePtr, u8 LaneCount)
 This function checks if the receiver's DisplayPort Configuration Data (DPCD) indicates the receiver has achieved and maintained clock recovery, channel equalization, symbol lock, and interlane alignment for all lanes currently in use. More...
 
void XDp_TxEnableTrainAdaptive (XDp *InstancePtr, u8 Enable)
 This function enables or disables downshifting during the training process. More...
 
void XDp_TxSetHasRedriverInPath (XDp *InstancePtr, u8 Set)
 This function sets a software switch that signifies whether or not a redriver exists on the DisplayPort output path. More...
 
void XDp_TxCfgTxVsOffset (XDp *InstancePtr, u8 Offset)
 This function sets the voltage swing offset to use during training when no redriver exists. More...
 
void XDp_TxCfgTxVsLevel (XDp *InstancePtr, u8 Level, u8 TxLevel)
 This function sets the voltage swing level value in the DisplayPort TX that will be used during link training for a given voltage swing training level. More...
 
void XDp_TxCfgTxPeLevel (XDp *InstancePtr, u8 Level, u8 TxLevel)
 This function sets the pre-emphasis level value in the DisplayPort TX that will be used during link training for a given pre-emphasis training level. More...
 
u32 XDp_TxIsConnected (XDp *InstancePtr)
 This function checks if there is a connected RX device. More...
 
u32 XDp_TxAuxRead (XDp *InstancePtr, u32 DpcdAddress, u32 BytesToRead, void *ReadData)
 This function issues a read request over the AUX channel that will read from the RX device's DisplayPort Configuration Data (DPCD) address space. More...
 
u32 XDp_TxAuxWrite (XDp *InstancePtr, u32 DpcdAddress, u32 BytesToWrite, void *WriteData)
 This function issues a write request over the AUX channel that will write to the RX device's DisplayPort Configuration Data (DPCD) address space. More...
 
u32 XDp_TxIicRead (XDp *InstancePtr, u8 IicAddress, u16 Offset, u16 BytesToRead, void *ReadData)
 This function performs an I2C read over the AUX channel. More...
 
u32 XDp_TxIicWrite (XDp *InstancePtr, u8 IicAddress, u8 BytesToWrite, void *WriteData)
 This function performs an I2C write over the AUX channel. More...
 
u32 XDp_TxSetDownspread (XDp *InstancePtr, u8 Enable)
 This function enables or disables 0.5% spreading of the clock for both the DisplayPort and the RX device. More...
 
u32 XDp_TxSetEnhancedFrameMode (XDp *InstancePtr, u8 Enable)
 This function enables or disables the enhanced framing symbol sequence for both the DisplayPort TX core and the RX device. More...
 
u32 XDp_TxSetLaneCount (XDp *InstancePtr, u8 LaneCount)
 This function sets the number of lanes to be used by the main link for both the DisplayPort TX core and the RX device. More...
 
u32 XDp_TxSetLinkRate (XDp *InstancePtr, u8 LinkRate)
 This function sets the data rate to be used by the main link for both the DisplayPort TX core and the RX device. More...
 
u32 XDp_TxSetScrambler (XDp *InstancePtr, u8 Enable)
 This function enables or disables scrambling of symbols for both the DisplayPort and the RX device. More...
 
void XDp_TxEnableMainLink (XDp *InstancePtr)
 This function enables the main link. More...
 
void XDp_TxDisableMainLink (XDp *InstancePtr)
 This function disables the main link. More...
 
void XDp_TxResetPhy (XDp *InstancePtr, u32 Reset)
 This function does a PHY reset. More...
 
void XDp_TxSetPhyPolarityAll (XDp *InstancePtr, u8 Polarity)
 This function sets the PHY polarity on all lanes. More...
 
void XDp_TxSetPhyPolarityLane (XDp *InstancePtr, u8 Lane, u8 Polarity)
 This function sets the PHY polarity on a specified lane. More...
 
u32 XDp_RxCheckLinkStatus (XDp *InstancePtr)
 This function checks if the receiver's internal registers indicate that link training has complete. More...
 
void XDp_RxDtgEn (XDp *InstancePtr)
 This function enables the display timing generator (DTG). More...
 
void XDp_RxDtgDis (XDp *InstancePtr)
 This function disables the display timing generator (DTG). More...
 
void XDp_RxSetLinkRate (XDp *InstancePtr, u8 LinkRate)
 This function sets the maximum data rate to be exposed in the RX device's DisplayPort Configuration Data (DPCD) registers. More...
 
void XDp_RxSetLaneCount (XDp *InstancePtr, u8 LaneCount)
 This function sets the maximum lane count to be exposed in the RX device's DisplayPort Configuration Data (DPCD) registers. More...
 
void XDp_RxAudioEn (XDp *InstancePtr)
 This function enables audio stream packets on the main link. More...
 
void XDp_RxAudioDis (XDp *InstancePtr)
 This function disables audio stream packets on the main link. More...
 
void XDp_RxAudioReset (XDp *InstancePtr)
 This function resets the RX core's reception of audio stream packets on the main link. More...
 
void XDp_SetUserTimerHandler (XDp *InstancePtr, XDp_TimerHandler CallbackFunc, void *CallbackRef)
 This function installs a custom delay/sleep function to be used by the XDp driver. More...
 
void XDp_WaitUs (XDp *InstancePtr, u32 MicroSeconds)
 This function is the delay/sleep function for the XDp driver. More...
 
void XDp_TxSetLaneCountChangeCallback (XDp *InstancePtr, XDp_IntrHandler CallbackFunc, void *CallbackRef)
 This function installs a callback function for when the driver's lane count change function is called either directly by the user or during link training. More...
 
void XDp_TxSetLinkRateChangeCallback (XDp *InstancePtr, XDp_IntrHandler CallbackFunc, void *CallbackRef)
 This function installs a callback function for when the driver's link rate change function is called either directly by the user or during link training. More...
 
void XDp_TxSetPeVsAdjustCallback (XDp *InstancePtr, XDp_IntrHandler CallbackFunc, void *CallbackRef)
 This function installs a callback function for when the driver's link rate change function is called during link training. More...
 
u8 XDp_IsLinkRateValid (XDp *InstancePtr, u8 LinkRate)
 This function checks the validity of the link rate. More...
 
u8 XDp_IsLaneCountValid (XDp *InstancePtr, u8 LaneCount)
 This function checks the validity of the lane count. More...