linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@gmail.com>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: Driver for Sharp LH155BA
Date: Tue, 01 Aug 2006 08:35:57 +0800	[thread overview]
Message-ID: <44CEA1ED.8030103@gmail.com> (raw)
In-Reply-To: <170385E48B041543AC99CCD09E325AD1952BB0@mail.rogermanagement.com.au>

Richard Wolf wrote:
> Hi,
> 
> I'm writing a driver for the Sharp LH155BA LCD driver.  This is a driver
> designed for controlling small/medium lcd panels (up to 128 x 64 pixels).  
> 
> I'm trying to decide whether it is sensible to write a frame buffer driver
> for a device of this nature.  Does the frame buffer abstraction make sense
> for a display this small?  

The dimensions of the display does not matter.

> 
> On our target hardware it is not possible to access the display memory
> directly.  Rather, all accesses to display memory and other control
> registers are through a small number of io ports.  Therefore it is not
> possible to map display memory.  Is this relevant?  

Yes, if the display memory is not mappable, then it won't be usable as
a driver for X, for example.

You can however allocate a shadow buffer in system RAM which can be mmapp'ed.
Then on intervals, perhaps by interrupt or timer, update the physical screen.
Unfortunately, this is inefficient, as you may be updating the screen even if
the shadow buffer haven't changed.  But that is the best you can do without
hacking the kernel.

Another option is to just forget about mmap, and create your own fb_read and
fb_write hooks.  This is more efficient, but not all apps use this method to
update the framebuffer. The driver will be usable as a console though.

Tony


-------------------------------------------------------------------------
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

  reply	other threads:[~2006-08-01  0:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-01  0:31 Driver for Sharp LH155BA Richard Wolf
2006-08-01  0:35 ` Antonino A. Daplas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-01  0:59 Richard Wolf
2006-08-01  1:18 ` Antonino A. Daplas
2006-08-01  6:58   ` Markus Schorer
2006-08-02  1:00 Richard Wolf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44CEA1ED.8030103@gmail.com \
    --to=adaplas@gmail.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).