diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2012-03-28 16:39:21 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-03-28 17:51:17 -0400 |
commit | 70a3eb7a3e598f92604267d8ed695057f257ddb0 (patch) | |
tree | aa46edce0559af3781c9e6e5e7aa427947dfb731 /drivers/gpu/drm/i915 | |
parent | eb1cbe4848b01f9f073064377875bc7d71eb401b (diff) |
drm/i915: add ValleyView driver structs and IS_VALLEYVIEW macro
For use by the rest of the ValleyView code.
v2: fix desktop variant to not set is_mobile (Ben)
Acked-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 18 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 2 |
2 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 9a7f265db1a4..77f11b9dd14e 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -254,6 +254,24 @@ static const struct intel_device_info intel_ivybridge_m_info = { | |||
254 | .has_llc = 1, | 254 | .has_llc = 1, |
255 | }; | 255 | }; |
256 | 256 | ||
257 | static const struct intel_device_info intel_valleyview_m_info = { | ||
258 | .gen = 7, .is_mobile = 1, | ||
259 | .need_gfx_hws = 1, .has_hotplug = 1, | ||
260 | .has_fbc = 0, | ||
261 | .has_bsd_ring = 1, | ||
262 | .has_blt_ring = 1, | ||
263 | .is_valleyview = 1, | ||
264 | }; | ||
265 | |||
266 | static const struct intel_device_info intel_valleyview_d_info = { | ||
267 | .gen = 7, | ||
268 | .need_gfx_hws = 1, .has_hotplug = 1, | ||
269 | .has_fbc = 0, | ||
270 | .has_bsd_ring = 1, | ||
271 | .has_blt_ring = 1, | ||
272 | .is_valleyview = 1, | ||
273 | }; | ||
274 | |||
257 | static const struct pci_device_id pciidlist[] = { /* aka */ | 275 | static const struct pci_device_id pciidlist[] = { /* aka */ |
258 | INTEL_VGA_DEVICE(0x3577, &intel_i830_info), /* I830_M */ | 276 | INTEL_VGA_DEVICE(0x3577, &intel_i830_info), /* I830_M */ |
259 | INTEL_VGA_DEVICE(0x2562, &intel_845g_info), /* 845_G */ | 277 | INTEL_VGA_DEVICE(0x2562, &intel_845g_info), /* 845_G */ |
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 6983b4bcbdea..30612f52b93b 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -255,6 +255,7 @@ struct intel_device_info { | |||
255 | u8 is_broadwater:1; | 255 | u8 is_broadwater:1; |
256 | u8 is_crestline:1; | 256 | u8 is_crestline:1; |
257 | u8 is_ivybridge:1; | 257 | u8 is_ivybridge:1; |
258 | u8 is_valleyview:1; | ||
258 | u8 has_fbc:1; | 259 | u8 has_fbc:1; |
259 | u8 has_pipe_cxsr:1; | 260 | u8 has_pipe_cxsr:1; |
260 | u8 has_hotplug:1; | 261 | u8 has_hotplug:1; |
@@ -1002,6 +1003,7 @@ struct drm_i915_file_private { | |||
1002 | #define IS_IRONLAKE_D(dev) ((dev)->pci_device == 0x0042) | 1003 | #define IS_IRONLAKE_D(dev) ((dev)->pci_device == 0x0042) |
1003 | #define IS_IRONLAKE_M(dev) ((dev)->pci_device == 0x0046) | 1004 | #define IS_IRONLAKE_M(dev) ((dev)->pci_device == 0x0046) |
1004 | #define IS_IVYBRIDGE(dev) (INTEL_INFO(dev)->is_ivybridge) | 1005 | #define IS_IVYBRIDGE(dev) (INTEL_INFO(dev)->is_ivybridge) |
1006 | #define IS_VALLEYVIEW(dev) (INTEL_INFO(dev)->is_valleyview) | ||
1005 | #define IS_MOBILE(dev) (INTEL_INFO(dev)->is_mobile) | 1007 | #define IS_MOBILE(dev) (INTEL_INFO(dev)->is_mobile) |
1006 | 1008 | ||
1007 | /* | 1009 | /* |