How to add an (S)VGA driver to XFree86
: The Driver Itself
: The Restore() function
Previous: The EnterLeave() function
Next: The Save() function
6.7. The Restore() function
The Restore() function is used for restoring a saved video state. Note
that `restore' is a bit of a misnomer - this function is used to both
restore a saved state and to install a new one created by the server. The
Restore() function must complete the following actions:
- Ensure that Bank 0 is selected, and that any other state
information required prior to writing out a new state has been
set up.
- Call vgaHWRestore() to restore the generic VGA portion of the
state information. This function is in the vgaHW.c file.
- Restore the chipset-specific portion of the state information.
This may be done by simply writing out the register, or by
doing a read/modify/write cycle if only certain bits are to
be modified. Be sure to note the comment in the sample driver
about how to handle clock-select bits.
How to add an (S)VGA driver to XFree86
: The Driver Itself
: The Restore() function
Previous: The EnterLeave() function
Next: The Save() function