summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAlex Van Brunt <avanbrunt@nvidia.com>2016-04-01 19:57:02 -0400
committerAlexander Van Brunt <avanbrunt@nvidia.com>2016-04-04 20:11:53 -0400
commita3d7d84a3a0e7b5cd38bdaab570b576832277996 (patch)
tree1ac299f1493b4215ee68696c26f51a9efae5b12b /include/linux
parentca414fd833c0aa40f4c5f870ce083088585551d6 (diff)
include: linux: import gk20a.h from kernel-3.18
include/linux/gk20a.h was missed while spliting the nvgpu driver off. This patch imports it into the nvgpu repo. bug 200187033 Change-Id: I0622091348c1b6e19f592a1807a19739dc1f9cd0 Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com> Reviewed-on: http://git-master/r/1119271
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/gk20a.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/linux/gk20a.h b/include/linux/gk20a.h
new file mode 100644
index 00000000..7532d70e
--- /dev/null
+++ b/include/linux/gk20a.h
@@ -0,0 +1,41 @@
1/*
2 * gk20a GPU driver
3 *
4 * Copyright (c) 2014, NVIDIA Corporation. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __GK20A_H
20#define __GK20A_H
21
22#include <linux/errno.h>
23
24struct channel_gk20a;
25struct platform_device;
26
27#ifdef CONFIG_GK20A
28int nvhost_vpr_info_fetch(void);
29void gk20a_debug_dump_device(struct platform_device *pdev);
30int gk20a_do_idle(void);
31int gk20a_do_unidle(void);
32#else
33static inline void gk20a_debug_dump_device(struct platform_device *pdev) {}
34static inline int nvhost_vpr_info_fetch(void)
35{
36 return -ENOSYS;
37}
38static inline int gk20a_do_idle(void) { return -ENOSYS; }
39static inline int gk20a_do_unidle(void) { return -ENOSYS; }
40#endif
41#endif