diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/gk20a.h | 41 |
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 | |||
24 | struct channel_gk20a; | ||
25 | struct platform_device; | ||
26 | |||
27 | #ifdef CONFIG_GK20A | ||
28 | int nvhost_vpr_info_fetch(void); | ||
29 | void gk20a_debug_dump_device(struct platform_device *pdev); | ||
30 | int gk20a_do_idle(void); | ||
31 | int gk20a_do_unidle(void); | ||
32 | #else | ||
33 | static inline void gk20a_debug_dump_device(struct platform_device *pdev) {} | ||
34 | static inline int nvhost_vpr_info_fetch(void) | ||
35 | { | ||
36 | return -ENOSYS; | ||
37 | } | ||
38 | static inline int gk20a_do_idle(void) { return -ENOSYS; } | ||
39 | static inline int gk20a_do_unidle(void) { return -ENOSYS; } | ||
40 | #endif | ||
41 | #endif | ||