Thread (5 messages) 5 messages, 2 authors, 2005-02-21

Re: sysfs support for framebuffer

From: Jon Smirl <hidden>
Date: 2005-02-21 22:15:40

On Mon, 21 Feb 2005 21:36:38 +0000 (GMT), James Simmons
[off-list ref] wrote:
Now there is a problem to the above. If we have more than one graphics
card it will get messy. I would guess the X server wants to know what
things belong to what device. For example the matrox card supports dual
heads. What if we have 3 graphics cards. Which two fbX devices belong to the
matrox card. You could scan all the directories and organize a list for
what belongs to what but that would be messy. Plus what if we plug
a monitor in. We have to know which things (fb, mmio) effect its output.
I don't see a problem with the current structure. A two headed card
would show up as fb0 and fb1. The modelist for fb0 and fb1 would both
contain an entry for merged-fb. If you own both devices, then setting
the merged-fb mode will simply disable the other device. Same for
mirroring. If you don't own both devices the shared modes won't be in
the list. Device fb2 would list none of the shared modes. If you
really need to know then both fb0 and fb1 are linked to the same
device node in sysfs.

You are also pointing out a weakness in the fb_info structure. fb_info
is not designed for multiple heads. I can copy it like the matrox case
but this causes a lot of fields that should not be shared to be
copied. A much better design would be to break the structure up into
fb_device and fb_head. Then have an fb_head struct for each head. This
would also reduce the surface area of what fbcon is seeing since it
only needs to see the fb_head structure.

-- 
Jon Smirl
jonsmirl@gmail.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help