diff options
author | yakui_zhao <yakui.zhao@intel.com> | 2009-05-31 05:17:17 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-06-05 10:13:05 -0400 |
commit | 9b9d172d06b0f2d51cc9431e2c6c3055f0cf10ef (patch) | |
tree | 64721f8599a6cb39706cc9c48ce04c17f7377911 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 59a036cfbd29aadf40d2b754cfebee2a96268752 (diff) |
drm/i915: parse VBT general definition block to get the SDVO device info
The general definition block contains the child device tables, which include
the SDVO device info. For example: device slave address, device dvo port,
device type.
We will get the info of SDVO device by parsing the general definition blocks.
Only when a valid slave address is found, it is regarded as the SDVO device.
And the info of DVO port and slave address is recorded.
http://bugs.freedesktop.org/show_bug.cgi?id=20429
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index ded9e786883e..db81f5513daa 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -126,6 +126,13 @@ struct drm_i915_fence_reg { | |||
126 | struct drm_gem_object *obj; | 126 | struct drm_gem_object *obj; |
127 | }; | 127 | }; |
128 | 128 | ||
129 | struct sdvo_device_mapping { | ||
130 | u8 dvo_port; | ||
131 | u8 slave_addr; | ||
132 | u8 dvo_wiring; | ||
133 | u8 initialized; | ||
134 | }; | ||
135 | |||
129 | typedef struct drm_i915_private { | 136 | typedef struct drm_i915_private { |
130 | struct drm_device *dev; | 137 | struct drm_device *dev; |
131 | 138 | ||
@@ -389,6 +396,7 @@ typedef struct drm_i915_private { | |||
389 | /* storage for physical objects */ | 396 | /* storage for physical objects */ |
390 | struct drm_i915_gem_phys_object *phys_objs[I915_MAX_PHYS_OBJECT]; | 397 | struct drm_i915_gem_phys_object *phys_objs[I915_MAX_PHYS_OBJECT]; |
391 | } mm; | 398 | } mm; |
399 | struct sdvo_device_mapping sdvo_mappings[2]; | ||
392 | } drm_i915_private_t; | 400 | } drm_i915_private_t; |
393 | 401 | ||
394 | /** driver private structure attached to each drm_gem_object */ | 402 | /** driver private structure attached to each drm_gem_object */ |