From ff3f15acbb86394ce8fbb9bbb78439b59c316a1a Mon Sep 17 00:00:00 2001 From: Andrei-Liviu Simion Date: Tue, 20 Jan 2015 11:14:22 -0800 Subject: [PATCH] dp: rx: Added function header comments for interrupt related functions. Signed-off-by: Andrei-Liviu Simion --- .../drivers/dp/src/xdprx_intr.c | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/XilinxProcessorIPLib/drivers/dp/src/xdprx_intr.c b/XilinxProcessorIPLib/drivers/dp/src/xdprx_intr.c index a289cd5f..d4ebff8a 100644 --- a/XilinxProcessorIPLib/drivers/dp/src/xdprx_intr.c +++ b/XilinxProcessorIPLib/drivers/dp/src/xdprx_intr.c @@ -152,12 +152,38 @@ void XDprx_InterruptHandler(XDprx *InstancePtr) } } +/******************************************************************************/ +/** + * This function generates a pulse on the hot-plug-detect (HPD) line of the + * specified duration. + * + * @param InstancePtr is a pointer to the XDprx instance. + * @param DurationUs is the duration of the HPD pulse, in microseconds. + * + * @return None. + * + * @note None. + * +*******************************************************************************/ void XDprx_GenerateHpdInterrupt(XDprx *InstancePtr, u16 DurationUs) { XDprx_WriteReg(InstancePtr->Config.BaseAddr, XDPRX_HPD_INTERRUPT, (DurationUs << 16) | 0x1); } +/******************************************************************************/ +/** + * This function enables interrupts associated with the specified mask. + * + * @param InstancePtr is a pointer to the XDprx instance. + * @param Mask specifies which interrupts should be enabled. Bits set to + * 1 will enable the corresponding interrupts. + * + * @return None. + * + * @note None. + * +*******************************************************************************/ void XDprx_InterruptEnable(XDprx *InstancePtr, u32 Mask) { u32 MaskVal; @@ -169,6 +195,19 @@ void XDprx_InterruptEnable(XDprx *InstancePtr, u32 Mask) MaskVal); } +/******************************************************************************/ +/** + * This function disables interrupts associated with the specified mask. + * + * @param InstancePtr is a pointer to the XDprx instance. + * @param Mask specifies which interrupts should be disabled. Bits set to + * 1 will disable the corresponding interrupts. + * + * @return None. + * + * @note None. + * +*******************************************************************************/ void XDprx_InterruptDisable(XDprx *InstancePtr, u32 Mask) { u32 MaskVal;