diff options
author | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2012-03-29 11:32:22 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-04-09 12:03:59 -0400 |
commit | 2b139522008b824ba17d5160085ce70f940839a0 (patch) | |
tree | 438f82816506309ecebe4b323e283a62b581ccf2 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 9eb3a75276892b01026489096c670a30bcc66252 (diff) |
drm/i915: add enumeration for DDI ports
There are 5 DDI ports on Haswell. Port A is always enabled, and is the one
connected to eDP, and Port E is the one that can be connected to the PCH
using FDI protocol. Ports B, C, D and E can be used for digital outputs.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index d7a5146796e7..b617cd50c398 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -63,6 +63,16 @@ enum plane { | |||
63 | }; | 63 | }; |
64 | #define plane_name(p) ((p) + 'A') | 64 | #define plane_name(p) ((p) + 'A') |
65 | 65 | ||
66 | enum port { | ||
67 | PORT_A = 0, | ||
68 | PORT_B, | ||
69 | PORT_C, | ||
70 | PORT_D, | ||
71 | PORT_E, | ||
72 | I915_MAX_PORTS | ||
73 | }; | ||
74 | #define port_name(p) ((p) + 'A') | ||
75 | |||
66 | #define I915_GEM_GPU_DOMAINS (~(I915_GEM_DOMAIN_CPU | I915_GEM_DOMAIN_GTT)) | 76 | #define I915_GEM_GPU_DOMAINS (~(I915_GEM_DOMAIN_CPU | I915_GEM_DOMAIN_GTT)) |
67 | 77 | ||
68 | #define for_each_pipe(p) for ((p) = 0; (p) < dev_priv->num_pipe; (p)++) | 78 | #define for_each_pipe(p) for ((p) = 0; (p) < dev_priv->num_pipe; (p)++) |