Re: mono, gray and index configs
From: Jon Smirl <hidden>
Date: 2005-08-20 03:10:04
The patch is just for testing, don't send it on. The radeonfb portion
is definitely not finished.
This adds an optional function to each driver that advertises what
configs it offers.
+char *radeonfb_getconfigs(struct fb_info *info)
+{
+ return "I4\nI8\nA1R5G5B5\nR5G6B5\nR8G8B8\nA8R8G8B8\nA4R4G4B4\nA8I8\nA2R10G10B10\n";
+}
static struct fb_ops radeonfb_ops = {
.owner = THIS_MODULE,@@ -1873,6 +1909,7 @@ static struct fb_ops radeonfb_ops = { .fb_fillrect = radeonfb_fillrect, .fb_copyarea = radeonfb_copyarea, .fb_imageblit = radeonfb_imageblit, + .fb_get_configs = radeonfb_getconfigs, };
If you know what configs the driver support try setting them via the sysfs attribute. You can also check out your config match code by putting in non-supported configs and setting what gets returned in the attribute. -- Jon Smirl jonsmirl@gmail.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf