/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2019 MediaTek Inc.
 */


#ifndef _HDMI_TA_H_
#define _HDMI_TA_H_

#define TZ_TA_HDMI_NAME "HDMI TA"
#define TZ_TA_HDMI_UUID "eaf800b0-da1b-11e2-a28f-0800200c9a66"
#define PTA_HDMITX_UUID   {0xeaf800b0, 0xda1b, 0x11e2, \
	{0xa2, 0x8f, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66} }

enum HDMI_TA_SERVICE_CMD_T {
	HDMI_TA_WRITE_REG = 0,
	HDMI_TA_DPI1_WRITE_REG,
	HDMI_TA_INSTALL_HDCP_KEY,
	HDMI_TA_LOAD_HDCP_KEY,
	HDMI_TA_GET_HDCP_AKSV,
	HDMI_TA_HDCP_ENC_EN,
	HDMI_TA_HDCP_RST,
	HDMI_TA_VID_UNMUTE,
	HDMI_TA_AUD_UNMUTE,
	HDMI_TA_PROTECT_HDMIREG,
	HDMI_TA_LOAD_ROM,
	HDMI_TA_HDCP_FAIL,
	HDMI_TA_TEST_HDCP_VERSION,
	HDMI_TA_SET_LOG_LEVEL,
	HDMI_TA_HDCP_OFF,
	HDMI_TA_READ_STATUS,
	HDMI_TA_LOAD_RAM,
	HDMI_TA_SECURE_REG_ENTRY,
	HDMI_TA_GET_EFUSE,
	HDMI_TA_GET_HDR10p_VSIF_Info,
	HDMI_TA_GET_HDCP_TYPE,
	HDMI_TA_LOAD_EMP,
};

enum TA_RETURN_HDMI_HDCP_STATE {
	TA_RETURN_HDCP_STATE_ENC_EN = 0,
	TA_RETURN_HDCP_STATE_ENC_FAIL,
	TA_RETURN_HDCP_STATE_ENC_UNKNOWN,
};

extern unsigned char vTaGetHdcpStatus(void);
extern unsigned char vTaGetHdmiStatus(void);

#endif
