diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/fb.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/fb.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/fb.h b/arch/arm/mach-tegra/include/mach/fb.h new file mode 100644 index 00000000000..ced6f9c2cb4 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/fb.h | |||
@@ -0,0 +1,61 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/include/mach/fb.h | ||
3 | * | ||
4 | * Copyright (C) 2010 Google, Inc. | ||
5 | * | ||
6 | * Author: | ||
7 | * Erik Gilling <konkers@google.com> | ||
8 | * | ||
9 | * This software is licensed under the terms of the GNU General Public | ||
10 | * License version 2, as published by the Free Software Foundation, and | ||
11 | * may be copied, distributed, and modified under those terms. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU General Public License for more details. | ||
17 | * | ||
18 | */ | ||
19 | |||
20 | #ifndef __MACH_TEGRA_FB_H | ||
21 | #define __MACH_TEGRA_FB_H | ||
22 | |||
23 | #include <linux/fb.h> | ||
24 | |||
25 | struct nvhost_device; | ||
26 | struct tegra_dc; | ||
27 | struct tegra_fb_data; | ||
28 | struct tegra_fb_info; | ||
29 | struct resource; | ||
30 | |||
31 | #ifdef CONFIG_FB_TEGRA | ||
32 | struct tegra_fb_info *tegra_fb_register(struct nvhost_device *ndev, | ||
33 | struct tegra_dc *dc, | ||
34 | struct tegra_fb_data *fb_data, | ||
35 | struct resource *fb_mem); | ||
36 | void tegra_fb_unregister(struct tegra_fb_info *fb_info); | ||
37 | void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info, | ||
38 | struct fb_monspecs *specs, | ||
39 | bool (*mode_filter)(const struct tegra_dc *dc, | ||
40 | struct fb_videomode *mode)); | ||
41 | #else | ||
42 | static inline struct tegra_fb_info *tegra_fb_register(struct nvhost_device *ndev, | ||
43 | struct tegra_dc *dc, | ||
44 | struct tegra_fb_data *fb_data, | ||
45 | struct resource *fb_mem) | ||
46 | { | ||
47 | return NULL; | ||
48 | } | ||
49 | |||
50 | static inline void tegra_fb_unregister(struct tegra_fb_info *fb_info) | ||
51 | { | ||
52 | } | ||
53 | |||
54 | static inline void tegra_fb_update_monspecs(struct tegra_fb_info *fb_info, | ||
55 | struct fb_monspecs *specs, | ||
56 | bool (*mode_filter)(struct fb_videomode *mode)) | ||
57 | { | ||
58 | } | ||
59 | #endif | ||
60 | |||
61 | #endif | ||