
This function sets a new vertical refresh rate for a given mode and returns the current vertical refresh rate and available refresh rate for a given non-VGA mode.
This sub-function sets a new default refresh rate for the selected pipe. If the mode is currently active, the CRT controller and other registers will be automatically programmed setting the requested refresh rate.
Note: This function is not entirely compatible with the Desktop and Mobile versions. It is not possible to set the refresh rate for a given mode in advance. This function sets the “desired” refresh rate which will be applied to all subsequent mode sets when possible. If the mode provided in BL is the current mode, then a mode change will be automatically performed.
AX = 5F05h, Refresh Rate function
BH = 00h, Set Refresh Rate sub-function
ECX = Refresh rate (indicated by setting one bit):
AX = Return Status (function not supported if AL != 5Fh):
This sub-function returns current vertical refresh rate for the selected pipe and available refresh rates information for a given Non-VGA mode.
Note: This sub-function returns a status of supported but failed (AX = 015Fh) if executed with a standard VGA mode.
AX = 5F05h, Refresh Rate function
BH = 01h, Get Refresh Rate sub-function
AX = Return Status (function not supported if AL != 5Fh):
EBX = Available refresh rates (indicated by one or more bits set):
ECX = Current refresh rate (see EBX for bit definitions)