Registration

A display driver registers itself with VFLATD by first calling the VflatD_Query function to verify that the correct version of VFLATD has been loaded, then calling the VflatD_Create_Virtual_Frame_Buffer function to register itself and obtain a selector identifying the logical frame buffer.

A display adapter must also specify a bank-switch procedure when it calls the VflatD_Create_Virtual_Frame_Buffer function. Thereafter, whenever a page fault occurs during a drawing operation, VFLATD calls the bank-switch procedure, directing it to map a block of video data into the physical frame buffer. The procedure must be written using 32-bit code and must be a maximum of 100 bytes in length. When the procedure is called, EAX identifies the new bank to be swapped into the physical frame buffer. The procedure must save all registers except EAX and EDX and must not return a value.

This section is a reference to the virtual flat-frame buffer device.