aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-03-15 14:17:54 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-23 07:18:04 -0400
commit219f4fdbed5570f1d2e8da0af1c298dd3622060e (patch)
tree22e37ad252abc5738fb79641ba636fa79b810386 /drivers/gpu/drm/i915/i915_drv.c
parent7eb552aeae058a88eece91b902dd51fde45b1f41 (diff)
drm/i915: Introduce GEN7_FEATURES for device info
Recommended by Chris. v2: Make it GEN7_FEATURES, and use it for vlv and hsw also (Ben) Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> 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.c60
1 files changed, 23 insertions, 37 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 788ae5bd1bfe..6c4b13c0ee77 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -248,63 +248,49 @@ static const struct intel_device_info intel_sandybridge_m_info = {
248 .has_force_wake = 1, 248 .has_force_wake = 1,
249}; 249};
250 250
251#define GEN7_FEATURES \
252 .gen = 7, .num_pipes = 3, \
253 .need_gfx_hws = 1, .has_hotplug = 1, \
254 .has_bsd_ring = 1, \
255 .has_blt_ring = 1, \
256 .has_llc = 1, \
257 .has_force_wake = 1
258
251static const struct intel_device_info intel_ivybridge_d_info = { 259static const struct intel_device_info intel_ivybridge_d_info = {
252 .is_ivybridge = 1, .gen = 7, .num_pipes = 3, 260 GEN7_FEATURES,
253 .need_gfx_hws = 1, .has_hotplug = 1, 261 .is_ivybridge = 1,
254 .has_bsd_ring = 1,
255 .has_blt_ring = 1,
256 .has_llc = 1,
257 .has_force_wake = 1,
258}; 262};
259 263
260static const struct intel_device_info intel_ivybridge_m_info = { 264static const struct intel_device_info intel_ivybridge_m_info = {
261 .is_ivybridge = 1, .gen = 7, .is_mobile = 1, .num_pipes = 3, 265 GEN7_FEATURES,
262 .need_gfx_hws = 1, .has_hotplug = 1, 266 .is_ivybridge = 1,
263 .has_fbc = 0, /* FBC is not enabled on Ivybridge mobile yet */ 267 .is_mobile = 1,
264 .has_bsd_ring = 1,
265 .has_blt_ring = 1,
266 .has_llc = 1,
267 .has_force_wake = 1,
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, .num_pipes = 2, 271 GEN7_FEATURES,
272 .need_gfx_hws = 1, .has_hotplug = 1, 272 .is_mobile = 1,
273 .has_fbc = 0, 273 .num_pipes = 2,
274 .has_bsd_ring = 1,
275 .has_blt_ring = 1,
276 .is_valleyview = 1, 274 .is_valleyview = 1,
277 .display_mmio_offset = VLV_DISPLAY_BASE, 275 .display_mmio_offset = VLV_DISPLAY_BASE,
278 .has_force_wake = 1,
279}; 276};
280 277
281static const struct intel_device_info intel_valleyview_d_info = { 278static const struct intel_device_info intel_valleyview_d_info = {
282 .gen = 7, .num_pipes = 2, 279 GEN7_FEATURES,
283 .need_gfx_hws = 1, .has_hotplug = 1, 280 .num_pipes = 2,
284 .has_fbc = 0,
285 .has_bsd_ring = 1,
286 .has_blt_ring = 1,
287 .is_valleyview = 1, 281 .is_valleyview = 1,
288 .display_mmio_offset = VLV_DISPLAY_BASE, 282 .display_mmio_offset = VLV_DISPLAY_BASE,
289 .has_force_wake = 1,
290}; 283};
291 284
292static const struct intel_device_info intel_haswell_d_info = { 285static const struct intel_device_info intel_haswell_d_info = {
293 .is_haswell = 1, .gen = 7, .num_pipes = 3, 286 GEN7_FEATURES,
294 .need_gfx_hws = 1, .has_hotplug = 1, 287 .is_haswell = 1,
295 .has_bsd_ring = 1,
296 .has_blt_ring = 1,
297 .has_llc = 1,
298 .has_force_wake = 1,
299}; 288};
300 289
301static const struct intel_device_info intel_haswell_m_info = { 290static const struct intel_device_info intel_haswell_m_info = {
302 .is_haswell = 1, .gen = 7, .is_mobile = 1, .num_pipes = 3, 291 GEN7_FEATURES,
303 .need_gfx_hws = 1, .has_hotplug = 1, 292 .is_haswell = 1,
304 .has_bsd_ring = 1, 293 .is_mobile = 1,
305 .has_blt_ring = 1,
306 .has_llc = 1,
307 .has_force_wake = 1,
308}; 294};
309 295
310static const struct pci_device_id pciidlist[] = { /* aka */ 296static const struct pci_device_id pciidlist[] = { /* aka */