![Xilinx HDMI 1.4 Product Manual Download Page 93](http://html1.mh-extra.com/html/xilinx/hdmi-1-4/hdmi-1-4_product-manual_3383632093.webp)
HDMI 1.4/2.0 TX Subsystem
93
PG235 October 4, 2017
Appendix
C:
Application Software Development
To initialize the subsystem, call the following two API functions:
XV_HdmiTxSs_Config* XV_HdmiTxSs_LookupConfig(u32 DeviceId);
int XV_HdmiTxSs_CfgInitialize(XV_HdmiTxSs *InstancePtr,
XV_HdmiTxSs_Config *CfgPtr,
u32 EffectiveAddr);
The Device ID can be found in
xparameters.h
:
XPAR_[HDMI TX Subsystem Instance Name in IPI]_DEVICE_ID
5. Each interrupt source has an associated ISR defined in the subsystem. Register the ISR
with the system interrupt controller and enable the interrupt.
int XIntc_Connect(XIntc *InstancePtr,
u8 Id,
XInterruptHandler Handler,
void
*CallBackRef);
void XIntc_Enable(XIntc *InstancePtr,
u8 Id);
Where ID can be found in
xparameters.h
.
HDCP TX Overview
The HDMI 1.4/2.0 Transmitter Subsystem driver is responsible for combining HDCP 1.4 and
HDCP 2.2 drivers APIs into a single common API for use by the user level application. The
common HDCP driver API is able to handle the following HDCP configurations: HDCP 1.4
only, HDCP 2.2 only, and both. When both protocols are enabled, the common HDCP driver
ensures that only one is active at any given time.
HDCP TX Driver Integration
This section describes the steps required to initialize and run the HDCP TX. The application
should call the functions roughly in the order specified to ensure that the driver operates
properly. When only a single HDCP protocol is enabled, either 1.4 or 2.2, a subset of the
function calls might be needed.
1. Load the HDCP production keys into the HDMI subsystem. This function needs to be
called for each key that is loaded. If HDCP 1.4 and 2.2 are enabled all the keys must be
loaded, otherwise a subset of the keys are loaded. Note that the byte arrays used to
store the key octet strings for HDCP are defined in big endian byte order.
°
XV_HdmiTxSs_HdcpSetKey
- XV_HDMITXSS_KEY_HDCP14
- XV_HDMITXSS_KEY_HDCP22_LC128 (128-bit DCP Licensed Constant)
2. Initialize the HDMI 1.4/2.0 Transmitter Subsystem driver after the HDCP keys have been
loaded. Initializing the subsystem begins the HDCP 1.4/2.2 drivers internally.
3. Connect the HDCP interrupt handlers to the interrupt controller interrupt ID: