Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CISeZ-00011p-5V for mharc-grub-devel@gnu.org; Fri, 15 Oct 2004 10:01:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CISeX-0000zS-0M for grub-devel@gnu.org; Fri, 15 Oct 2004 10:01:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CISeW-0000yv-7D for grub-devel@gnu.org; Fri, 15 Oct 2004 10:01:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CISeW-0000yq-2F for grub-devel@gnu.org; Fri, 15 Oct 2004 10:01:52 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CISXF-0005OP-F1 for grub-devel@gnu.org; Fri, 15 Oct 2004 09:54:21 -0400 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id 7E79F906E for ; Fri, 15 Oct 2004 15:51:26 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 04821-08 for ; Fri, 15 Oct 2004 15:51:24 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 77EC19053 for ; Fri, 15 Oct 2004 15:51:24 +0200 (CEST) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id 28A07C047 for ; Fri, 15 Oct 2004 15:51:24 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: grub-devel@gnu.org From: Marco Gerards Date: Fri, 15 Oct 2004 13:51:26 +0000 Message-ID: <878ya8144h.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Framebuffer X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2004 14:01:53 -0000 Hi, As I quickly mentioned in my email yesterday, I want to have a look at the vga terminal. This vga terminal is just one of the many framebuffers that will be implemented, as far as I am concerned. On the PC we will have the VESA terminal someday. It should be possible to get a framebuffer on the new world macs too. On some machines there is only a framebuffer and no textmode. To avoid code duplication it might be the best to write one generic terminal called framebuffer which can be configured to work with many kinds of framebuffers. In this email I will write down a suggestion how it should work. I have little experience with framebuffers on a lot of machines so I am not sure if what I am suggestion is sane or portable. I hope you will make suggestions to make this design as good as possible or come forwards with alternative solutions. The main thing that I want to do is creating a generic terminal called "framebuffer". On its own it is useless, but it can communicate with another kind of modules, video drivers. The framebuffer should always be initialized with a video driver and depending on the size of the screen and its depth it reserves memory. Whenever a character is written to the terminal, the generic framebuffer driver writes it to the internal buffer. When it is required to synchronize the screen that is displayed with the one in memory, it calls a function in the video driver. To speed up things the framebuffer sends updates to the video driver with updates so not the entire buffer has to be copied. The video driver is responsible to write the updates to video memory, bank switching and making sure it is displayed on the screen. That means the video driver can do stuff like double buffering, etc. The main advantage of this approach is that the framebuffer terminal can do anything including showing the splashimage, etc. All smart things happen there, the video drivers just do the stupid work. That means that whenever someone wants to implement a framebuffer, he only has to write a video driver and not a complete terminal driver. Does this make sense or does this just suck? I hope many people will reply on this so I can start hacking ASAP. Thanks, Marco