From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessio Sangalli Subject: Re: Framebuffer using system memory Date: Sat, 25 Apr 2009 12:08:22 -0700 Message-ID: <49F35FA6.9020904@manoweb.com> References: <49F263D0.4030108@manoweb.com> <10f740e80904250045u1e617c9v2d49f30fce1cf40@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by h25xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LxnEx-0006FX-HF for linux-fbdev-devel@lists.sourceforge.net; Sat, 25 Apr 2009 19:08:43 +0000 Received: from moutng.kundenserver.de ([212.227.126.171]) by 72vjzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1LxnEs-0002DP-4q for linux-fbdev-devel@lists.sourceforge.net; Sat, 25 Apr 2009 19:08:43 +0000 In-Reply-To: <10f740e80904250045u1e617c9v2d49f30fce1cf40@mail.gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Geert Uytterhoeven Cc: "linux-fbdev-devel@lists.sourceforge.net" Geert Uytterhoeven wrote: > Alternatively, you could use__alloc_bootmem() in the early platform > code to reserve > the memory, cfr. arch/powerpc/platforms/ps3/setup.c So the usage patter seems to be: - I use __alloc_bootmem() to reserve memory - I export a structure that contains data about this memory (location and size mainly) - In the init of my framebuffer driver I use the data in that structure to configure the hardware - I map that area of memory to userspace when they try to mmap() this fb device Can you comment on this? bye Alessio ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects