dp14rxss
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
xdprxss.c File Reference
#include "xdprxss.h"
#include "xdprxss_mcdp6000.h"
#include "string.h"
#include "xdebug.h"
#include "sleep.h"

Macros

#define EDID_IIC_ADDRESS   0x50
 EDID IIC slave address. More...
 
Clock Wizard software reset and lock polling

Software reset is not defined by the clk_wiz driver header.

Status offset is the same value the clk_wiz header uses, so it is defined here always.

#define XCLK_WIZ_SWRST_OFFSET   0x00000000
 Software reset offset. More...
 
#define XCLK_WIZ_SWRST_VAL   0x0A
 Software reset value. More...
 
#define XCLK_WIZ_STATUS_OFFSET   0x00000004
 Status register offset. More...
 
#define XCLK_WIZ_STATUS_RETRY   10000
 Max retries for clock lock status. More...
 
#define XCLK_WIZ_STATUS_WAIT   100
 Wait time in microseconds between retries. More...
 

Functions

u32 XDpRxSs_CfgInitialize (XDpRxSs *InstancePtr, XDpRxSs_Config *CfgPtr, UINTPTR EffectiveAddr)
 This function initializes the DisplayPort Receiver Subsystem core. More...
 
void XDpRxSs_Reset (XDpRxSs *InstancePtr)
 This function resets the DisplayPort Receiver Subsystem including all sub-cores. More...
 
u32 XDpRxSs_Start (XDpRxSs *InstancePtr)
 This function starts the DisplayPort Receiver Subsystem including all sub-cores. More...
 
u32 XDpRxSs_SetLinkRate (XDpRxSs *InstancePtr, u8 LinkRate)
 This function sets the data rate to be used by the DisplayPort RX Subsystem core. More...
 
u32 XDpRxSs_SetLaneCount (XDpRxSs *InstancePtr, u8 LaneCount)
 This function sets the number of lanes to be used by DisplayPort RX Subsystem core. More...
 
u32 XDpRxSs_ExposePort (XDpRxSs *InstancePtr, u8 Port)
 This function allows the user to select number of ports to be exposed when replying to a LINK_ADDRESS sideband message and hides rest of the ports. More...
 
u32 XDpRxSs_CheckLinkStatus (XDpRxSs *InstancePtr)
 This function checks if the receiver's DisplayPort Configuration Data (DPCD) indicates that the receiver has achieved clock recovery, channel equalization, symbol lock, and interlane alignment for all lanes currently in use. More...
 
void XDpRxSs_SetUserPixelWidth (XDpRxSs *InstancePtr, u8 UserPixelWidth)
 This function configures the number of pixels output through the user data interface. More...
 
u8 XDpRxss_GetBpc (XDpRxSs *InstancePtr, u8 Stream)
 This function extracts the bits per color from MISC0 or VSC SDP packet based on whether reception of colorimetry information through VSC SDP packets or through MISC registers of the stream. More...
 
u8 XDpRxss_GetColorComponent (XDpRxSs *InstancePtr, u8 Stream)
 This function extracts the color component format from MISC0 or VSC SDP packet based on whether reception of colorimetry information through VSC SDP packets or through MISC registers of the stream. More...
 
u8 XDpRxss_GetColorimetry (XDpRxSs *InstancePtr, u8 Stream)
 This function extracts the YCbCrColorimetry from MISC0 or VSC SDP packet based on whether reception of colorimetry information through VSC SDP packets or through MISC registers of the stream. More...
 
u8 XDpRxss_GetDynamicRange (XDpRxSs *InstancePtr, u8 Stream)
 This function extracts the dynamic range from MISC0 or VSC SDP packet based on whether reception of colorimetry information through VSC SDP packets or through MISC registers of the stream. More...
 
u32 XDpRxSs_HandleDownReq (XDpRxSs *InstancePtr)
 This function handles incoming sideband messages. More...
 
void XDpRxSs_McDp6000_init (void *InstancePtr)
 This routine initializes the MCDP6000 part on the VFMC card used for DP 1.4. More...
 
void XDpRxSs_SetAdaptiveSyncCaps (XDpRxSs *InstancePtr, u32 Enable)
 This function sets Adaptive-Sync capabilities to DisplayPort RX Subsystem. More...
 
void XDpRxSs_MaskAdaptiveIntr (XDpRxSs *InstancePtr, u32 Mask)
 This function masks the Adaptive-Sync interrupts from DisplayPort RX Subsystem. More...
 
void XDpRxSs_UnMaskAdaptiveIntr (XDpRxSs *InstancePtr, u32 Mask)
 This function unmasks Adaptive-Sync interrupt from DisplayPort RX Subsystem. More...
 
int XDpRxSs_GetVblank (XDpRxSs *InstancePtr, u8 Stream)
 This function retrieves the current vblank value of the incoming video stream. More...
 
int XDpRxSs_GetVtotal (XDpRxSs *InstancePtr, u8 Stream)
 This function retrieves the current VTotal value of the incoming video stream. More...
 
int XDpRxSs_Get_Dec_Clk_Lock (XDpRxSs *InstancePtr)
 This function resets the Clock Wizard and waits for it to lock after the receiver decode clock has been reconfigured. More...
 

Variables

u8 GenEdid [128]
 This function configures the Clock Wizard to generate the receiver decode clock (rx_dec_clk) for 8b10b logic based on the current link rate. More...
 
u8 GenDpcd []
 A generic DPCD (DisplayPort Configuration Data) structure. More...
 
XDpRxSs_SubCores DpRxSsSubCores [XPAR_XDPRXSS_NUM_INSTANCES]
 DisplayPort RX subcores instance array. More...