eb78285b851e73c75eeff3920e6bbd9f276dc80b
[profile/ivi/intel-emgd-kmod.git] / emgd / include / pd_init.h
1 /*
2  *-----------------------------------------------------------------------------
3  * Filename: pd_init.h
4  * $Revision: 1.7 $
5  *-----------------------------------------------------------------------------
6  * Copyright (c) 2002-2010, Intel Corporation.
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining a copy
9  * of this software and associated documentation files (the "Software"), to deal
10  * in the Software without restriction, including without limitation the rights
11  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12  * copies of the Software, and to permit persons to whom the Software is
13  * furnished to do so, subject to the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be included in
16  * all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24  * THE SOFTWARE.
25  *
26  *-----------------------------------------------------------------------------
27  * Description:
28  *  This file contains configurable definitions to statically link port
29  *  drivers with display driver.
30  *-----------------------------------------------------------------------------
31  */
32
33 #ifndef _PD_INIT_H
34 #define _PD_INIT_H
35
36 #include <config.h>
37
38 /* Enable Analog (CRT) port driver */
39 #ifdef CONFIG_PD_ANALOG
40 extern int analog_init(void *handle);
41 #define ANALOG_INIT(handle)  analog_init(handle)
42 #else
43 #define ANALOG_INIT(handle)  0
44 #endif
45
46 /* Enable RGBA port driver */
47 #ifdef CONFIG_PD_RGBA
48 extern int rgba_init(void *handle);
49 #define RGBA_INIT(handle)  rgba_init(handle)
50 #else
51 #define RGBA_INIT(handle)  0
52 #endif
53
54 /* Enable Silicon Image 154/164 FP port driver */
55 #ifdef CONFIG_PD_SII164
56 extern int sii164_init(void *handle);
57 #define SII164_INIT(handle)  sii164_init(handle)
58 #else
59 #define SII164_INIT(handle)  0
60 #endif
61
62 /* Enable Texas Instruments 410 FP port driver */
63 #ifdef CONFIG_PD_TI410
64 extern int ti410_init(void *handle);
65 #define TI410_INIT(handle)  ti410_init(handle)
66 #else
67 #define TI410_INIT(handle)  0
68 #endif
69
70 /* Enable Chrontel 7009 TMDS & TVOut port driver */
71 #ifdef CONFIG_PD_CH7009
72 extern int ch7009_init(void *handle);
73 #define CH7009_INIT(handle)  ch7009_init(handle)
74 #else
75 #define CH7009_INIT(handle)  0
76 #endif
77
78 /* Enable National Semiconductor 2501 LVDS port driver */
79 #ifdef CONFIG_PD_NS2501
80 extern int ns2501_init(void *handle);
81 #define NS2501_INIT(handle)  ns2501_init(handle)
82 #else
83 #define NS2501_INIT(handle)  0
84 #endif
85
86 /* Enable TL955 port driver */
87 #ifdef CONFIG_PD_TL955
88 extern int tl955_init(void *handle);
89 #define TL955_INIT(handle)  tl955_init(handle)
90 #else
91 #define TL955_INIT(handle)  0
92 #endif
93
94 /* Enable Th164 port driver */
95 #ifdef CONFIG_PD_TH164
96 extern int th164_init(void *handle);
97 #define TH164_INIT(handle)  th164_init(handle)
98 #else
99 #define TH164_INIT(handle)  0
100 #endif
101
102 /* Enable FS454 port driver */
103 #ifdef CONFIG_PD_FS454
104 extern int fs454_init(void *handle);
105 #define FS454_INIT(handle)  fs454_init(handle)
106 #else
107 #define FS454_INIT(handle)  0
108 #endif
109
110 /* Enable NS387/389 port driver */
111 #ifdef CONFIG_PD_NS387
112 extern int ns387_init(void *handle);
113 #define NS387_INIT(handle)  ns387_init(handle)
114 #else
115 #define NS387_INIT(handle)  0
116 #endif
117
118 /* Enable connexant port driver */
119 #ifdef CONFIG_PD_CX873
120 extern int cx873_init(void *handle);
121 #define CX873_INIT(handle)  cx873_init(handle)
122 #else
123 #define CX873_INIT(handle)  0
124 #endif
125
126 /* Enable Internal LVDS port driver */
127 #ifdef CONFIG_PD_LVDS
128 extern int lvds_init(void *handle);
129 #define LVDS_INIT(handle)  lvds_init(handle)
130 #else
131 #define LVDS_INIT(handle)  0
132 #endif
133
134 /* Enable SDVO port driver */
135 #ifdef CONFIG_PD_SDVO
136 extern int sdvo_init(void *handle);
137 #define SDVO_INIT(handle)  sdvo_init(handle)
138 #else
139 #define SDVO_INIT(handle)  0
140 #endif
141
142 /* Enable Integrated TV port driver for NAPA*/
143 #ifdef CONFIG_PD_TV
144 extern int tv_init(void *handle);
145 #define TV_INIT(handle)  tv_init(handle)
146 #else
147 #define TV_INIT(handle)  0
148 #endif
149
150 /* Enable FS460 port driver */
151 #ifdef CONFIG_PD_FS460
152 extern int fs460_init(void *handle);
153 #define FS460_INIT(handle)  fs460_init(handle)
154 #else
155 #define FS460_INIT(handle)  0
156 #endif
157
158 /* Enable FS450 port driver */
159 #ifdef CONFIG_PD_FS450
160 extern int fs450_init(void *handle);
161 #define FS450_INIT(handle)  fs450_init(handle)
162 #else
163 #define FS450_INIT(handle)  0
164 #endif
165
166 /* Enable Chrontel 7017 LVDS & TVOut port driver */
167 #ifdef CONFIG_PD_CH7017
168 extern int ch7017_init(void *handle);
169 #define CH7017_INIT(handle)  ch7017_init(handle)
170 #else
171 #define CH7017_INIT(handle)  0
172 #endif
173
174 /* Enable internal HDMI port driver */
175 #ifdef CONFIG_PD_HDMI
176 extern int hdmi_init(void *handle);
177 #define HDMI_INIT(handle)  hdmi_init(handle)
178 #else
179 #define HDMI_INIT(handle)  0
180 #endif
181
182 /* Enable Dummy Port Driver*/
183 #ifdef CONFIG_PD_PD000
184 extern int pd000_init(void *handle);
185 #define PD000_INIT(handle)  pd000_init(handle)
186 #else
187 #define PD000_INIT(handle)  0
188 #endif
189
190 #endif
191