diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-06-10 11:37:02 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2009-06-15 14:56:56 +0800 |
commit | 51b87b9913ba164d4d5de79e558233915b37a0a5 (patch) | |
tree | c56aec099130e69c7e6f490b68619a866558a9f8 /src/i830.h | |
parent | 6ba148bbd78783f59eed3d898638c39b950dcd89 (diff) |
parse general definition block to get the SDVO device info
The general definition block contains the child device tables, which include
the child 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>
Diffstat (limited to 'src/i830.h')
-rw-r--r-- | src/i830.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -328,7 +328,12 @@ enum dri_type { DRI_NONE, DRI_DRI2 }; - +struct sdvo_device_mapping { + uint8_t dvo_port; + uint8_t slave_addr; + uint8_t dvo_wiring; + uint8_t initialized; +}; typedef struct _I830Rec { unsigned char *MMIOBase; unsigned char *GTTBase; @@ -608,6 +613,7 @@ typedef struct _I830Rec { /** User option to print acceleration fallback info to the server log. */ Bool fallback_debug; + struct sdvo_device_mapping sdvo_mappings[2]; } I830Rec; #define I830PTR(p) ((I830Ptr)((p)->driverPrivate)) |