From: Takashi Oe <to...@un...> - 2001-01-16 20:54:42
|
On 1/16/01 1:23 PM, James Simmons wrote: > > Hi folks!! > > Since 2.4 is now out and the new console system is becoming stable its > time to discuss the new api for fbcon again. I updated skeletonfb for a > example and posted here. Feel free to addd input to the design. [...] > /* > * Set a single color register. The values supplied have a 16 bit > * magnitude. Return != 0 for invalid regno. This routine assumes > * your graphics hardware is packed pixel based (most are :-). > * Return != 0 for invalid regno. > */ > static int xxxfb_setcolreg(unsigned regno, unsigned red, unsigned green, > unsigned blue, unsigned transp, > const struct fb_info *info) Could there be a multiple color version as well? For 2.4, I have my own fb_set_cmap to do that since a cmap access requires a synchronization with vsync for the first one on my machine, and I don't want to do the synchronization for every cmap change. Want to do: - vsync - multiple cmap change rather than: - vsync - a cmap change - vsync - a cmap change - .... If there is a way to override fb_set_cmap (or a new api's equivalent) calling setcolreg, that would be okay, too. [...] > info.pseudo_palette = xxxfb_pseudo_palette; How is this psuedo_palette used for new api? Takashi Oe |