-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHdcp.h
66 lines (50 loc) · 1.35 KB
/
Hdcp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef __HDCP_H__
#define __HDCP_H__
/* HDCP sysfs node */
#define HDCP_FIRMWARE_LOADING "/sys/class/firmware/hdcp/loading"
#define HDCP_FIRMWARE_DATA "/sys/class/firmware/hdcp/data"
#define HDCP_ENABLE "/sys/class/misc/hdcp/enable"
#define HDCP_TRYTIMES "/sys/class/misc/hdcp/trytimes"
/* HDCP Key file path */
#define KEY_FILE "/system/vendor/firmware/hdcp.keys"
/* HDCP SRM file path */
#define SRM_FILE "/system/vendor/firmware/hdcp.srm"
/* HDCP key size */
#define HDCP_KEY_SIZE 308
/* HDCP seed size*/
#define HDCP_SEED_SIZE 2
/* HDCP authentication size */
#define HDCP_AUTH_RETRY_TIMES 20
//#define HDCP_KEY_READ_FROM_FILE
#define HDCP_KEY_READ_FROM_IDB
#define HDCP_KEY_IDB_OFFSET 62
// If key is encrypted, set true. default is false.
#define HDCP_KEY_ENCRYPTED 0
extern void Hdcp_init(void);
extern void Hdcp_enable(void);
#define HDCP2_FW_NAME "/system/vendor/firmware/hdcp2.fw"
#define HDCP2_MODULE "/system/lib/modules/hdcp2.ko"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef SUPPORT_HDCP2
int rk_hdmi_hdcp2_init(char *fw_name, char *srm_name);
int rk_hdmi_hdcp2_start(void);
void rk_hdmi_hdcp2_exit(void);
#else
static int rk_hdmi_hdcp2_init(char *fw_name, char *srm_name)
{
return 0;
}
static int rk_hdmi_hdcp2_start(void)
{
return 0;
}
static void rk_hdmi_hdcp2_exit(void)
{
}
#endif
#ifdef __cplusplus
}
#endif
#endif /*__HDCP_H__*/