diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-06-23 18:21:17 -0700 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-06-23 18:21:17 -0700 |
commit | 89791914d2a78f19f4f60ca370d387e5b1ccfb46 (patch) | |
tree | f5a59c52d9562c5c16f3ead5f95a02c5bc6f3f22 /src/i830.h | |
parent | bb4810521633b6c3db2fc7d01ddc71325583d265 (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.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |