|
From: Geert U. <ge...@li...> - 2007-08-31 09:24:09
|
On Fri, 31 Aug 2007, Pavel Pisa wrote:
> Even if swapping support is enabled, I would like to allow control
> actual swapping through some field in mode information and propagated
> to
> struct fb_info->var or fix
> struct fb_var_screeninfo
> struct fb_fix_screeninfo
>
> have you idea for name and correct place for this SWAP_PIXELS_IN_BYTE
> bit/flag.
The proper place for a driver to advertise this (for the current mode) is
fb_fix_screeninfo.type. We can add a new type, e.g.
FB_TYPE_PACKED_PIXELS_SWAP, for non-native ordering of pixels.
To control byte swapping when setting the video mode, we could use
fb_var_screeninfo.nonstd and a new FB_NONST_* value.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li...
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
|