diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 49ff35b86..1cde47873 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -368,22 +368,11 @@ xf86GetBppFromDepth(ScrnInfoPtr pScrn, int depth); /* xf86Mode.c */ -extern _X_EXPORT int -xf86GetNearestClock(ScrnInfoPtr scrp, int freq, Bool allowDiv2, - int DivFactor, int MulFactor, int *divider); extern _X_EXPORT const char * xf86ModeStatusToString(ModeStatus status); extern _X_EXPORT ModeStatus -xf86LookupMode(ScrnInfoPtr scrp, DisplayModePtr modep, - ClockRangePtr clockRanges, LookupModeFlags strategy); -extern _X_EXPORT ModeStatus xf86CheckModeForMonitor(DisplayModePtr mode, MonPtr monitor); extern _X_EXPORT ModeStatus -xf86InitialCheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode, - ClockRangePtr clockRanges, - LookupModeFlags strategy, - int maxPitch, int virtualX, int virtualY); -extern _X_EXPORT ModeStatus xf86CheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode, int flags); extern _X_EXPORT int xf86ValidateModes(ScrnInfoPtr scrp, DisplayModePtr availModes, diff --git a/hw/xfree86/common/xf86Mode.c b/hw/xfree86/common/xf86Mode.c index 9a5550faf..3f446ae3b 100644 --- a/hw/xfree86/common/xf86Mode.c +++ b/hw/xfree86/common/xf86Mode.c @@ -112,11 +112,10 @@ printModeRejectMessage(int index, DisplayModePtr p, int status) } /* - * xf86GetNearestClock -- - * Find closest clock to given frequency (in kHz). This assumes the - * number of clocks is greater than zero. + * Find closest clock to given frequency (in kHz). This assumes the + * number of clocks is greater than zero. */ -int +static int xf86GetNearestClock(ScrnInfoPtr scrp, int freq, Bool allowDiv2, int DivFactor, int MulFactor, int *divider) { @@ -451,7 +450,7 @@ xf86HandleBuiltinMode(ScrnInfoPtr scrp, * reason. */ -ModeStatus +static ModeStatus xf86LookupMode(ScrnInfoPtr scrp, DisplayModePtr modep, ClockRangePtr clockRanges, LookupModeFlags strategy) { @@ -845,7 +844,7 @@ xf86CheckModeSize(ScrnInfoPtr scrp, int w, int x, int y) * maxVValue maximum vertical timing value */ -ModeStatus +static ModeStatus xf86InitialCheckModeForDriver(ScrnInfoPtr scrp, DisplayModePtr mode, ClockRangePtr clockRanges, LookupModeFlags strategy, diff --git a/hw/xfree86/doc/ddxDesign.xml b/hw/xfree86/doc/ddxDesign.xml index 6a9de9e7f..aed77a9f0 100644 --- a/hw/xfree86/doc/ddxDesign.xml +++ b/hw/xfree86/doc/ddxDesign.xml @@ -6955,28 +6955,6 @@ and needs to do its own mode validation, it might be able to make use of some of these secondary mode helper functions. -
- - int xf86GetNearestClock(ScrnInfoPtr scrp, int freq, Bool allowDiv2, - int *divider); - -
- This function returns the index of the closest clock to the - frequency freq given (in kHz). It assumes that - the number of clocks is greater than zero. It requires that the - numClocks and clock fields of the - ScrnInfoRec are initialised. The - allowDiv2 field determines if the clocks can be - halved. The *divider return value indicates - whether clock division is used when determining the clock returned. - - - - This function is only for non-programmable clocks. - - -
-
const char *xf86ModeStatusToString(ModeStatus status); @@ -6988,59 +6966,6 @@ use of some of these secondary mode helper functions.
-
- - ModeStatus xf86LookupMode(ScrnInfoPtr scrp, DisplayModePtr modep, - ClockRangePtr clockRanges, LookupModeFlags strategy); - -
- This function takes a pointer to a mode with the name filled in, - and looks for a mode in the modePool list which - matches. The parameters of the matching mode are filled in to - *modep. The clockRanges and - strategy parameters are as for the - xf86ValidateModes() function above. - - - - This function requires the modePool, - clock[], numClocks and - progClock fields of the ScrnInfoRec - to be initialised before being called. - - - - The return value is MODE_OK if a mode was found. - Otherwise it indicates why a matching mode could not be found. - - -
- -
- - ModeStatus xf86InitialCheckModeForDriver(ScrnInfoPtr scrp, - DisplayModePtr mode, ClockRangePtr clockRanges, - LookupModeFlags strategy, int maxPitch, - int virtualX, int virtualY); - -
- This function checks the passed mode against some basic driver - constraints. Apart from the ones passed explicitly, the - maxHValue and maxVValue fields of - the ScrnInfoRec are also used. If the - ValidMode field of the ScrnInfoRec - is set, that function is also called to check the mode. Next, the - mode is checked against the monitor's constraints. - - - - If the mode is consistent with all constraints, the return value - is MODE_OK. Otherwise the return value indicates - which constraint wasn't met. - - -
-
void xf86DeleteMode(DisplayModePtr *modeList, DisplayModePtr mode);