Commit graph

7 commits

Author SHA1 Message Date
Andrei-Liviu Simion
db75f68f1f dp: rx: Capture interrupt status from INTERRUPT_CAUSE bits 8 to 31.
Previously, INTERRUPT_CAUSE bits 8 to 31 were being lost due to the variables
assigned having type u8.

This fix now uses masking on the interrupts as the condition to run an interrupt
handler rather than assigning the mask result to a new variable and using the
variable as a boolean condition.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-27 12:57:08 +05:30
Andrei-Liviu Simion
b45d77cbe5 dp: rx: Added audio info and extension packet received interrupt handlers.
XDp_RxSetIntrInfoPktHandler and XDp_RxSetIntrExtPktHandler.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:40 +05:30
Andrei-Liviu Simion
80eb9a43cd dp: Added TX/RX assertions on all API functions.
Functions now assert the core context upon which they operate.

XDp_Tx* functions are meant to be used with the DisplayPort core in the TX mode
of operation.
XDp_Rx* functions are meant to be used with the DisplayPort core in the RX mode
of operation.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:37 +05:30
Andrei-Liviu Simion
7b382d036f dp: TX/RX core type should operate on the XDp structure pointer.
Rather than on the configuration structure pointer.

This makes it cleaner and easier to use as this function is an API function.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:35 +05:30
Andrei-Liviu Simion
e394c31035 dp: Added initial modification history comment.
Added note to the initial release that the TX code was taken from the dptx
driver.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:34 +05:30
Andrei-Liviu Simion
e81ba1fde6 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>
2015-04-26 10:34:31 +05:30
Andrei-Liviu Simion
1a280fdfc7 dp: Unified naming of xdptx and xdprx to xdp.
As per Xilinx standalone coding guidelines.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
2015-04-26 10:34:21 +05:30
Renamed from XilinxProcessorIPLib/drivers/dp/src/xdprx_intr.c (Browse further)