diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2010-03-30 02:39:28 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-04-09 17:16:37 -0400 |
commit | 5daa55eba7d7219616423c6955e90a8f196294a5 (patch) | |
tree | 10db4d01393cf13b1238bff98f821e0943ac73c1 /drivers/gpu/drm/i915/intel_drv.h | |
parent | c5e4df3382681c8ed214ee93bbe8f96044980485 (diff) |
drm/i915: Add new 'intel_connector' structure
This adds new structure of intel_connector to present drm's
connector object, which is used to convert from origin single
output into encoder/connector model.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index e30253755f12..d48c31220e02 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
@@ -110,6 +110,11 @@ struct intel_encoder { | |||
110 | int clone_mask; | 110 | int clone_mask; |
111 | }; | 111 | }; |
112 | 112 | ||
113 | struct intel_connector { | ||
114 | struct drm_connector base; | ||
115 | void *dev_priv; | ||
116 | }; | ||
117 | |||
113 | struct intel_crtc; | 118 | struct intel_crtc; |
114 | struct intel_overlay { | 119 | struct intel_overlay { |
115 | struct drm_device *dev; | 120 | struct drm_device *dev; |
@@ -153,6 +158,7 @@ struct intel_crtc { | |||
153 | 158 | ||
154 | #define to_intel_crtc(x) container_of(x, struct intel_crtc, base) | 159 | #define to_intel_crtc(x) container_of(x, struct intel_crtc, base) |
155 | #define to_intel_encoder(x) container_of(x, struct intel_encoder, base) | 160 | #define to_intel_encoder(x) container_of(x, struct intel_encoder, base) |
161 | #define to_intel_connector(x) container_of(x, struct intel_connector, base) | ||
156 | #define enc_to_intel_encoder(x) container_of(x, struct intel_encoder, enc) | 162 | #define enc_to_intel_encoder(x) container_of(x, struct intel_encoder, enc) |
157 | #define to_intel_framebuffer(x) container_of(x, struct intel_framebuffer, base) | 163 | #define to_intel_framebuffer(x) container_of(x, struct intel_framebuffer, base) |
158 | 164 | ||