summaryrefslogtreecommitdiff
path: root/src/i830_xf86Modes.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-06-28 13:10:02 +0200
committerEric Anholt <anholt@FreeBSD.org>2006-06-28 13:10:02 +0200
commit367f69f8e7710e53dcd286f1b62506a3276e80f9 (patch)
tree770e165708f0ba56cc9d8a0d205cb13538ea23bc /src/i830_xf86Modes.h
parent9fbd3d8f4befb75ed6f6bd9a9ffe0175626e8785 (diff)
Replace xf86ValidateModes usage with a set of custom validators and pruning.
This moves us to maintaining MonPtrs per pipe instead of using the EDID structure "xf86MonPtr", which is closer to what we want to be looking at when doing validation. The new validation isn't enough yet -- particularly, we aren't importing and validating the custom modelines to the pipes when applicable, but this will be easier than (for example) trying to make flat panel modes pass xf86ValidateModes through various gross hacks. Hotplug turn-on/off also happens at SwitchMode time now, instead of at randr probe time.
Diffstat (limited to 'src/i830_xf86Modes.h')
-rw-r--r--src/i830_xf86Modes.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/i830_xf86Modes.h b/src/i830_xf86Modes.h
index ba7d8209..86e5b060 100644
--- a/src/i830_xf86Modes.h
+++ b/src/i830_xf86Modes.h
@@ -35,6 +35,26 @@ Bool
I830ModesEqual(DisplayModePtr pMode1, DisplayModePtr pMode2);
void
+i830xf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
+ int flags);
+
+void
+i830xf86ValidateModesClocks(ScrnInfoPtr pScrn, DisplayModePtr modeList,
+ int *min, int *max, int n_ranges);
+
+void
+i830xf86ValidateModesSize(ScrnInfoPtr pScrn, DisplayModePtr modeList,
+ int maxX, int maxY, int maxPitch);
+
+void
+i830xf86PruneInvalidModes(ScrnInfoPtr pScrn, DisplayModePtr *modeList,
+ Bool verbose);
+
+void
+i830xf86ValidateModesFlags(ScrnInfoPtr pScrn, DisplayModePtr modeList,
+ int flags);
+
+void
PrintModeline(int scrnIndex,DisplayModePtr mode);
extern DisplayModeRec I830xf86DefaultModes[];