linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Wolfram <wolfram@microdatec.de>
To: linux-fbdev-devel@lists.sourceforge.net
Subject: Endianess problem in fbcon and cfbimgblt when using monochrome fb
Date: Mon, 2 Oct 2006 14:03:32 +0200	[thread overview]
Message-ID: <200610021403.33691.wolfram@microdatec.de> (raw)


Hi,

I have written a framebuffer driver for an Epson SED1335 based LCD for the ARM 
platform. The LCD is monochrome, so the driver currently only supports 1 bpp. 
The ARM is little-endian.

Everything works fine except when using the fbcon. All text printed to that 
console appears with having each character mirrored on the y axis. So it 
looks like an endian problem.

I found a message from April ("[patch 19/26] fbcon: Fix big-endian bogosity in 
slow_imageblit()") which fixes a problem for big-endian machines. After 
reverting that patch and changing

#define FB_BIT_NR(b)              (b)

to

#define FB_BIT_NR(b)              (7 - (b))

the text appears as expected. So my question is if the patch might be wrong 
and should only change the defines for FB_BIT_NR? Or could the problem be 
somewhere else?

Regards,
Mike Wolfram
-- 
MicroDatec GmbH
Zeulenrodaer Str. 17, 99091 Erfurt, Germany
fon +49-361-77821-0, fax +49-361-77821-30
mobile +49-179-4902190

-------------------------------------------------------------------------
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-10-02 12:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-02 12:03 Mike Wolfram [this message]
2006-10-02 13:01 ` Endianess problem in fbcon and cfbimgblt when using monochrome fb Michel Dänzer

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=200610021403.33691.wolfram@microdatec.de \
    --to=wolfram@microdatec.de \
    --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).