dp: Clean-up.
Lines should not exceed 80 characters in length. The pre-processor only replaces full names, so prefixes cannot be altered using macros (#define XDPTX_ XDP_TX_). Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
parent
2a662e6f48
commit
e81ba1fde6
5 changed files with 68 additions and 62 deletions
|
@ -377,7 +377,8 @@ u32 XDp_TxEstablishLink(XDp *InstancePtr)
|
|||
/* Verify arguments. */
|
||||
Xil_AssertNonvoid(InstancePtr != NULL);
|
||||
Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
|
||||
Xil_AssertNonvoid((LinkConfig->LinkRate == XDP_TX_LINK_BW_SET_162GBPS) ||
|
||||
Xil_AssertNonvoid((LinkConfig->LinkRate ==
|
||||
XDP_TX_LINK_BW_SET_162GBPS) ||
|
||||
(LinkConfig->LinkRate == XDP_TX_LINK_BW_SET_270GBPS) ||
|
||||
(LinkConfig->LinkRate == XDP_TX_LINK_BW_SET_540GBPS));
|
||||
Xil_AssertNonvoid((LinkConfig->LaneCount == XDP_TX_LANE_COUNT_SET_1) ||
|
||||
|
@ -401,7 +402,7 @@ u32 XDp_TxEstablishLink(XDp *InstancePtr)
|
|||
|
||||
/* Turn off the training pattern and enable scrambler. */
|
||||
Status2 = XDp_TxSetTrainingPattern(InstancePtr,
|
||||
XDP_TX_TRAINING_PATTERN_SET_OFF);
|
||||
XDP_TX_TRAINING_PATTERN_SET_OFF);
|
||||
if ((Status != XST_SUCCESS) || (Status2 != XST_SUCCESS)) {
|
||||
return XST_FAILURE;
|
||||
}
|
||||
|
@ -438,8 +439,8 @@ u32 XDp_TxCheckLinkStatus(XDp *InstancePtr, u8 LaneCount)
|
|||
Xil_AssertNonvoid(InstancePtr != NULL);
|
||||
Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
|
||||
Xil_AssertNonvoid((LaneCount == XDP_TX_LANE_COUNT_SET_1) ||
|
||||
(LaneCount == XDP_TX_LANE_COUNT_SET_2) ||
|
||||
(LaneCount == XDP_TX_LANE_COUNT_SET_4));
|
||||
(LaneCount == XDP_TX_LANE_COUNT_SET_2) ||
|
||||
(LaneCount == XDP_TX_LANE_COUNT_SET_4));
|
||||
|
||||
if (!XDp_TxIsConnected(InstancePtr)) {
|
||||
return XST_DEVICE_NOT_FOUND;
|
||||
|
@ -1039,8 +1040,8 @@ u32 XDp_TxSetLaneCount(XDp *InstancePtr, u8 LaneCount)
|
|||
Xil_AssertNonvoid(InstancePtr != NULL);
|
||||
Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
|
||||
Xil_AssertNonvoid((LaneCount == XDP_TX_LANE_COUNT_SET_1) ||
|
||||
(LaneCount == XDP_TX_LANE_COUNT_SET_2) ||
|
||||
(LaneCount == XDP_TX_LANE_COUNT_SET_4));
|
||||
(LaneCount == XDP_TX_LANE_COUNT_SET_2) ||
|
||||
(LaneCount == XDP_TX_LANE_COUNT_SET_4));
|
||||
|
||||
if (!XDp_TxIsConnected(InstancePtr)) {
|
||||
return XST_DEVICE_NOT_FOUND;
|
||||
|
@ -1110,15 +1111,15 @@ u32 XDp_TxSetLinkRate(XDp *InstancePtr, u8 LinkRate)
|
|||
switch (LinkRate) {
|
||||
case XDP_TX_LINK_BW_SET_162GBPS:
|
||||
Status = XDp_TxSetClkSpeed(InstancePtr,
|
||||
XDP_TX_PHY_CLOCK_SELECT_162GBPS);
|
||||
XDP_TX_PHY_CLOCK_SELECT_162GBPS);
|
||||
break;
|
||||
case XDP_TX_LINK_BW_SET_270GBPS:
|
||||
Status = XDp_TxSetClkSpeed(InstancePtr,
|
||||
XDP_TX_PHY_CLOCK_SELECT_270GBPS);
|
||||
XDP_TX_PHY_CLOCK_SELECT_270GBPS);
|
||||
break;
|
||||
case XDP_TX_LINK_BW_SET_540GBPS:
|
||||
Status = XDp_TxSetClkSpeed(InstancePtr,
|
||||
XDP_TX_PHY_CLOCK_SELECT_540GBPS);
|
||||
XDP_TX_PHY_CLOCK_SELECT_540GBPS);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -1269,7 +1270,7 @@ void XDp_TxResetPhy(XDp *InstancePtr, u32 Reset)
|
|||
|
||||
XDp_WriteReg(InstancePtr->Config.BaseAddr, XDP_TX_PHY_CONFIG, Reset);
|
||||
XDp_WriteReg(InstancePtr->Config.BaseAddr, XDP_TX_PHY_CONFIG,
|
||||
XDP_TX_PHY_CONFIG_PHY_RESET_ENABLE_MASK);
|
||||
XDP_TX_PHY_CONFIG_PHY_RESET_ENABLE_MASK);
|
||||
if (InstancePtr->Config.MaxLaneCount > 2) {
|
||||
XDp_WaitPhyReady(InstancePtr,
|
||||
XDP_TX_PHY_STATUS_ALL_LANES_READY_MASK);
|
||||
|
@ -1665,15 +1666,15 @@ static u32 XDp_TxInitialize(XDp *InstancePtr)
|
|||
switch (ConfigPtr->MaxLinkRate) {
|
||||
case XDP_TX_LINK_BW_SET_540GBPS:
|
||||
XDp_WriteReg(ConfigPtr->BaseAddr, XDP_TX_PHY_CLOCK_SELECT,
|
||||
XDP_TX_PHY_CLOCK_SELECT_540GBPS);
|
||||
XDP_TX_PHY_CLOCK_SELECT_540GBPS);
|
||||
break;
|
||||
case XDP_TX_LINK_BW_SET_270GBPS:
|
||||
XDp_WriteReg(ConfigPtr->BaseAddr, XDP_TX_PHY_CLOCK_SELECT,
|
||||
XDP_TX_PHY_CLOCK_SELECT_270GBPS);
|
||||
XDP_TX_PHY_CLOCK_SELECT_270GBPS);
|
||||
break;
|
||||
case XDP_TX_LINK_BW_SET_162GBPS:
|
||||
XDp_WriteReg(ConfigPtr->BaseAddr, XDP_TX_PHY_CLOCK_SELECT,
|
||||
XDP_TX_PHY_CLOCK_SELECT_162GBPS);
|
||||
XDP_TX_PHY_CLOCK_SELECT_162GBPS);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -1681,16 +1682,16 @@ static u32 XDp_TxInitialize(XDp *InstancePtr)
|
|||
|
||||
/* Bring the PHY (and GTTXRESET) out of reset. */
|
||||
XDp_WriteReg(ConfigPtr->BaseAddr, XDP_TX_PHY_CONFIG,
|
||||
XDP_TX_PHY_CONFIG_PHY_RESET_ENABLE_MASK);
|
||||
XDP_TX_PHY_CONFIG_PHY_RESET_ENABLE_MASK);
|
||||
|
||||
/* Wait for the PHY to be ready. */
|
||||
if (ConfigPtr->MaxLaneCount > 2) {
|
||||
Status = XDp_WaitPhyReady(InstancePtr,
|
||||
XDP_TX_PHY_STATUS_ALL_LANES_READY_MASK);
|
||||
XDP_TX_PHY_STATUS_ALL_LANES_READY_MASK);
|
||||
}
|
||||
else {
|
||||
Status = XDp_WaitPhyReady(InstancePtr,
|
||||
XDP_TX_PHY_STATUS_LANES_0_1_READY_MASK);
|
||||
XDP_TX_PHY_STATUS_LANES_0_1_READY_MASK);
|
||||
}
|
||||
if (Status != XST_SUCCESS) {
|
||||
return XST_FAILURE;
|
||||
|
@ -1782,7 +1783,7 @@ static u32 XDp_RxInitialize(XDp *InstancePtr)
|
|||
InstancePtr->RxInstance.LinkConfig.LaneCount);
|
||||
/* Set the interrupt masks. */
|
||||
XDp_WriteReg(InstancePtr->Config.BaseAddr, XDP_RX_INTERRUPT_MASK,
|
||||
~XDP_RX_INTERRUPT_MASK_ALL_MASK);
|
||||
~XDP_RX_INTERRUPT_MASK_ALL_MASK);
|
||||
|
||||
/* Enable the display timing generator. */
|
||||
XDp_RxDtgEn(InstancePtr);
|
||||
|
@ -1915,7 +1916,7 @@ static XDp_TxTrainingState XDp_TxTrainingStateClockRecovery(XDp *InstancePtr)
|
|||
InstancePtr->TxInstance.LinkConfig.VsLevel = 0;
|
||||
InstancePtr->TxInstance.LinkConfig.PeLevel = 0;
|
||||
Status = XDp_TxSetTrainingPattern(InstancePtr,
|
||||
XDP_TX_TRAINING_PATTERN_SET_TP1);
|
||||
XDP_TX_TRAINING_PATTERN_SET_TP1);
|
||||
if (Status != XST_SUCCESS) {
|
||||
return XDP_TX_TS_FAILURE;
|
||||
}
|
||||
|
@ -2022,11 +2023,11 @@ static XDp_TxTrainingState XDp_TxTrainingStateChannelEqualization(
|
|||
DpcdRxCapsField[XDP_DPCD_MAX_LANE_COUNT] &
|
||||
XDP_DPCD_TPS3_SUPPORT_MASK) {
|
||||
Status = XDp_TxSetTrainingPattern(InstancePtr,
|
||||
XDP_TX_TRAINING_PATTERN_SET_TP3);
|
||||
XDP_TX_TRAINING_PATTERN_SET_TP3);
|
||||
}
|
||||
else {
|
||||
Status = XDp_TxSetTrainingPattern(InstancePtr,
|
||||
XDP_TX_TRAINING_PATTERN_SET_TP2);
|
||||
XDP_TX_TRAINING_PATTERN_SET_TP2);
|
||||
}
|
||||
if (Status != XST_SUCCESS) {
|
||||
return XDP_TX_TS_FAILURE;
|
||||
|
@ -2084,8 +2085,8 @@ static XDp_TxTrainingState XDp_TxTrainingStateChannelEqualization(
|
|||
* @param InstancePtr is a pointer to the XDp instance.
|
||||
*
|
||||
* @return The next training state:
|
||||
* - XDP_TX_TS_ADJUST_LANE_COUNT if the minimal data rate is already
|
||||
* in use. Re-attempt training at a reduced lane count.
|
||||
* - XDP_TX_TS_ADJUST_LANE_COUNT if the minimal data rate is
|
||||
* already in use. Re-attempt training at a reduced lane count.
|
||||
* - XDP_TX_TS_CLOCK_RECOVERY otherwise. Re-attempt training.
|
||||
*
|
||||
* @note None.
|
||||
|
@ -2153,7 +2154,7 @@ static XDp_TxTrainingState XDp_TxTrainingStateAdjustLaneCount(XDp *InstancePtr)
|
|||
switch (LinkConfig->LaneCount) {
|
||||
case XDP_TX_LANE_COUNT_SET_4:
|
||||
Status = XDp_TxSetLaneCount(InstancePtr,
|
||||
XDP_TX_LANE_COUNT_SET_2);
|
||||
XDP_TX_LANE_COUNT_SET_2);
|
||||
if (Status != XST_SUCCESS) {
|
||||
Status = XDP_TX_TS_FAILURE;
|
||||
break;
|
||||
|
@ -2169,7 +2170,7 @@ static XDp_TxTrainingState XDp_TxTrainingStateAdjustLaneCount(XDp *InstancePtr)
|
|||
break;
|
||||
case XDP_TX_LANE_COUNT_SET_2:
|
||||
Status = XDp_TxSetLaneCount(InstancePtr,
|
||||
XDP_TX_LANE_COUNT_SET_1);
|
||||
XDP_TX_LANE_COUNT_SET_1);
|
||||
if (Status != XST_SUCCESS) {
|
||||
Status = XDP_TX_TS_FAILURE;
|
||||
break;
|
||||
|
@ -2901,7 +2902,7 @@ static u32 XDp_TxAuxWaitReply(XDp *InstancePtr)
|
|||
|
||||
while (0 < Timeout) {
|
||||
Status = XDp_ReadReg(InstancePtr->Config.BaseAddr,
|
||||
XDP_TX_INTERRUPT_STATUS);
|
||||
XDP_TX_INTERRUPT_STATUS);
|
||||
|
||||
/* Check for a timeout. */
|
||||
if (Status & XDP_TX_INTERRUPT_STATUS_REPLY_TIMEOUT_MASK) {
|
||||
|
|
|
@ -867,8 +867,7 @@ u32 XDp_TxMstDisable(XDp *InstancePtr);
|
|||
void XDp_TxMstCfgStreamEnable(XDp *InstancePtr, u8 Stream);
|
||||
void XDp_TxMstCfgStreamDisable(XDp *InstancePtr, u8 Stream);
|
||||
u8 XDp_TxMstStreamIsEnabled(XDp *InstancePtr, u8 Stream);
|
||||
void XDp_TxSetStreamSelectFromSinkList(XDp *InstancePtr, u8 Stream, u8
|
||||
SinkNum);
|
||||
void XDp_TxSetStreamSelectFromSinkList(XDp *InstancePtr, u8 Stream, u8 SinkNum);
|
||||
void XDp_TxSetStreamSinkRad(XDp *InstancePtr, u8 Stream, u8 LinkCountTotal,
|
||||
u8 *RelativeAddress);
|
||||
|
||||
|
@ -992,14 +991,9 @@ void XDp_RxSetUserPixelWidth(XDp *InstancePtr, u8 UserPixelWidth);
|
|||
#define XDptx_HpdInterruptHandler XDp_InterruptHandler
|
||||
#define XDprx_InterruptHandler XDp_InterruptHandler
|
||||
|
||||
#define XDptx_ XDp_Tx
|
||||
#define XDprx_ XDp_Rx
|
||||
#define XDptx XDp
|
||||
#define XDprx XDp
|
||||
#define XDptx XDp_Tx
|
||||
#define XDprx XDp_Rx
|
||||
|
||||
#define XDPTX_DPCD_ XDP_DPCD_
|
||||
#define XDPTX_ XDP_TX_
|
||||
#define XDPRX_ XDP_RX_
|
||||
#define XDPTX XDP_TX
|
||||
#define XDPRX XDP_RX
|
||||
|
||||
|
|
|
@ -546,11 +546,11 @@ static void XDp_TxInterruptHandler(XDp *InstancePtr)
|
|||
/* Determine what kind of interrupt occurred.
|
||||
* Note: XDP_TX_INTERRUPT_STATUS is an RC (read-clear) register. */
|
||||
IntrStatus = XDp_ReadReg(InstancePtr->Config.BaseAddr,
|
||||
XDP_TX_INTERRUPT_STATUS);
|
||||
XDP_TX_INTERRUPT_STATUS);
|
||||
IntrStatus &= ~XDp_ReadReg(InstancePtr->Config.BaseAddr,
|
||||
XDP_TX_INTERRUPT_MASK);
|
||||
XDP_TX_INTERRUPT_MASK);
|
||||
IntrMask = XDp_ReadReg(InstancePtr->Config.BaseAddr,
|
||||
XDP_TX_INTERRUPT_MASK);
|
||||
XDP_TX_INTERRUPT_MASK);
|
||||
|
||||
HpdEventDetected = IntrStatus & XDP_TX_INTERRUPT_STATUS_HPD_EVENT_MASK;
|
||||
HpdPulseDetected = IntrStatus &
|
||||
|
|
|
@ -414,8 +414,9 @@ u8 XDp_TxMstStreamIsEnabled(XDp *InstancePtr, u8 Stream)
|
|||
/* Verify arguments. */
|
||||
Xil_AssertNonvoid(InstancePtr != NULL);
|
||||
Xil_AssertNonvoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
|
||||
return InstancePtr->TxInstance.
|
||||
MstStreamConfig[Stream - 1].MstStreamEnable;
|
||||
|
@ -439,8 +440,9 @@ void XDp_TxMstCfgStreamEnable(XDp *InstancePtr, u8 Stream)
|
|||
/* Verify arguments. */
|
||||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
|
||||
InstancePtr->TxInstance.MstStreamConfig[Stream - 1].MstStreamEnable = 1;
|
||||
}
|
||||
|
@ -463,8 +465,9 @@ void XDp_TxMstCfgStreamDisable(XDp *InstancePtr, u8 Stream)
|
|||
/* Verify arguments. */
|
||||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
|
||||
InstancePtr->TxInstance.MstStreamConfig[Stream - 1].MstStreamEnable = 0;
|
||||
}
|
||||
|
@ -488,8 +491,7 @@ void XDp_TxMstCfgStreamDisable(XDp *InstancePtr, u8 Stream)
|
|||
* function using the XDp_TxFindAccessibleDpDevices.
|
||||
*
|
||||
*******************************************************************************/
|
||||
void XDp_TxSetStreamSelectFromSinkList(XDp *InstancePtr, u8 Stream, u8
|
||||
SinkNum)
|
||||
void XDp_TxSetStreamSelectFromSinkList(XDp *InstancePtr, u8 Stream, u8 SinkNum)
|
||||
{
|
||||
u8 Index;
|
||||
XDp_TxMstStream *MstStream;
|
||||
|
@ -498,8 +500,9 @@ void XDp_TxSetStreamSelectFromSinkList(XDp *InstancePtr, u8 Stream, u8
|
|||
/* Verify arguments. */
|
||||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
|
||||
MstStream = &InstancePtr->TxInstance.MstStreamConfig[Stream - 1];
|
||||
Topology = &InstancePtr->TxInstance.Topology;
|
||||
|
@ -539,8 +542,9 @@ void XDp_TxSetStreamSinkRad(XDp *InstancePtr, u8 Stream, u8 LinkCountTotal,
|
|||
/* Verify arguments. */
|
||||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
Xil_AssertVoid(LinkCountTotal > 0);
|
||||
Xil_AssertVoid(RelativeAddress != NULL);
|
||||
|
||||
|
@ -1639,7 +1643,8 @@ u32 XDp_TxSendSbMsgRemoteIicWrite(XDp *InstancePtr, u8 LinkCountTotal,
|
|||
|
||||
/* Prepare the sideband message body. */
|
||||
Msg.Body.MsgData[0] = XDP_TX_SBMSG_REMOTE_I2C_WRITE;
|
||||
Msg.Body.MsgData[1] = RelativeAddress[Msg.Header.LinkCountTotal - 1] << 4;
|
||||
Msg.Body.MsgData[1] = RelativeAddress[Msg.Header.LinkCountTotal - 1] <<
|
||||
4;
|
||||
Msg.Body.MsgData[2] = IicDeviceId; /* Write I2C device ID. */
|
||||
Msg.Body.MsgData[3] = BytesToWrite; /* Number of bytes to write. */
|
||||
for (Index = 0; Index < BytesToWrite; Index++) {
|
||||
|
|
|
@ -349,8 +349,9 @@ void XDp_TxCfgMsaUseEdidPreferredTiming(XDp *InstancePtr, u8 Stream, u8 *Edid)
|
|||
/* Verify arguments. */
|
||||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
Xil_AssertVoid(Edid != NULL);
|
||||
|
||||
MsaConfig = &InstancePtr->TxInstance.MsaConfig[Stream - 1];
|
||||
|
@ -484,8 +485,9 @@ void XDp_TxCfgMsaUseCustom(XDp *InstancePtr, u8 Stream,
|
|||
/* Verify arguments. */
|
||||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
Xil_AssertVoid(MsaConfigCustom != NULL);
|
||||
|
||||
MsaConfig = &InstancePtr->TxInstance.MsaConfig[Stream - 1];
|
||||
|
@ -566,8 +568,9 @@ void XDp_TxCfgMsaSetBpc(XDp *InstancePtr, u8 Stream, u8 BitsPerColor)
|
|||
/* Verify arguments. */
|
||||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
Xil_AssertVoid((BitsPerColor == 6) || (BitsPerColor == 8) ||
|
||||
(BitsPerColor == 10) || (BitsPerColor == 12) ||
|
||||
(BitsPerColor == 16));
|
||||
|
@ -640,8 +643,9 @@ void XDp_TxSetVideoMode(XDp *InstancePtr, u8 Stream)
|
|||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
|
||||
XDp_TxClearMsaValues(InstancePtr, Stream);
|
||||
XDp_TxSetMsaValues(InstancePtr, Stream);
|
||||
|
@ -671,8 +675,9 @@ void XDp_TxClearMsaValues(XDp *InstancePtr, u8 Stream)
|
|||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
|
||||
Config = &InstancePtr->Config;
|
||||
|
||||
|
@ -744,8 +749,9 @@ void XDp_TxSetMsaValues(XDp *InstancePtr, u8 Stream)
|
|||
Xil_AssertVoid(InstancePtr != NULL);
|
||||
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
|
||||
Xil_AssertVoid((Stream == XDP_TX_STREAM_ID1) ||
|
||||
(Stream == XDP_TX_STREAM_ID2) || (Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
(Stream == XDP_TX_STREAM_ID2) ||
|
||||
(Stream == XDP_TX_STREAM_ID3) ||
|
||||
(Stream == XDP_TX_STREAM_ID4));
|
||||
|
||||
ConfigPtr = &InstancePtr->Config;
|
||||
MsaConfig = &InstancePtr->TxInstance.MsaConfig[Stream - 1];
|
||||
|
|
Loading…
Add table
Reference in a new issue