![]() |
dp14rxss
Xilinx SDK Drivers API Documentation
|
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 KI 12/09/17 Initial release.
Functions | |
void | sendAudioInfoFrame (XilAudioInfoFrame *xilInfoFrame) |
This function to send Audio Information Frame. More... | |
int | DpPt_SetupIntrSystem () |
This function is sets up Interrupt system and start it. More... | |
void | hpd_con () |
This function is called when a Hot-Plug-Detect (HPD) event is received by the DisplayPort TX Subsystem core. More... | |
void | DpPt_HpdEventHandler (void *InstancePtr) |
This function takes care HPD event. More... | |
void | hpd_pulse_con () |
This function is called when a Hot-Plug-Detect (HPD) pulse is received by the DisplayPort TX Subsystem core. More... | |
void | DpPt_HpdPulseHandler (void *InstancePtr) |
This function takes care HPD pulse interrupt. More... | |
void | DpPt_LinkrateChgHandler (void *InstancePtr) |
This function sets link line rate. More... | |
void | DpPt_CustomWaitUs (void *InstancePtr, u32 MicroSeconds) |
This function is called when DisplayPort TX Subsystem core requires delay or sleep. More... | |
void | reconfig_clkwiz (u32 clk_reg0, u32 clk_reg1, u32 clk_reg2) |
sets the default drp values into the mmcm this ensures that mmcm is back to original state More... | |
void | reset_clkwiz () |
This function will reset Tx side MMCM. More... | |
void | clk_wiz_locked () |
This function will check MMCM lock status This MMCM output will be used for Tx side video CLK. More... | |
void | start_tx (u8 line_rate, u8 lane_count, XVidC_VideoMode res_table, u8 bpc, u8 pat, u8 pat_update) |
This is for Tx only mode This function will start outputing internal video patern image Setup GT, DP, patern and generator. More... | |
int | VideoFMC_Init (void) |
This function will detect video resolution/frequency change Many GPUs won't re-train when only video res/freq change. More... | |
void | video_change_detect (u32 *count_track, u32 *rxMsamisc0_track, u32 *bpc_track, u32 *recv_clk_freq_track, float *recv_frame_clk_track, u32 *recv_frame_clk_int_track, int *track_count) |
This function will detect video resolution/frequency change Many GPUs won't re-train when only video res/freq change. More... | |
void | detect_rx_video_and_startTx (int *track_count1) |
This function detects incoming video and find out video parameters Based on the parameters, set up Tx and VDMA, then start Tx output. More... | |
void | switch_to_Tx_only (int *track_switch, u8 *pwr_dwn_x) |
This function will be used when no incoming video at pass-through mode If no video, switching to internal patern generator. More... | |
void | sink_power_cycle (u32 power_down_time) |
This function will send power down and power up command over AUX. More... | |
void | update_edid () |
This function will update and overwrite EDID color depth 10BPC will be changed to 8BPC due to design limitation. More... | |
void | resetIp () |
This function toggles HW reset line for all IP's. More... | |
void | remap_set (XV_axi4s_remap *remap, u8 in_ppc, u8 out_ppc, u16 width, u16 height, u8 color_format) |
This function sets parameters for remap IP. More... | |
void | remap_start (struct dma_chan_parms *dma_struct) |
This function starts remap IP. More... | |
void | DpRxSs_InfoPacketHandler (void *InstancePtr) |
This function is the callback function for Info Packet Handling. More... | |
void | DpRxSs_ExtPacketHandler (void *InstancePtr) |
This function is the callback function for Generic Packet Handling of 32-Bytes payload. More... | |
void | Print_InfoPkt () |
This function is the callback function for Info Packet Handling. More... | |
void | Print_ExtPkt () |
This function is the callback function for Ext Packet Handling. More... | |
void | DpRxSs_AccessLinkQualHandler (void *InstancePtr) |
This function is the callback function for Access link qual request. More... | |
void | DpRxSs_AccessErrorCounterHandler (void *InstancePtr) |
This function is the callback function for Access prbs error count. More... | |
void | DpRxSs_CRCTestEventHandler (void *InstancePtr) |
This function is the callback function for Test CRC Event request. More... | |
Variables | |
lane_link_rate_struct | lane_link_table [] |
void clk_wiz_locked | ( | void | ) |
This function will check MMCM lock status This MMCM output will be used for Tx side video CLK.
This function to check MMCM lock status.
void detect_rx_video_and_startTx | ( | int * | track_count1 | ) |
This function detects incoming video and find out video parameters Based on the parameters, set up Tx and VDMA, then start Tx output.
References XDpRxSs::DpPtr, Vpg_StreamSrcConfigure(), and Vpg_VidgenSetUserPattern().
void DpPt_CustomWaitUs | ( | void * | InstancePtr, |
u32 | MicroSeconds | ||
) |
This function is called when DisplayPort TX Subsystem core requires delay or sleep.
This function use h/w timer to count specific Microseconds.
It provides timer with predefined amount of loop iterations.
InstancePtr | is a pointer to the XDp instance. |
void DpPt_HpdEventHandler | ( | void * | InstancePtr | ) |
This function takes care HPD event.
References XDpRxSs::DpPtr, and sink_power_cycle().
void DpPt_HpdPulseHandler | ( | void * | InstancePtr | ) |
This function takes care HPD pulse interrupt.
void DpPt_LinkrateChgHandler | ( | void * | InstancePtr | ) |
This function sets link line rate.
@return | None. |
int DpPt_SetupIntrSystem | ( | ) |
This function is sets up Interrupt system and start it.
References XDpRxSs_DpIntrHandler().
void DpRxSs_AccessErrorCounterHandler | ( | void * | InstancePtr | ) |
This function is the callback function for Access prbs error count.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_AccessLinkQualHandler | ( | void * | InstancePtr | ) |
This function is the callback function for Access link qual request.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_CRCTestEventHandler | ( | void * | InstancePtr | ) |
This function is the callback function for Test CRC Event request.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_ExtPacketHandler | ( | void * | InstancePtr | ) |
This function is the callback function for Generic Packet Handling of 32-Bytes payload.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_InfoPacketHandler | ( | void * | InstancePtr | ) |
This function is the callback function for Info Packet Handling.
InstancePtr | is a pointer to the XDpRxSs instance. |
void hpd_con | ( | ) |
This function is called when a Hot-Plug-Detect (HPD) event is received by the DisplayPort TX Subsystem core.
InstancePtr | is a pointer to the XDpTxSs instance. |
References XDpRxSs::DpPtr, update_edid(), XDpRxSs_SetLaneCount(), and XDpRxSs_SetLinkRate().
void hpd_pulse_con | ( | ) |
This function is called when a Hot-Plug-Detect (HPD) pulse is received by the DisplayPort TX Subsystem core.
InstancePtr | is a pointer to the XDpTxSs instance. |
void Print_ExtPkt | ( | ) |
This function is the callback function for Ext Packet Handling.
InstancePtr | is a pointer to the XDpRxSs instance. |
void Print_InfoPkt | ( | ) |
This function is the callback function for Info Packet Handling.
InstancePtr | is a pointer to the XDpRxSs instance. |
void reconfig_clkwiz | ( | u32 | clk_reg0, |
u32 | clk_reg1, | ||
u32 | clk_reg2 | ||
) |
sets the default drp values into the mmcm this ensures that mmcm is back to original state
References DpPt_CustomWaitUs(), and XDpRxSs::DpPtr.
void remap_set | ( | XV_axi4s_remap * | remap, |
u8 | in_ppc, | ||
u8 | out_ppc, | ||
u16 | width, | ||
u16 | height, | ||
u8 | color_format | ||
) |
void remap_start | ( | struct dma_chan_parms * | dma_struct | ) |
void reset_clkwiz | ( | ) |
This function will reset Tx side MMCM.
void resetIp | ( | ) |
This function toggles HW reset line for all IP's.
void sendAudioInfoFrame | ( | XilAudioInfoFrame * | xilInfoFrame | ) |
This function to send Audio Information Frame.
XilAudioInfoFrame |
void sink_power_cycle | ( | u32 | power_down_time | ) |
This function will send power down and power up command over AUX.
References DpPt_CustomWaitUs().
Referenced by DpPt_HpdEventHandler(), DpTxSs_Setup(), hpd_pulse_con(), start_tx(), and switch_to_Tx_only().
void start_tx | ( | u8 | line_rate, |
u8 | lane_count, | ||
XVidC_VideoMode | res_table, | ||
u8 | bpc, | ||
u8 | pat, | ||
u8 | pat_update | ||
) |
This is for Tx only mode This function will start outputing internal video patern image Setup GT, DP, patern and generator.
References clk_wiz_locked(), DpPt_CustomWaitUs(), sink_power_cycle(), Vpg_StreamSrcConfigure(), and Vpg_VidgenSetUserPattern().
Referenced by switch_to_Tx_only().
void switch_to_Tx_only | ( | int * | track_switch, |
u8 * | pwr_dwn_x | ||
) |
This function will be used when no incoming video at pass-through mode If no video, switching to internal patern generator.
References PHY_Configuration_Tx(), sink_power_cycle(), start_tx(), Vpg_StreamSrcConfigure(), and Vpg_VidgenSetUserPattern().
void update_edid | ( | ) |
This function will update and overwrite EDID color depth 10BPC will be changed to 8BPC due to design limitation.
Referenced by hpd_con().
void video_change_detect | ( | u32 * | count_track, |
u32 * | rxMsamisc0_track, | ||
u32 * | bpc_track, | ||
u32 * | recv_clk_freq_track, | ||
float * | recv_frame_clk_track, | ||
u32 * | recv_frame_clk_int_track, | ||
int * | track_count | ||
) |
This function will detect video resolution/frequency change Many GPUs won't re-train when only video res/freq change.
Application needs to know if it changed and need to detect new parameter. Based on the parameter, re-set and re-start VDAM and Tx
References XDpRxSs::Config, XDpRxSs_DpSubCore::DpConfig, XDpRxSs::DpPtr, XDpRxSs_Config::DpSubCore, and Vpg_VidgenSetUserPattern().
int VideoFMC_Init | ( | void | ) |
This function will detect video resolution/frequency change Many GPUs won't re-train when only video res/freq change.
This function initializes VFMC.
Application needs to know if it changed and need to detect new parameter. Based on the parameter, re-set and re-start VDAM and Tx
References I2C_IDT8N49_ADDR, I2C_LMK03318_ADDR, I2C_MUX_ADDR, I2C_Scan(), I2C_VFMCEXP_0_ADDR, I2C_VFMCEXP_1_ADDR, IDT_8T49N24x_Init(), and TI_LMK03318_PowerDown().
lane_link_rate_struct lane_link_table[] |
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 KI 07/13/17 Initial release.