Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
66 lines
1.3 KiB
C
66 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2020 MediaTek Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
|
|
#ifndef __MTK_HDCP_H__
|
|
#define __MTK_HDCP_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
#ifdef DPTX_HDCP_ENABLE
|
|
|
|
struct HDCP1X_INFO {
|
|
int MainStates;
|
|
int SubStates;
|
|
unsigned char uRetryCount;
|
|
bool bEnable:1;
|
|
bool bRepeater:1;
|
|
bool bR0Read:1;
|
|
bool bKSV_READY:1;
|
|
bool bMAX_CASCADE:1;
|
|
bool bMAX_DEVS:1;
|
|
unsigned char ubBstatus;
|
|
unsigned char ubBksv[5];
|
|
unsigned char ubAksv[5];
|
|
unsigned char ubV[20];
|
|
unsigned char ubBinfo[2];
|
|
unsigned char ubKSVFIFO[5*127];
|
|
unsigned char ubDEVICE_COUNT;
|
|
};
|
|
|
|
struct HDCP2_INFO {
|
|
bool bEnable:1;
|
|
bool bRepeater:1;
|
|
bool bReadcertrx:1;
|
|
bool bReadHprime:1;
|
|
bool bReadPairing:1;
|
|
bool bReadLprime:1;
|
|
bool bksExchangeDone:1;
|
|
bool bReadVprime:1;
|
|
uint8_t uRetryCount;
|
|
uint8_t uDeviceCount;
|
|
uint8_t uStreamIDType;
|
|
};
|
|
|
|
enum HDCP_RESULT {
|
|
AUTH_ZERO = 0,
|
|
AUTH_INIT = 1,
|
|
AUTH_PASS = 2,
|
|
AUTH_FAIL = 3,
|
|
};
|
|
|
|
#endif
|
|
#endif
|
|
|