Re: [PATCH 17/41] fbdev: Add drawing functions forframebuffers in system RAM
From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2007-05-02 20:32:58
From: "Antonino A. Daplas" <adaplas@gmail.com>
Date: 2007-05-02 20:32:58
On Wed, 2007-05-02 at 21:22 +0100, James Simmons wrote:
quoted
Hi Tony,quoted
The generic drawing functions (cfbimgblt, cfbcopyarea, cfbfillrect) assume that the framebuffer is in IO memory. However, we have 3 drivers (hecubafb, arcfb, and vfb) where the framebuffer is allocated from system RAM (via vmalloc). Using _raw_read/write and family for these drivers (as used in the cfb* functions) is illegal, especially in other platforms.This is also true for ps3fb. I'll update the support for that once this patch has hit mainline.Bloat.
Only the source gets larger. Only drivers that need it will compile it.
It would be much easier to replace the FB_WRITEL and FB_READL macros.
Of course it's not as simple as replacing FB_WRITEL and FB_READL. Think very carefully. Hint1: #define FB_MAX 32 Hint2: sparse Tony ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/