lkml.org 
[lkml]   [2004]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch, 2.6, ppc] some modular framebuffer support
From
Date
Hi,

the following patch allows some accelerated framebuffers (aty128fb,
atyfb, radeonfb, and rivafb) and framebuffer console support itself to
be built as modules on ppc. Tested on a Powerbook Pismo, works very
well including XFree86 and DRI.

The first hunk suppresses a warning only, not sure about it.

Regards, Jens.

--- linux-2.6.7/drivers/video/fbmem.c.orig 2004-06-16 08:40:18.190362000 +0200
+++ linux-2.6.7/drivers/video/fbmem.c 2004-06-30 20:29:01.118531467 +0200
@@ -930,7 +930,7 @@
return -ENOMEM;
}

- if (copy_from_user(cursor.image.data, sprite->image.data, size) ||
+ if (copy_from_user((void*)cursor.image.data, sprite->image.data, size) ||
copy_from_user(cursor.mask, sprite->mask, size)) {
kfree(cursor.image.data);
kfree(cursor.mask);
--- linux-2.6.7/arch/ppc/kernel/ppc_ksyms.c.orig 2004-06-16 08:40:08.536549000 +0200
+++ linux-2.6.7/arch/ppc/kernel/ppc_ksyms.c 2004-06-30 21:54:32.018107682 +0200
@@ -15,6 +15,7 @@
#include <linux/delay.h>
#include <linux/ide.h>
#include <linux/pm.h>
+#include <linux/fb.h>

#include <asm/page.h>
#include <asm/semaphore.h>
@@ -351,3 +352,11 @@
extern unsigned long agp_special_page;
EXPORT_SYMBOL(agp_special_page);
#endif
+#ifdef CONFIG_FB
+extern int __init mac_find_mode(struct fb_var_screeninfo *,
+ struct fb_info *, const char *,
+ unsigned int);
+extern int mac_vmode_to_var(int, int, struct fb_var_screeninfo *);
+EXPORT_SYMBOL(mac_find_mode);
+EXPORT_SYMBOL(mac_vmode_to_var);
+#endif

--
J'qbpbe, le m'en fquz pe j'qbpbe!
Le veux aimeb et mqubib panz je pézqbpbe je djuz tqtaj!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.038 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site