How to add an (S)VGA driver to XFree86 : The Driver Itself : The ClockSelect() function
Previous: The Ident() function
Next: The Probe() function

6.4. The ClockSelect() function

The ClockSelect() function is used during clock probing (i.e. when no `Clocks' line is specified in the XF86Config file) to select the dot-clock indicated by the number passed in the parameter. The function should set the chipset's clock-select bits according to the passed-in number. Two dummy values will be passed in as well (CLK_REG_SAVE, CLK_SAVE_RESTORE). When CLK_REG_SAVE is passed, the function should save away copies of any registers that will be modified during clock selection. When CLK_REG_RESTORE is passed, the function should restore these registers. This ensure that the clock-probing cannot corrupt registers.

This function should return FALSE if the passed-in index value is invalid or if the clock can't be set for some reason.


How to add an (S)VGA driver to XFree86 : The Driver Itself : The ClockSelect() function
Previous: The Ident() function
Next: The Probe() function