summaryrefslogtreecommitdiffstats
path: root/include/linux/tsec.h
blob: 055e86f9d3a2d6eed0079139ecc471dac1cd4d67 (plain) (blame)
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
/*
 *
 * Copyright (c) 2016-2018, NVIDIA CORPORATION, All rights reserved.
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * 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 __LINUX_PUBLIC_TSEC_H
#define __LINUX_PUBLIC_TSEC_H

extern struct hdcp_context_t *hdcp_context;

#ifdef CONFIG_DRM_TEGRA
static inline int tsec_hdcp_create_context(struct hdcp_context_t *hdcp_context)
{
	return -ENOENT;
}

static inline int tsec_hdcp_free_context(struct hdcp_context_t *hdcp_context)
{
	return -ENOENT;
}

static inline void tsec_send_method(struct hdcp_context_t *hdcp_context,
			u32 method,
			u32 flags)
{
	return;
}
#else
extern int tsec_hdcp_create_context(struct hdcp_context_t *hdcp_context);
extern int tsec_hdcp_free_context(struct hdcp_context_t *hdcp_context);
extern void tsec_send_method(struct hdcp_context_t *hdcp_context,
			u32 method,
			u32 flags);
#endif

#endif /*__LINUX_PUBLIC_TSEC_H*/