intelfb: add preliminary i2c support
authorDennis Munsie <dmunsie@cecropia.com>
Tue, 20 Jun 2006 18:55:55 +0000 (14:55 -0400)
committerDave Airlie <airlied@linux.ie>
Mon, 3 Jul 2006 09:04:37 +0000 (19:04 +1000)
[05/07] intelfb: add output fields to dinfo.

Signed-off-by: Dennis Munsie <dmunsie@cecropia.com>
drivers/video/intelfb/intelfb.h

index 179db05..9092bda 100644 (file)
 /* Intel agpgart driver */
 #define AGP_PHYSICAL_MEMORY     2
 
 /* Intel agpgart driver */
 #define AGP_PHYSICAL_MEMORY     2
 
+/* store information about an Ixxx DVO */
+/* The i830->i865 use multiple DVOs with multiple i2cs */
+/* the i915, i945 have a single sDVO i2c bus - which is different */
+#define MAX_OUTPUTS 6
+
 /* these are outputs from the chip - integrated only
    external chips are via DVO or SDVO output */
 #define INTELFB_OUTPUT_UNUSED 0
 /* these are outputs from the chip - integrated only
    external chips are via DVO or SDVO output */
 #define INTELFB_OUTPUT_UNUSED 0
@@ -344,6 +349,10 @@ struct intelfb_info {
        
        /* index into plls */
        int pll_index;
        
        /* index into plls */
        int pll_index;
+
+       /* outputs */
+       int num_outputs;
+       struct intelfb_output_rec output[MAX_OUTPUTS];
 };
 
 #define IS_I9XX(dinfo) (((dinfo)->chipset == INTEL_915G)||(dinfo->chipset == INTEL_915GM)||((dinfo)->chipset == INTEL_945G)||(dinfo->chipset==INTEL_945GM))
 };
 
 #define IS_I9XX(dinfo) (((dinfo)->chipset == INTEL_915G)||(dinfo->chipset == INTEL_915GM)||((dinfo)->chipset == INTEL_945G)||(dinfo->chipset==INTEL_945GM))