Skip to contentSkip to conversation

matroxfb update to new API

PATCH Petr Vandrovec 1 participant 1 message May 27, 2003 Framebuffer layer

lore
Share & tools
lore
#0 lore raw
Quoted 18 lines · Sven Luther
Quoted 17 lines · Petr Vandrovec
Quoted 11 lines · Nicolas Souchu
Quoted 8 lines · Petr Vandrovec

Hi,
I just created stripped down version of matroxfb - it is available
as diff for 2.5.70 at ftp://platan.vc.cvut.cz/pub/linux/matrox-latest/mga-stripdown-2.5.70.gz.

I'll still update my own version of fbdev layer and matroxfb, as
this stripped down driver is quite unusable for me.
Petr Vandrovec

What do you mean exactly?

What I say... matroxfb driver & fbcon layer which supports fbset, updates all visible screens, supports text mode, implements clear_margins as black color and not current background color.

Quoted 8 lines
Quoted 5 lines

You can download that patch for several months from ftp://platan.vc.cvut.cz/pub/linux/matrox-latest - current latest is mga-2.5.69-c1155.gz, it applies to 2.5.70 with one offset. If you do not have Matrox graphics card in your device, then this patch is of no use for you.

If i have a matrox card and another supported by the new API, will both work with this latest patch ?

Unfortunately no. It should work if you'll add dummy 'con' argument to the fb_ioctl, and dummy struct vc_data* to fb_check_var. Rest of code should correctly branch according to the value of fbinfo's matroxfb_switch_con field, and fbops's fb_{get,set}_cmap, fb_putcs, set_font and cursor fields (NULL => use cfb_imageblit for putc, fb_cursor for cursor, and generic code for setfont and cmap).

I never tried to update new vesafb to this interface, as supporting fbset on /dev/tty* was already vetoed long ago, and I have no problem with maintaining it outside of tree.
Best regards,
Petr Vandrovec [email protected]

-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge