From 09b2ef3c26196b5740e51ee3abf41eee06a7ad83 Mon Sep 17 00:00:00 2001 From: Andrei-Liviu Simion Date: Sun, 25 Jan 2015 22:55:48 -0800 Subject: [PATCH] dp: Enumerated the 2 modes of DisplayPort operation. XDP_TX for Displayport transmitters (sources) XDP_RX for DisplayPort receivers (sinks). Signed-off-by: Andrei-Liviu Simion --- XilinxProcessorIPLib/drivers/dp/src/xdp.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/XilinxProcessorIPLib/drivers/dp/src/xdp.h b/XilinxProcessorIPLib/drivers/dp/src/xdp.h index 7b1ddcbc..c7cd25e3 100644 --- a/XilinxProcessorIPLib/drivers/dp/src/xdp.h +++ b/XilinxProcessorIPLib/drivers/dp/src/xdp.h @@ -280,6 +280,15 @@ /****************************** Type Definitions ******************************/ +/** + * This typedef enumerates the RX and TX modes of operation for the DisplayPort + * core. + */ +typedef enum { + XDP_TX = 0, + XDP_RX +} XDp_CoreType; + /** * This typedef contains configuration information for the DisplayPort core. */ @@ -942,9 +951,6 @@ void XDp_RxSetUserPixelWidth(XDp *InstancePtr, u8 UserPixelWidth); /******************* Macros (Inline Functions) Definitions ********************/ -#define XDP_TX 0 -#define XDP_RX 1 - /******************************************************************************/ /** * This is function determines whether the DisplayPort core, represented by the @@ -956,7 +962,7 @@ void XDp_RxSetUserPixelWidth(XDp *InstancePtr, u8 UserPixelWidth); * XDP_TX if the core is of type TX. * * @note C-style signature: - * u32 XDp_GetCoreType(XDp *InstancePtr) + * XDp_CoreType XDp_GetCoreType(XDp *InstancePtr) * *******************************************************************************/ #define XDp_GetCoreType(InstancePtr) ((InstancePtr)->Config.IsRx \