aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-03-13 17:05:41 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-23 07:18:03 -0400
commit7eb552aeae058a88eece91b902dd51fde45b1f41 (patch)
treee22e782c323745aaa26fbae20490af31ceff554b /drivers/gpu/drm/i915/i915_drv.c
parenta15326a57c4d282803765b0a45c53ea4a8c2c94b (diff)
drm/i915: Move num_pipes to intel info
Requested by Daniel. v2: Fix incorrect num_pipe settings. (Chris) Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 2e4b4a3a77d2..788ae5bd1bfe 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -136,74 +136,74 @@ extern int intel_agp_enabled;
136 .driver_data = (unsigned long) info } 136 .driver_data = (unsigned long) info }
137 137
138static const struct intel_device_info intel_i830_info = { 138static const struct intel_device_info intel_i830_info = {
139 .gen = 2, .is_mobile = 1, .cursor_needs_physical = 1, 139 .gen = 2, .is_mobile = 1, .cursor_needs_physical = 1, .num_pipes = 2,
140 .has_overlay = 1, .overlay_needs_physical = 1, 140 .has_overlay = 1, .overlay_needs_physical = 1,
141}; 141};
142 142
143static const struct intel_device_info intel_845g_info = { 143static const struct intel_device_info intel_845g_info = {
144 .gen = 2, 144 .gen = 2, .num_pipes = 1,
145 .has_overlay = 1, .overlay_needs_physical = 1, 145 .has_overlay = 1, .overlay_needs_physical = 1,
146}; 146};
147 147
148static const struct intel_device_info intel_i85x_info = { 148static const struct intel_device_info intel_i85x_info = {
149 .gen = 2, .is_i85x = 1, .is_mobile = 1, 149 .gen = 2, .is_i85x = 1, .is_mobile = 1, .num_pipes = 2,
150 .cursor_needs_physical = 1, 150 .cursor_needs_physical = 1,
151 .has_overlay = 1, .overlay_needs_physical = 1, 151 .has_overlay = 1, .overlay_needs_physical = 1,
152}; 152};
153 153
154static const struct intel_device_info intel_i865g_info = { 154static const struct intel_device_info intel_i865g_info = {
155 .gen = 2, 155 .gen = 2, .num_pipes = 1,
156 .has_overlay = 1, .overlay_needs_physical = 1, 156 .has_overlay = 1, .overlay_needs_physical = 1,
157}; 157};
158 158
159static const struct intel_device_info intel_i915g_info = { 159static const struct intel_device_info intel_i915g_info = {
160 .gen = 3, .is_i915g = 1, .cursor_needs_physical = 1, 160 .gen = 3, .is_i915g = 1, .cursor_needs_physical = 1, .num_pipes = 2,
161 .has_overlay = 1, .overlay_needs_physical = 1, 161 .has_overlay = 1, .overlay_needs_physical = 1,
162}; 162};
163static const struct intel_device_info intel_i915gm_info = { 163static const struct intel_device_info intel_i915gm_info = {
164 .gen = 3, .is_mobile = 1, 164 .gen = 3, .is_mobile = 1, .num_pipes = 2,
165 .cursor_needs_physical = 1, 165 .cursor_needs_physical = 1,
166 .has_overlay = 1, .overlay_needs_physical = 1, 166 .has_overlay = 1, .overlay_needs_physical = 1,
167 .supports_tv = 1, 167 .supports_tv = 1,
168}; 168};
169static const struct intel_device_info intel_i945g_info = { 169static const struct intel_device_info intel_i945g_info = {
170 .gen = 3, .has_hotplug = 1, .cursor_needs_physical = 1, 170 .gen = 3, .has_hotplug = 1, .cursor_needs_physical = 1, .num_pipes = 2,
171 .has_overlay = 1, .overlay_needs_physical = 1, 171 .has_overlay = 1, .overlay_needs_physical = 1,
172}; 172};
173static const struct intel_device_info intel_i945gm_info = { 173static const struct intel_device_info intel_i945gm_info = {
174 .gen = 3, .is_i945gm = 1, .is_mobile = 1, 174 .gen = 3, .is_i945gm = 1, .is_mobile = 1, .num_pipes = 2,
175 .has_hotplug = 1, .cursor_needs_physical = 1, 175 .has_hotplug = 1, .cursor_needs_physical = 1,
176 .has_overlay = 1, .overlay_needs_physical = 1, 176 .has_overlay = 1, .overlay_needs_physical = 1,
177 .supports_tv = 1, 177 .supports_tv = 1,
178}; 178};
179 179
180static const struct intel_device_info intel_i965g_info = { 180static const struct intel_device_info intel_i965g_info = {
181 .gen = 4, .is_broadwater = 1, 181 .gen = 4, .is_broadwater = 1, .num_pipes = 2,
182 .has_hotplug = 1, 182 .has_hotplug = 1,
183 .has_overlay = 1, 183 .has_overlay = 1,
184}; 184};
185 185
186static const struct intel_device_info intel_i965gm_info = { 186static const struct intel_device_info intel_i965gm_info = {
187 .gen = 4, .is_crestline = 1, 187 .gen = 4, .is_crestline = 1, .num_pipes = 2,
188 .is_mobile = 1, .has_fbc = 1, .has_hotplug = 1, 188 .is_mobile = 1, .has_fbc = 1, .has_hotplug = 1,
189 .has_overlay = 1, 189 .has_overlay = 1,
190 .supports_tv = 1, 190 .supports_tv = 1,
191}; 191};
192 192
193static const struct intel_device_info intel_g33_info = { 193static const struct intel_device_info intel_g33_info = {
194 .gen = 3, .is_g33 = 1, 194 .gen = 3, .is_g33 = 1, .num_pipes = 2,
195 .need_gfx_hws = 1, .has_hotplug = 1, 195 .need_gfx_hws = 1, .has_hotplug = 1,
196 .has_overlay = 1, 196 .has_overlay = 1,
197}; 197};
198 198
199static const struct intel_device_info intel_g45_info = { 199static const struct intel_device_info intel_g45_info = {
200 .gen = 4, .is_g4x = 1, .need_gfx_hws = 1, 200 .gen = 4, .is_g4x = 1, .need_gfx_hws = 1, .num_pipes = 2,
201 .has_pipe_cxsr = 1, .has_hotplug = 1, 201 .has_pipe_cxsr = 1, .has_hotplug = 1,
202 .has_bsd_ring = 1, 202 .has_bsd_ring = 1,
203}; 203};
204 204
205static const struct intel_device_info intel_gm45_info = { 205static const struct intel_device_info intel_gm45_info = {
206 .gen = 4, .is_g4x = 1, 206 .gen = 4, .is_g4x = 1, .num_pipes = 2,
207 .is_mobile = 1, .need_gfx_hws = 1, .has_fbc = 1, 207 .is_mobile = 1, .need_gfx_hws = 1, .has_fbc = 1,
208 .has_pipe_cxsr = 1, .has_hotplug = 1, 208 .has_pipe_cxsr = 1, .has_hotplug = 1,
209 .supports_tv = 1, 209 .supports_tv = 1,
@@ -211,26 +211,26 @@ static const struct intel_device_info intel_gm45_info = {
211}; 211};
212 212
213static const struct intel_device_info intel_pineview_info = { 213static const struct intel_device_info intel_pineview_info = {
214 .gen = 3, .is_g33 = 1, .is_pineview = 1, .is_mobile = 1, 214 .gen = 3, .is_g33 = 1, .is_pineview = 1, .is_mobile = 1, .num_pipes = 2,
215 .need_gfx_hws = 1, .has_hotplug = 1, 215 .need_gfx_hws = 1, .has_hotplug = 1,
216 .has_overlay = 1, 216 .has_overlay = 1,
217}; 217};
218 218
219static const struct intel_device_info intel_ironlake_d_info = { 219static const struct intel_device_info intel_ironlake_d_info = {
220 .gen = 5, 220 .gen = 5, .num_pipes = 2,
221 .need_gfx_hws = 1, .has_hotplug = 1, 221 .need_gfx_hws = 1, .has_hotplug = 1,
222 .has_bsd_ring = 1, 222 .has_bsd_ring = 1,
223}; 223};
224 224
225static const struct intel_device_info intel_ironlake_m_info = { 225static const struct intel_device_info intel_ironlake_m_info = {
226 .gen = 5, .is_mobile = 1, 226 .gen = 5, .is_mobile = 1, .num_pipes = 2,
227 .need_gfx_hws = 1, .has_hotplug = 1, 227 .need_gfx_hws = 1, .has_hotplug = 1,
228 .has_fbc = 1, 228 .has_fbc = 1,
229 .has_bsd_ring = 1, 229 .has_bsd_ring = 1,
230}; 230};
231 231
232static const struct intel_device_info intel_sandybridge_d_info = { 232static const struct intel_device_info intel_sandybridge_d_info = {
233 .gen = 6, 233 .gen = 6, .num_pipes = 2,
234 .need_gfx_hws = 1, .has_hotplug = 1, 234 .need_gfx_hws = 1, .has_hotplug = 1,
235 .has_bsd_ring = 1, 235 .has_bsd_ring = 1,
236 .has_blt_ring = 1, 236 .has_blt_ring = 1,
@@ -239,7 +239,7 @@ static const struct intel_device_info intel_sandybridge_d_info = {
239}; 239};
240 240
241static const struct intel_device_info intel_sandybridge_m_info = { 241static const struct intel_device_info intel_sandybridge_m_info = {
242 .gen = 6, .is_mobile = 1, 242 .gen = 6, .is_mobile = 1, .num_pipes = 2,
243 .need_gfx_hws = 1, .has_hotplug = 1, 243 .need_gfx_hws = 1, .has_hotplug = 1,
244 .has_fbc = 1, 244 .has_fbc = 1,
245 .has_bsd_ring = 1, 245 .has_bsd_ring = 1,
@@ -249,7 +249,7 @@ static const struct intel_device_info intel_sandybridge_m_info = {
249}; 249};
250 250
251static const struct intel_device_info intel_ivybridge_d_info = { 251static const struct intel_device_info intel_ivybridge_d_info = {
252 .is_ivybridge = 1, .gen = 7, 252 .is_ivybridge = 1, .gen = 7, .num_pipes = 3,
253 .need_gfx_hws = 1, .has_hotplug = 1, 253 .need_gfx_hws = 1, .has_hotplug = 1,
254 .has_bsd_ring = 1, 254 .has_bsd_ring = 1,
255 .has_blt_ring = 1, 255 .has_blt_ring = 1,
@@ -258,7 +258,7 @@ static const struct intel_device_info intel_ivybridge_d_info = {
258}; 258};
259 259
260static const struct intel_device_info intel_ivybridge_m_info = { 260static const struct intel_device_info intel_ivybridge_m_info = {
261 .is_ivybridge = 1, .gen = 7, .is_mobile = 1, 261 .is_ivybridge = 1, .gen = 7, .is_mobile = 1, .num_pipes = 3,
262 .need_gfx_hws = 1, .has_hotplug = 1, 262 .need_gfx_hws = 1, .has_hotplug = 1,
263 .has_fbc = 0, /* FBC is not enabled on Ivybridge mobile yet */ 263 .has_fbc = 0, /* FBC is not enabled on Ivybridge mobile yet */
264 .has_bsd_ring = 1, 264 .has_bsd_ring = 1,
@@ -268,7 +268,7 @@ static const struct intel_device_info intel_ivybridge_m_info = {
268}; 268};
269 269
270static const struct intel_device_info intel_valleyview_m_info = { 270static const struct intel_device_info intel_valleyview_m_info = {
271 .gen = 7, .is_mobile = 1, 271 .gen = 7, .is_mobile = 1, .num_pipes = 2,
272 .need_gfx_hws = 1, .has_hotplug = 1, 272 .need_gfx_hws = 1, .has_hotplug = 1,
273 .has_fbc = 0, 273 .has_fbc = 0,
274 .has_bsd_ring = 1, 274 .has_bsd_ring = 1,
@@ -279,7 +279,7 @@ static const struct intel_device_info intel_valleyview_m_info = {
279}; 279};
280 280
281static const struct intel_device_info intel_valleyview_d_info = { 281static const struct intel_device_info intel_valleyview_d_info = {
282 .gen = 7, 282 .gen = 7, .num_pipes = 2,
283 .need_gfx_hws = 1, .has_hotplug = 1, 283 .need_gfx_hws = 1, .has_hotplug = 1,
284 .has_fbc = 0, 284 .has_fbc = 0,
285 .has_bsd_ring = 1, 285 .has_bsd_ring = 1,
@@ -290,7 +290,7 @@ static const struct intel_device_info intel_valleyview_d_info = {
290}; 290};
291 291
292static const struct intel_device_info intel_haswell_d_info = { 292static const struct intel_device_info intel_haswell_d_info = {
293 .is_haswell = 1, .gen = 7, 293 .is_haswell = 1, .gen = 7, .num_pipes = 3,
294 .need_gfx_hws = 1, .has_hotplug = 1, 294 .need_gfx_hws = 1, .has_hotplug = 1,
295 .has_bsd_ring = 1, 295 .has_bsd_ring = 1,
296 .has_blt_ring = 1, 296 .has_blt_ring = 1,
@@ -299,7 +299,7 @@ static const struct intel_device_info intel_haswell_d_info = {
299}; 299};
300 300
301static const struct intel_device_info intel_haswell_m_info = { 301static const struct intel_device_info intel_haswell_m_info = {
302 .is_haswell = 1, .gen = 7, .is_mobile = 1, 302 .is_haswell = 1, .gen = 7, .is_mobile = 1, .num_pipes = 3,
303 .need_gfx_hws = 1, .has_hotplug = 1, 303 .need_gfx_hws = 1, .has_hotplug = 1,
304 .has_bsd_ring = 1, 304 .has_bsd_ring = 1,
305 .has_blt_ring = 1, 305 .has_blt_ring = 1,