diff options
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.h | 77 |
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 | |||
24 | struct tegra_dc_ext; | ||
25 | |||
26 | #ifdef CONFIG_TEGRA_DC_EXTENSIONS | ||
27 | int __init tegra_dc_ext_module_init(void); | ||
28 | void __exit tegra_dc_ext_module_exit(void); | ||
29 | |||
30 | struct tegra_dc_ext *tegra_dc_ext_register(struct nvhost_device *ndev, | ||
31 | struct tegra_dc *dc); | ||
32 | void tegra_dc_ext_unregister(struct tegra_dc_ext *dc_ext); | ||
33 | |||
34 | /* called by display controller on enable/disable */ | ||
35 | void tegra_dc_ext_enable(struct tegra_dc_ext *dc_ext); | ||
36 | void tegra_dc_ext_disable(struct tegra_dc_ext *dc_ext); | ||
37 | |||
38 | int tegra_dc_ext_process_hotplug(int output); | ||
39 | |||
40 | #else /* CONFIG_TEGRA_DC_EXTENSIONS */ | ||
41 | |||
42 | static inline | ||
43 | int tegra_dc_ext_module_init(void) | ||
44 | { | ||
45 | return 0; | ||
46 | } | ||
47 | static inline | ||
48 | void tegra_dc_ext_module_exit(void) | ||
49 | { | ||
50 | } | ||
51 | |||
52 | static inline | ||
53 | struct tegra_dc_ext *tegra_dc_ext_register(struct nvhost_device *ndev, | ||
54 | struct tegra_dc *dc) | ||
55 | { | ||
56 | return NULL; | ||
57 | } | ||
58 | static inline | ||
59 | void tegra_dc_ext_unregister(struct tegra_dc_ext *dc_ext) | ||
60 | { | ||
61 | } | ||
62 | static inline | ||
63 | void tegra_dc_ext_enable(struct tegra_dc_ext *dc_ext) | ||
64 | { | ||
65 | } | ||
66 | static inline | ||
67 | void tegra_dc_ext_disable(struct tegra_dc_ext *dc_ext) | ||
68 | { | ||
69 | } | ||
70 | static inline | ||
71 | int 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 */ | ||