Framebuffer/vbe separation
Hello, currently vbe module contains all the framebuffer functions which are actually adapter-independent and I think more adapters can be implementing by providing a function which sets mode and framebuffer. Additionally it provides an interface to retrieve framebuffer address for loaders: check that current mode is framebuffer based and if it is, take the address. May I do it that way?
Regards
Vladimir 'phcoder' Serbinenko
Quoted 6 lines · Vladimir Serbinenko
Hello, currently vbe module contains all the framebuffer functions which are actually adapter-independent and I think more adapters can be implementing by providing a function which sets mode and framebuffer. Additionally it provides an interface to retrieve framebuffer address for loaders: check that current mode is framebuffer based and if it is, take the address. May I do it that way?
Yes. I have nothing against making frame buffer code as common code as possible because other systems would also benefit from it. Just keep in mind that other video drivers will also need to use it and do not call directly VBE driver itself, provide proper interface over Video Subsystem.