linux/drivers/gpu/drm/i915/display/intel_hdcp_regs.h

/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2022 Intel Corporation
 */

#ifndef __INTEL_HDCP_REGS_H__
#define __INTEL_HDCP_REGS_H__

#include "intel_display_reg_defs.h"

#define TRANS_HDCP(__i915)

/* HDCP Key Registers */
#define HDCP_KEY_CONF
#define HDCP_AKSV_SEND_TRIGGER
#define HDCP_CLEAR_KEYS_TRIGGER
#define HDCP_KEY_LOAD_TRIGGER
#define HDCP_KEY_STATUS
#define HDCP_FUSE_IN_PROGRESS
#define HDCP_FUSE_ERROR
#define HDCP_FUSE_DONE
#define HDCP_KEY_LOAD_STATUS
#define HDCP_KEY_LOAD_DONE
#define HDCP_AKSV_LO
#define HDCP_AKSV_HI

/* HDCP Repeater Registers */
#define HDCP_REP_CTL
#define HDCP_TRANSA_REP_PRESENT
#define HDCP_TRANSB_REP_PRESENT
#define HDCP_TRANSC_REP_PRESENT
#define HDCP_TRANSD_REP_PRESENT
#define HDCP_DDIB_REP_PRESENT
#define HDCP_DDIA_REP_PRESENT
#define HDCP_DDIC_REP_PRESENT
#define HDCP_DDID_REP_PRESENT
#define HDCP_DDIF_REP_PRESENT
#define HDCP_DDIE_REP_PRESENT
#define HDCP_TRANSA_SHA1_M0
#define HDCP_TRANSB_SHA1_M0
#define HDCP_TRANSC_SHA1_M0
#define HDCP_TRANSD_SHA1_M0
#define HDCP_DDIB_SHA1_M0
#define HDCP_DDIA_SHA1_M0
#define HDCP_DDIC_SHA1_M0
#define HDCP_DDID_SHA1_M0
#define HDCP_DDIF_SHA1_M0
#define HDCP_DDIE_SHA1_M0
#define HDCP_SHA1_BUSY
#define HDCP_SHA1_READY
#define HDCP_SHA1_COMPLETE
#define HDCP_SHA1_V_MATCH
#define HDCP_SHA1_TEXT_32
#define HDCP_SHA1_COMPLETE_HASH
#define HDCP_SHA1_TEXT_24
#define HDCP_SHA1_TEXT_16
#define HDCP_SHA1_TEXT_8
#define HDCP_SHA1_TEXT_0
#define HDCP_SHA_V_PRIME_H0
#define HDCP_SHA_V_PRIME_H1
#define HDCP_SHA_V_PRIME_H2
#define HDCP_SHA_V_PRIME_H3
#define HDCP_SHA_V_PRIME_H4
#define HDCP_SHA_V_PRIME(h)
#define HDCP_SHA_TEXT

/* HDCP Auth Registers */
#define _PORTA_HDCP_AUTHENC
#define _PORTB_HDCP_AUTHENC
#define _PORTC_HDCP_AUTHENC
#define _PORTD_HDCP_AUTHENC
#define _PORTE_HDCP_AUTHENC
#define _PORTF_HDCP_AUTHENC
#define _PORT_HDCP_AUTHENC(port, x)
#define PORT_HDCP_CONF(port)
#define _TRANSA_HDCP_CONF
#define _TRANSB_HDCP_CONF
#define TRANS_HDCP_CONF(trans)
#define HDCP_CONF(dev_priv, trans, port)

#define HDCP_CONF_CAPTURE_AN
#define HDCP_CONF_AUTH_AND_ENC
#define PORT_HDCP_ANINIT(port)
#define _TRANSA_HDCP_ANINIT
#define _TRANSB_HDCP_ANINIT
#define TRANS_HDCP_ANINIT(trans)
#define HDCP_ANINIT(dev_priv, trans, port)

#define PORT_HDCP_ANLO(port)
#define _TRANSA_HDCP_ANLO
#define _TRANSB_HDCP_ANLO
#define TRANS_HDCP_ANLO(trans)
#define HDCP_ANLO(dev_priv, trans, port)

#define PORT_HDCP_ANHI(port)
#define _TRANSA_HDCP_ANHI
#define _TRANSB_HDCP_ANHI
#define TRANS_HDCP_ANHI(trans)
#define HDCP_ANHI(dev_priv, trans, port)

#define PORT_HDCP_BKSVLO(port)
#define _TRANSA_HDCP_BKSVLO
#define _TRANSB_HDCP_BKSVLO
#define TRANS_HDCP_BKSVLO(trans)
#define HDCP_BKSVLO(dev_priv, trans, port)

#define PORT_HDCP_BKSVHI(port)
#define _TRANSA_HDCP_BKSVHI
#define _TRANSB_HDCP_BKSVHI
#define TRANS_HDCP_BKSVHI(trans)
#define HDCP_BKSVHI(dev_priv, trans, port)

#define PORT_HDCP_RPRIME(port)
#define _TRANSA_HDCP_RPRIME
#define _TRANSB_HDCP_RPRIME
#define TRANS_HDCP_RPRIME(trans)
#define HDCP_RPRIME(dev_priv, trans, port)

#define PORT_HDCP_STATUS(port)
#define _TRANSA_HDCP_STATUS
#define _TRANSB_HDCP_STATUS
#define TRANS_HDCP_STATUS(trans)
#define HDCP_STATUS(dev_priv, trans, port)

#define HDCP_STATUS_STREAM_A_ENC
#define HDCP_STATUS_STREAM_B_ENC
#define HDCP_STATUS_STREAM_C_ENC
#define HDCP_STATUS_STREAM_D_ENC
#define HDCP_STATUS_AUTH
#define HDCP_STATUS_ENC
#define HDCP_STATUS_RI_MATCH
#define HDCP_STATUS_R0_READY
#define HDCP_STATUS_AN_READY
#define HDCP_STATUS_CIPHER
#define HDCP_STATUS_FRAME_CNT(x)

/* HDCP2.2 Registers */
#define _PORTA_HDCP2_BASE
#define _PORTB_HDCP2_BASE
#define _PORTC_HDCP2_BASE
#define _PORTD_HDCP2_BASE
#define _PORTE_HDCP2_BASE
#define _PORTF_HDCP2_BASE
#define _PORT_HDCP2_BASE(port, x)

#define PORT_HDCP2_AUTH(port)
#define _TRANSA_HDCP2_AUTH
#define _TRANSB_HDCP2_AUTH
#define TRANS_HDCP2_AUTH(trans)
#define AUTH_LINK_AUTHENTICATED
#define AUTH_LINK_TYPE
#define AUTH_FORCE_CLR_INPUTCTR
#define AUTH_CLR_KEYS
#define HDCP2_AUTH(dev_priv, trans, port)

#define PORT_HDCP2_CTL(port)
#define _TRANSA_HDCP2_CTL
#define _TRANSB_HDCP2_CTL
#define TRANS_HDCP2_CTL(trans)
#define CTL_LINK_ENCRYPTION_REQ
#define HDCP2_CTL(dev_priv, trans, port)

#define PORT_HDCP2_STATUS(port)
#define _TRANSA_HDCP2_STATUS
#define _TRANSB_HDCP2_STATUS
#define TRANS_HDCP2_STATUS(trans)
#define LINK_TYPE_STATUS
#define LINK_AUTH_STATUS
#define LINK_ENCRYPTION_STATUS
#define HDCP2_STATUS(dev_priv, trans, port)

#define _PIPEA_HDCP2_STREAM_STATUS
#define _PIPEB_HDCP2_STREAM_STATUS
#define _PIPEC_HDCP2_STREAM_STATUS
#define _PIPED_HDCP2_STREAM_STATUS
#define PIPE_HDCP2_STREAM_STATUS(pipe)

#define _TRANSA_HDCP2_STREAM_STATUS
#define _TRANSB_HDCP2_STREAM_STATUS
#define TRANS_HDCP2_STREAM_STATUS(trans)
#define STREAM_ENCRYPTION_STATUS
#define STREAM_TYPE_STATUS
#define HDCP2_STREAM_STATUS(dev_priv, trans, port)

#define _PORTA_HDCP2_AUTH_STREAM
#define _PORTB_HDCP2_AUTH_STREAM
#define PORT_HDCP2_AUTH_STREAM(port)
#define _TRANSA_HDCP2_AUTH_STREAM
#define _TRANSB_HDCP2_AUTH_STREAM
#define TRANS_HDCP2_AUTH_STREAM(trans)
#define AUTH_STREAM_TYPE
#define HDCP2_AUTH_STREAM(dev_priv, trans, port)

#endif /* __INTEL_HDCP_REGS_H__ */