Skip to contentSkip to conversation

Framebuffer/vbe separation

DISCUSSION Vladimir Serbinenko 2 participants 2 messages Apr 20, 2009 – Apr 21, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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.