Re: [PATCH 2/9] viafb: VIA Frame Buffer Device Driver

From
Ondrej Zajicek <hidden>
Date
2008-05-08 07:58:31
Also in
lkml
Reply to
unknown sender, 2008-05-07
On Wed, May 07, 2008 at 07:09:28PM +0800, JosephChan@via.com.tw wrote:
quoted hunk ↗ jump to hunk
+u16 red256[] = {
+	0x0, 0x0, 0x0, 0x0, 0xa800, 0xa800, 0xa800, 0xa800, 0x5400, 0x5400,
+	0x5400, 0x5400, 0xfc00, 0xfc00, 0xfc00, 0xfc00,
...
quoted hunk ↗ jump to hunk
+u16 green256[] =
+    { 0x0, 0x0, 0xa800, 0xa800, 0x0, 0x0, 0x5400, 0xa800, 0x5400, 0x5400,
+	0xfc00, 0xfc00, 0x5400, 0x5400, 0xfc00, 0xfc00,
...
quoted hunk ↗ jump to hunk
+};
+u16 blue256[] =
+    { 0x0, 0xa800, 0x0, 0xa800, 0x0, 0xa800, 0x0, 0xa800, 0x5400, 0xfc00,
+	0x5400, 0xfc00, 0x5400, 0xfc00, 0x5400, 0xfc00,
+	0x0, 0x1400, 0x2000, 0x2c00, 0x3800, 0x4400, 0x5000, 0x6000,
...
quoted hunk ↗ jump to hunk
+};
+
+struct fb_cmap viafb_256_colors = { 0, 256, red256, green256, blue256, NULL
Standard pattern is to allocate colormap using fb_alloc_cmap(). This function
also fills colormap with common default colormap. It is unnecessary to have
another default colormap.

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Thread (3 messages) 3 messages, 3 authors, last reply 2008-05-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help