aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/include/mach/tegra_dc_ext.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/tegra_dc_ext.h')
-rw-r--r--arch/arm/mach-tegra/include/mach/tegra_dc_ext.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/tegra_dc_ext.h b/arch/arm/mach-tegra/include/mach/tegra_dc_ext.h
new file mode 100644
index 00000000000..521039283d8
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/tegra_dc_ext.h
@@ -0,0 +1,77 @@
1/*
2 * arch/arm/mach-tegra/include/mach/tegra_dc_ext.h
3 *
4 * Copyright (C) 2011, NVIDIA Corporation
5 *
6 * Author: Robert Morell <rmorell@nvidia.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * more details.
17 */
18
19#ifndef __MACH_TEGRA_DC_EXT_H
20#define __MACH_TEGRA_DC_EXT_H
21
22#include <linux/nvhost.h>
23
24struct tegra_dc_ext;
25
26#ifdef CONFIG_TEGRA_DC_EXTENSIONS
27int __init tegra_dc_ext_module_init(void);
28void __exit tegra_dc_ext_module_exit(void);
29
30struct tegra_dc_ext *tegra_dc_ext_register(struct nvhost_device *ndev,
31 struct tegra_dc *dc);
32void tegra_dc_ext_unregister(struct tegra_dc_ext *dc_ext);
33
34/* called by display controller on enable/disable */
35void tegra_dc_ext_enable(struct tegra_dc_ext *dc_ext);
36void tegra_dc_ext_disable(struct tegra_dc_ext *dc_ext);
37
38int tegra_dc_ext_process_hotplug(int output);
39
40#else /* CONFIG_TEGRA_DC_EXTENSIONS */
41
42static inline
43int tegra_dc_ext_module_init(void)
44{
45 return 0;
46}
47static inline
48void tegra_dc_ext_module_exit(void)
49{
50}
51
52static inline
53struct tegra_dc_ext *tegra_dc_ext_register(struct nvhost_device *ndev,
54 struct tegra_dc *dc)
55{
56 return NULL;
57}
58static inline
59void tegra_dc_ext_unregister(struct tegra_dc_ext *dc_ext)
60{
61}
62static inline
63void tegra_dc_ext_enable(struct tegra_dc_ext *dc_ext)
64{
65}
66static inline
67void tegra_dc_ext_disable(struct tegra_dc_ext *dc_ext)
68{
69}
70static inline
71int tegra_dc_ext_process_hotplug(int output)
72{
73 return 0;
74}
75#endif /* CONFIG_TEGRA_DC_EXTENSIONS */
76
77#endif /* __MACH_TEGRA_DC_EXT_H */