162306a36Sopenharmony_ci/* SPDX-License-Identifier: MIT */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2017 Google, Inc. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Authors: 662306a36Sopenharmony_ci * Sean Paul <seanpaul@chromium.org> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#ifndef _DRM_HDCP_H_ 1062306a36Sopenharmony_ci#define _DRM_HDCP_H_ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#include <linux/types.h> 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci/* Period of hdcp checks (to ensure we're still authenticated) */ 1562306a36Sopenharmony_ci#define DRM_HDCP_CHECK_PERIOD_MS (128 * 16) 1662306a36Sopenharmony_ci#define DRM_HDCP2_CHECK_PERIOD_MS 500 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci/* Shared lengths/masks between HDMI/DVI/DisplayPort */ 1962306a36Sopenharmony_ci#define DRM_HDCP_AN_LEN 8 2062306a36Sopenharmony_ci#define DRM_HDCP_BSTATUS_LEN 2 2162306a36Sopenharmony_ci#define DRM_HDCP_KSV_LEN 5 2262306a36Sopenharmony_ci#define DRM_HDCP_RI_LEN 2 2362306a36Sopenharmony_ci#define DRM_HDCP_V_PRIME_PART_LEN 4 2462306a36Sopenharmony_ci#define DRM_HDCP_V_PRIME_NUM_PARTS 5 2562306a36Sopenharmony_ci#define DRM_HDCP_NUM_DOWNSTREAM(x) (x & 0x7f) 2662306a36Sopenharmony_ci#define DRM_HDCP_MAX_CASCADE_EXCEEDED(x) (x & BIT(3)) 2762306a36Sopenharmony_ci#define DRM_HDCP_MAX_DEVICE_EXCEEDED(x) (x & BIT(7)) 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* Slave address for the HDCP registers in the receiver */ 3062306a36Sopenharmony_ci#define DRM_HDCP_DDC_ADDR 0x3A 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci/* Value to use at the end of the SHA-1 bytestream used for repeaters */ 3362306a36Sopenharmony_ci#define DRM_HDCP_SHA1_TERMINATOR 0x80 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci/* HDCP register offsets for HDMI/DVI devices */ 3662306a36Sopenharmony_ci#define DRM_HDCP_DDC_BKSV 0x00 3762306a36Sopenharmony_ci#define DRM_HDCP_DDC_RI_PRIME 0x08 3862306a36Sopenharmony_ci#define DRM_HDCP_DDC_AKSV 0x10 3962306a36Sopenharmony_ci#define DRM_HDCP_DDC_AN 0x18 4062306a36Sopenharmony_ci#define DRM_HDCP_DDC_V_PRIME(h) (0x20 + h * 4) 4162306a36Sopenharmony_ci#define DRM_HDCP_DDC_BCAPS 0x40 4262306a36Sopenharmony_ci#define DRM_HDCP_DDC_BCAPS_REPEATER_PRESENT BIT(6) 4362306a36Sopenharmony_ci#define DRM_HDCP_DDC_BCAPS_KSV_FIFO_READY BIT(5) 4462306a36Sopenharmony_ci#define DRM_HDCP_DDC_BSTATUS 0x41 4562306a36Sopenharmony_ci#define DRM_HDCP_DDC_KSV_FIFO 0x43 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ci#define DRM_HDCP_1_4_SRM_ID 0x8 4862306a36Sopenharmony_ci#define DRM_HDCP_1_4_VRL_LENGTH_SIZE 3 4962306a36Sopenharmony_ci#define DRM_HDCP_1_4_DCP_SIG_SIZE 40 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci/* Protocol message definition for HDCP2.2 specification */ 5262306a36Sopenharmony_ci/* 5362306a36Sopenharmony_ci * Protected content streams are classified into 2 types: 5462306a36Sopenharmony_ci * - Type0: Can be transmitted with HDCP 1.4+ 5562306a36Sopenharmony_ci * - Type1: Can be transmitted with HDCP 2.2+ 5662306a36Sopenharmony_ci */ 5762306a36Sopenharmony_ci#define HDCP_STREAM_TYPE0 0x00 5862306a36Sopenharmony_ci#define HDCP_STREAM_TYPE1 0x01 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ci/* HDCP2.2 Msg IDs */ 6162306a36Sopenharmony_ci#define HDCP_2_2_NULL_MSG 1 6262306a36Sopenharmony_ci#define HDCP_2_2_AKE_INIT 2 6362306a36Sopenharmony_ci#define HDCP_2_2_AKE_SEND_CERT 3 6462306a36Sopenharmony_ci#define HDCP_2_2_AKE_NO_STORED_KM 4 6562306a36Sopenharmony_ci#define HDCP_2_2_AKE_STORED_KM 5 6662306a36Sopenharmony_ci#define HDCP_2_2_AKE_SEND_HPRIME 7 6762306a36Sopenharmony_ci#define HDCP_2_2_AKE_SEND_PAIRING_INFO 8 6862306a36Sopenharmony_ci#define HDCP_2_2_LC_INIT 9 6962306a36Sopenharmony_ci#define HDCP_2_2_LC_SEND_LPRIME 10 7062306a36Sopenharmony_ci#define HDCP_2_2_SKE_SEND_EKS 11 7162306a36Sopenharmony_ci#define HDCP_2_2_REP_SEND_RECVID_LIST 12 7262306a36Sopenharmony_ci#define HDCP_2_2_REP_SEND_ACK 15 7362306a36Sopenharmony_ci#define HDCP_2_2_REP_STREAM_MANAGE 16 7462306a36Sopenharmony_ci#define HDCP_2_2_REP_STREAM_READY 17 7562306a36Sopenharmony_ci 7662306a36Sopenharmony_ci#define HDCP_2_2_RTX_LEN 8 7762306a36Sopenharmony_ci#define HDCP_2_2_RRX_LEN 8 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ci#define HDCP_2_2_K_PUB_RX_MOD_N_LEN 128 8062306a36Sopenharmony_ci#define HDCP_2_2_K_PUB_RX_EXP_E_LEN 3 8162306a36Sopenharmony_ci#define HDCP_2_2_K_PUB_RX_LEN (HDCP_2_2_K_PUB_RX_MOD_N_LEN + \ 8262306a36Sopenharmony_ci HDCP_2_2_K_PUB_RX_EXP_E_LEN) 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci#define HDCP_2_2_DCP_LLC_SIG_LEN 384 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci#define HDCP_2_2_E_KPUB_KM_LEN 128 8762306a36Sopenharmony_ci#define HDCP_2_2_E_KH_KM_M_LEN (16 + 16) 8862306a36Sopenharmony_ci#define HDCP_2_2_H_PRIME_LEN 32 8962306a36Sopenharmony_ci#define HDCP_2_2_E_KH_KM_LEN 16 9062306a36Sopenharmony_ci#define HDCP_2_2_RN_LEN 8 9162306a36Sopenharmony_ci#define HDCP_2_2_L_PRIME_LEN 32 9262306a36Sopenharmony_ci#define HDCP_2_2_E_DKEY_KS_LEN 16 9362306a36Sopenharmony_ci#define HDCP_2_2_RIV_LEN 8 9462306a36Sopenharmony_ci#define HDCP_2_2_SEQ_NUM_LEN 3 9562306a36Sopenharmony_ci#define HDCP_2_2_V_PRIME_HALF_LEN (HDCP_2_2_L_PRIME_LEN / 2) 9662306a36Sopenharmony_ci#define HDCP_2_2_RECEIVER_ID_LEN DRM_HDCP_KSV_LEN 9762306a36Sopenharmony_ci#define HDCP_2_2_MAX_DEVICE_COUNT 31 9862306a36Sopenharmony_ci#define HDCP_2_2_RECEIVER_IDS_MAX_LEN (HDCP_2_2_RECEIVER_ID_LEN * \ 9962306a36Sopenharmony_ci HDCP_2_2_MAX_DEVICE_COUNT) 10062306a36Sopenharmony_ci#define HDCP_2_2_MPRIME_LEN 32 10162306a36Sopenharmony_ci 10262306a36Sopenharmony_ci/* Following Macros take a byte at a time for bit(s) masking */ 10362306a36Sopenharmony_ci/* 10462306a36Sopenharmony_ci * TODO: HDCP_2_2_MAX_CONTENT_STREAMS_CNT is based upon actual 10562306a36Sopenharmony_ci * H/W MST streams capacity. 10662306a36Sopenharmony_ci * This required to be moved out to platform specific header. 10762306a36Sopenharmony_ci */ 10862306a36Sopenharmony_ci#define HDCP_2_2_MAX_CONTENT_STREAMS_CNT 4 10962306a36Sopenharmony_ci#define HDCP_2_2_TXCAP_MASK_LEN 2 11062306a36Sopenharmony_ci#define HDCP_2_2_RXCAPS_LEN 3 11162306a36Sopenharmony_ci#define HDCP_2_2_RX_REPEATER(x) ((x) & BIT(0)) 11262306a36Sopenharmony_ci#define HDCP_2_2_DP_HDCP_CAPABLE(x) ((x) & BIT(1)) 11362306a36Sopenharmony_ci#define HDCP_2_2_RXINFO_LEN 2 11462306a36Sopenharmony_ci 11562306a36Sopenharmony_ci/* HDCP1.x compliant device in downstream */ 11662306a36Sopenharmony_ci#define HDCP_2_2_HDCP1_DEVICE_CONNECTED(x) ((x) & BIT(0)) 11762306a36Sopenharmony_ci 11862306a36Sopenharmony_ci/* HDCP2.0 Compliant repeater in downstream */ 11962306a36Sopenharmony_ci#define HDCP_2_2_HDCP_2_0_REP_CONNECTED(x) ((x) & BIT(1)) 12062306a36Sopenharmony_ci#define HDCP_2_2_MAX_CASCADE_EXCEEDED(x) ((x) & BIT(2)) 12162306a36Sopenharmony_ci#define HDCP_2_2_MAX_DEVS_EXCEEDED(x) ((x) & BIT(3)) 12262306a36Sopenharmony_ci#define HDCP_2_2_DEV_COUNT_LO(x) (((x) & (0xF << 4)) >> 4) 12362306a36Sopenharmony_ci#define HDCP_2_2_DEV_COUNT_HI(x) ((x) & BIT(0)) 12462306a36Sopenharmony_ci#define HDCP_2_2_DEPTH(x) (((x) & (0x7 << 1)) >> 1) 12562306a36Sopenharmony_ci 12662306a36Sopenharmony_cistruct hdcp2_cert_rx { 12762306a36Sopenharmony_ci u8 receiver_id[HDCP_2_2_RECEIVER_ID_LEN]; 12862306a36Sopenharmony_ci u8 kpub_rx[HDCP_2_2_K_PUB_RX_LEN]; 12962306a36Sopenharmony_ci u8 reserved[2]; 13062306a36Sopenharmony_ci u8 dcp_signature[HDCP_2_2_DCP_LLC_SIG_LEN]; 13162306a36Sopenharmony_ci} __packed; 13262306a36Sopenharmony_ci 13362306a36Sopenharmony_cistruct hdcp2_streamid_type { 13462306a36Sopenharmony_ci u8 stream_id; 13562306a36Sopenharmony_ci u8 stream_type; 13662306a36Sopenharmony_ci} __packed; 13762306a36Sopenharmony_ci 13862306a36Sopenharmony_ci/* 13962306a36Sopenharmony_ci * The TxCaps field specified in the HDCP HDMI, DP specs 14062306a36Sopenharmony_ci * This field is big endian as specified in the errata. 14162306a36Sopenharmony_ci */ 14262306a36Sopenharmony_cistruct hdcp2_tx_caps { 14362306a36Sopenharmony_ci /* Transmitter must set this to 0x2 */ 14462306a36Sopenharmony_ci u8 version; 14562306a36Sopenharmony_ci 14662306a36Sopenharmony_ci /* Reserved for HDCP and DP Spec. Read as Zero */ 14762306a36Sopenharmony_ci u8 tx_cap_mask[HDCP_2_2_TXCAP_MASK_LEN]; 14862306a36Sopenharmony_ci} __packed; 14962306a36Sopenharmony_ci 15062306a36Sopenharmony_ci/* Main structures for HDCP2.2 protocol communication */ 15162306a36Sopenharmony_cistruct hdcp2_ake_init { 15262306a36Sopenharmony_ci u8 msg_id; 15362306a36Sopenharmony_ci u8 r_tx[HDCP_2_2_RTX_LEN]; 15462306a36Sopenharmony_ci struct hdcp2_tx_caps tx_caps; 15562306a36Sopenharmony_ci} __packed; 15662306a36Sopenharmony_ci 15762306a36Sopenharmony_cistruct hdcp2_ake_send_cert { 15862306a36Sopenharmony_ci u8 msg_id; 15962306a36Sopenharmony_ci struct hdcp2_cert_rx cert_rx; 16062306a36Sopenharmony_ci u8 r_rx[HDCP_2_2_RRX_LEN]; 16162306a36Sopenharmony_ci u8 rx_caps[HDCP_2_2_RXCAPS_LEN]; 16262306a36Sopenharmony_ci} __packed; 16362306a36Sopenharmony_ci 16462306a36Sopenharmony_cistruct hdcp2_ake_no_stored_km { 16562306a36Sopenharmony_ci u8 msg_id; 16662306a36Sopenharmony_ci u8 e_kpub_km[HDCP_2_2_E_KPUB_KM_LEN]; 16762306a36Sopenharmony_ci} __packed; 16862306a36Sopenharmony_ci 16962306a36Sopenharmony_cistruct hdcp2_ake_stored_km { 17062306a36Sopenharmony_ci u8 msg_id; 17162306a36Sopenharmony_ci u8 e_kh_km_m[HDCP_2_2_E_KH_KM_M_LEN]; 17262306a36Sopenharmony_ci} __packed; 17362306a36Sopenharmony_ci 17462306a36Sopenharmony_cistruct hdcp2_ake_send_hprime { 17562306a36Sopenharmony_ci u8 msg_id; 17662306a36Sopenharmony_ci u8 h_prime[HDCP_2_2_H_PRIME_LEN]; 17762306a36Sopenharmony_ci} __packed; 17862306a36Sopenharmony_ci 17962306a36Sopenharmony_cistruct hdcp2_ake_send_pairing_info { 18062306a36Sopenharmony_ci u8 msg_id; 18162306a36Sopenharmony_ci u8 e_kh_km[HDCP_2_2_E_KH_KM_LEN]; 18262306a36Sopenharmony_ci} __packed; 18362306a36Sopenharmony_ci 18462306a36Sopenharmony_cistruct hdcp2_lc_init { 18562306a36Sopenharmony_ci u8 msg_id; 18662306a36Sopenharmony_ci u8 r_n[HDCP_2_2_RN_LEN]; 18762306a36Sopenharmony_ci} __packed; 18862306a36Sopenharmony_ci 18962306a36Sopenharmony_cistruct hdcp2_lc_send_lprime { 19062306a36Sopenharmony_ci u8 msg_id; 19162306a36Sopenharmony_ci u8 l_prime[HDCP_2_2_L_PRIME_LEN]; 19262306a36Sopenharmony_ci} __packed; 19362306a36Sopenharmony_ci 19462306a36Sopenharmony_cistruct hdcp2_ske_send_eks { 19562306a36Sopenharmony_ci u8 msg_id; 19662306a36Sopenharmony_ci u8 e_dkey_ks[HDCP_2_2_E_DKEY_KS_LEN]; 19762306a36Sopenharmony_ci u8 riv[HDCP_2_2_RIV_LEN]; 19862306a36Sopenharmony_ci} __packed; 19962306a36Sopenharmony_ci 20062306a36Sopenharmony_cistruct hdcp2_rep_send_receiverid_list { 20162306a36Sopenharmony_ci u8 msg_id; 20262306a36Sopenharmony_ci u8 rx_info[HDCP_2_2_RXINFO_LEN]; 20362306a36Sopenharmony_ci u8 seq_num_v[HDCP_2_2_SEQ_NUM_LEN]; 20462306a36Sopenharmony_ci u8 v_prime[HDCP_2_2_V_PRIME_HALF_LEN]; 20562306a36Sopenharmony_ci u8 receiver_ids[HDCP_2_2_RECEIVER_IDS_MAX_LEN]; 20662306a36Sopenharmony_ci} __packed; 20762306a36Sopenharmony_ci 20862306a36Sopenharmony_cistruct hdcp2_rep_send_ack { 20962306a36Sopenharmony_ci u8 msg_id; 21062306a36Sopenharmony_ci u8 v[HDCP_2_2_V_PRIME_HALF_LEN]; 21162306a36Sopenharmony_ci} __packed; 21262306a36Sopenharmony_ci 21362306a36Sopenharmony_cistruct hdcp2_rep_stream_manage { 21462306a36Sopenharmony_ci u8 msg_id; 21562306a36Sopenharmony_ci u8 seq_num_m[HDCP_2_2_SEQ_NUM_LEN]; 21662306a36Sopenharmony_ci __be16 k; 21762306a36Sopenharmony_ci struct hdcp2_streamid_type streams[HDCP_2_2_MAX_CONTENT_STREAMS_CNT]; 21862306a36Sopenharmony_ci} __packed; 21962306a36Sopenharmony_ci 22062306a36Sopenharmony_cistruct hdcp2_rep_stream_ready { 22162306a36Sopenharmony_ci u8 msg_id; 22262306a36Sopenharmony_ci u8 m_prime[HDCP_2_2_MPRIME_LEN]; 22362306a36Sopenharmony_ci} __packed; 22462306a36Sopenharmony_ci 22562306a36Sopenharmony_ci/* HDCP2.2 TIMEOUTs in mSec */ 22662306a36Sopenharmony_ci#define HDCP_2_2_CERT_TIMEOUT_MS 100 22762306a36Sopenharmony_ci#define HDCP_2_2_DP_CERT_READ_TIMEOUT_MS 110 22862306a36Sopenharmony_ci#define HDCP_2_2_HPRIME_NO_PAIRED_TIMEOUT_MS 1000 22962306a36Sopenharmony_ci#define HDCP_2_2_HPRIME_PAIRED_TIMEOUT_MS 200 23062306a36Sopenharmony_ci#define HDCP_2_2_DP_HPRIME_READ_TIMEOUT_MS 7 23162306a36Sopenharmony_ci#define HDCP_2_2_PAIRING_TIMEOUT_MS 200 23262306a36Sopenharmony_ci#define HDCP_2_2_DP_PAIRING_READ_TIMEOUT_MS 5 23362306a36Sopenharmony_ci#define HDCP_2_2_HDMI_LPRIME_TIMEOUT_MS 20 23462306a36Sopenharmony_ci#define HDCP_2_2_DP_LPRIME_TIMEOUT_MS 16 23562306a36Sopenharmony_ci#define HDCP_2_2_RECVID_LIST_TIMEOUT_MS 3000 23662306a36Sopenharmony_ci#define HDCP_2_2_STREAM_READY_TIMEOUT_MS 100 23762306a36Sopenharmony_ci 23862306a36Sopenharmony_ci/* HDMI HDCP2.2 Register Offsets */ 23962306a36Sopenharmony_ci#define HDCP_2_2_HDMI_REG_VER_OFFSET 0x50 24062306a36Sopenharmony_ci#define HDCP_2_2_HDMI_REG_WR_MSG_OFFSET 0x60 24162306a36Sopenharmony_ci#define HDCP_2_2_HDMI_REG_RXSTATUS_OFFSET 0x70 24262306a36Sopenharmony_ci#define HDCP_2_2_HDMI_REG_RD_MSG_OFFSET 0x80 24362306a36Sopenharmony_ci#define HDCP_2_2_HDMI_REG_DBG_OFFSET 0xC0 24462306a36Sopenharmony_ci 24562306a36Sopenharmony_ci#define HDCP_2_2_HDMI_SUPPORT_MASK BIT(2) 24662306a36Sopenharmony_ci#define HDCP_2_2_RX_CAPS_VERSION_VAL 0x02 24762306a36Sopenharmony_ci#define HDCP_2_2_SEQ_NUM_MAX 0xFFFFFF 24862306a36Sopenharmony_ci#define HDCP_2_2_DELAY_BEFORE_ENCRYPTION_EN 200 24962306a36Sopenharmony_ci 25062306a36Sopenharmony_ci/* Below macros take a byte at a time and mask the bit(s) */ 25162306a36Sopenharmony_ci#define HDCP_2_2_HDMI_RXSTATUS_LEN 2 25262306a36Sopenharmony_ci#define HDCP_2_2_HDMI_RXSTATUS_MSG_SZ_HI(x) ((x) & 0x3) 25362306a36Sopenharmony_ci#define HDCP_2_2_HDMI_RXSTATUS_READY(x) ((x) & BIT(2)) 25462306a36Sopenharmony_ci#define HDCP_2_2_HDMI_RXSTATUS_REAUTH_REQ(x) ((x) & BIT(3)) 25562306a36Sopenharmony_ci 25662306a36Sopenharmony_ci/* 25762306a36Sopenharmony_ci * Helper functions to convert 24bit big endian hdcp sequence number to 25862306a36Sopenharmony_ci * host format and back 25962306a36Sopenharmony_ci */ 26062306a36Sopenharmony_cistatic inline 26162306a36Sopenharmony_ciu32 drm_hdcp_be24_to_cpu(const u8 seq_num[HDCP_2_2_SEQ_NUM_LEN]) 26262306a36Sopenharmony_ci{ 26362306a36Sopenharmony_ci return (u32)(seq_num[2] | seq_num[1] << 8 | seq_num[0] << 16); 26462306a36Sopenharmony_ci} 26562306a36Sopenharmony_ci 26662306a36Sopenharmony_cistatic inline 26762306a36Sopenharmony_civoid drm_hdcp_cpu_to_be24(u8 seq_num[HDCP_2_2_SEQ_NUM_LEN], u32 val) 26862306a36Sopenharmony_ci{ 26962306a36Sopenharmony_ci seq_num[0] = val >> 16; 27062306a36Sopenharmony_ci seq_num[1] = val >> 8; 27162306a36Sopenharmony_ci seq_num[2] = val; 27262306a36Sopenharmony_ci} 27362306a36Sopenharmony_ci 27462306a36Sopenharmony_ci#define DRM_HDCP_SRM_GEN1_MAX_BYTES (5 * 1024) 27562306a36Sopenharmony_ci#define DRM_HDCP_1_4_SRM_ID 0x8 27662306a36Sopenharmony_ci#define DRM_HDCP_SRM_ID_MASK (0xF << 4) 27762306a36Sopenharmony_ci#define DRM_HDCP_1_4_VRL_LENGTH_SIZE 3 27862306a36Sopenharmony_ci#define DRM_HDCP_1_4_DCP_SIG_SIZE 40 27962306a36Sopenharmony_ci#define DRM_HDCP_2_SRM_ID 0x9 28062306a36Sopenharmony_ci#define DRM_HDCP_2_INDICATOR 0x1 28162306a36Sopenharmony_ci#define DRM_HDCP_2_INDICATOR_MASK 0xF 28262306a36Sopenharmony_ci#define DRM_HDCP_2_VRL_LENGTH_SIZE 3 28362306a36Sopenharmony_ci#define DRM_HDCP_2_DCP_SIG_SIZE 384 28462306a36Sopenharmony_ci#define DRM_HDCP_2_NO_OF_DEV_PLUS_RESERVED_SZ 4 28562306a36Sopenharmony_ci#define DRM_HDCP_2_KSV_COUNT_2_LSBITS(byte) (((byte) & 0xC0) >> 6) 28662306a36Sopenharmony_ci 28762306a36Sopenharmony_cistruct hdcp_srm_header { 28862306a36Sopenharmony_ci u8 srm_id; 28962306a36Sopenharmony_ci u8 reserved; 29062306a36Sopenharmony_ci __be16 srm_version; 29162306a36Sopenharmony_ci u8 srm_gen_no; 29262306a36Sopenharmony_ci} __packed; 29362306a36Sopenharmony_ci 29462306a36Sopenharmony_ci/* Content Type classification for HDCP2.2 vs others */ 29562306a36Sopenharmony_ci#define DRM_MODE_HDCP_CONTENT_TYPE0 0 29662306a36Sopenharmony_ci#define DRM_MODE_HDCP_CONTENT_TYPE1 1 29762306a36Sopenharmony_ci 29862306a36Sopenharmony_ci#endif 299