doubts
Hi,
In franebuffer fb_info structure, there are 4 functions to be used by fbcon.c these are:
(*updatevar)();
(*changevar)();
(*blank)();
Could anybody tell me the logic of above functions. Although they are mentioned in pl110.c and vfb.c but only function header is given.
Regards
Manish
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
Quoted 3 lines · Manish RATHI
Hi,
In franebufferfb_infostructure, there are 4 functions to be used byfbcon.cthese are:
4? You asked for 3 functions :-)
Quoted 1 line
(*updatevar)();
This is a function called by fbcon.c when going to update a user defined part of the display, in order to pan/wrap; updatevar() usually sets the new driver's "var" xoffset and yoffset and then tells the video controller the new screen start address.
Quoted 1 line
(*changevar)();
Oh, I didn't see any driver using that. In the case of fbcon_changevar, it just calls fbcon_setup (specifying not to show the logo again), which resets the framebuffer settings such as font and pan/wrap offsets.
When one calls (*setvar)(), which modifies the display variable configuration, it checks for the existence of a non-null function pointer to changevar and if found, calls that function. I really don't know why a driver should need to restart things when changing var data. Could anyone help to clarify that?
Quoted 1 line
(*blank)();
This function does the screen blanking routine, not required to be implemented by the driver. There's a good explanation of it on skeletonfb.c.
Quoted 6 lines
Could anybody tell me the logic of above functions. Although they are mentioned in
pl110.candvfb.cbut only function header is given.Regards
Manish
Cheers,
Lucas
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
Quoted 11 lines · Lucas Correia Villa Real
Quoted 1 line · Manish RATHI
(*changevar)();
Oh, I didn't see any driver using that. In the case of
fbcon_changevar, it just callsfbcon_setup(specifying not to show the logo again), which resets the framebuffer settings such as font and pan/wrap offsets.When one calls (*setvar)(), which modifies the display variable configuration, it checks for the existence of a non-null function pointer to changevar and if found, calls that function. I really don't know why a driver should need to restart things when changing var data. Could anyone help to clarify that?
It's there so fbcon can resize the emulated text console based on the new screen size. E.g. when switching from 640x480 to 1024x768 using fbset, the text console will change from 80x30 to 128x48 (assuming a 8x16 font).
It's broken in 2.6, though (unless it got fixed while I was on holidays last week :-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504