summaryrefslogtreecommitdiff
path: root/src/i830.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-06-23 18:21:17 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-06-23 18:21:17 -0700
commit89791914d2a78f19f4f60ca370d387e5b1ccfb46 (patch)
treef5a59c52d9562c5c16f3ead5f95a02c5bc6f3f22 /src/i830.h
parentbb4810521633b6c3db2fc7d01ddc71325583d265 (diff)
Split probed modes out per pipe, and union them into the available modes.
This is the first stage of getting runtime monitor attachment. The old i830 GTF code is returned to use to provide suitable modelines for xf86ValidateModes in the LVDS case, even though the LVDS doesn't care about the modeline and just always programs its fixed values.
Diffstat (limited to 'src/i830.h')
-rw-r--r--src/i830.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/i830.h b/src/i830.h
index 26a0063e..59f563fc 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -399,9 +399,10 @@ typedef struct _I830Rec {
/* [0] is Pipe A, [1] is Pipe B. */
int availablePipes;
- int pipeDevices[MAX_DISPLAY_PIPES];
/* [0] is display plane A, [1] is display plane B. */
int planeEnabled[MAX_DISPLAY_PIPES];
+ xf86MonPtr pipeMon[MAX_DISPLAY_PIPES];
+ DisplayModePtr pipeModes[MAX_DISPLAY_PIPES];
/* Driver phase/state information */
Bool preinit;
@@ -593,8 +594,12 @@ extern Rotation I830GetRotation(ScreenPtr pScreen);
extern Bool I830RandRInit(ScreenPtr pScreen, int rotation);
extern Bool I830I2CInit(ScrnInfoPtr pScrn, I2CBusPtr *bus_ptr, int i2c_reg,
char *name);
-int I830xf86ValidateDDCModes(ScrnInfoPtr pScrn1, char **ppModeName);
-int i830ValidateFPModes(ScrnInfoPtr pScrn, char **ppModeName);
+/* i830_modes.c */
+int I830ValidateXF86ModeList(ScrnInfoPtr pScrn);
+
+/* i830_gtf.c */
+DisplayModePtr i830GetGTF(int h_pixels, int v_lines, float freq,
+ int interlaced, int margins);
/*
* 12288 is set as the maximum, chosen because it is enough for