From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Antonino A. Daplas" Subject: Re: monochrome framebuffer driver on EDB9307 Date: Wed, 02 Aug 2006 13:22:44 +0800 Message-ID: <44D036A4.8070407@gmail.com> References: Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0399904551==" Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1G89C0-00014X-Py for linux-fbdev-devel@lists.sourceforge.net; Tue, 01 Aug 2006 22:22:52 -0700 Received: from py-out-1112.google.com ([64.233.166.176]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1G89Bz-0003Yc-9D for linux-fbdev-devel@lists.sourceforge.net; Tue, 01 Aug 2006 22:22:52 -0700 Received: by py-out-1112.google.com with SMTP id d42so1421505pyd for ; Tue, 01 Aug 2006 22:22:50 -0700 (PDT) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: linux-fbdev-devel@lists.sourceforge.net --===============0399904551== Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit gaof fei wrote: > Dear List, > > I'm with linux-2.6.8 on EDB9307(ep93xx). > At the moment, the framebuffer driver(ep93xxfb.c) doesn't support > monochrome mode. > However, I would like to support the mode. > What can I do with ep93xxfb.c or anything else? In fbdev parlance, monochrome means black and white and the number of bits per pixel does not matter. (It's possible to have 1-bit but the visual is pseudocolor). Basically, set fix->visual = FB_VISUAL_MONO01 (or MONO10). Then set var->bits_per_pixel and var->{green|red|blue} to the appropriate numbers. Assuming 1-bit monochrome: var->bits_per_pixel = var->green.length = var->red.length = var->blue.length = 1; var->green.offset = var->red.offset = var->blue.offset = 0; Tony --===============0399904551== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============0399904551== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-fbdev-devel mailing list Linux-fbdev-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel --===============0399904551==--