LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: erik@dd.nec.com.au (Erik Christiansen)
To: linuxppc-embedded@ozlabs.org
Subject: Re: I have a question about:ppc pci and frame_buffer
Date: Thu, 26 Jul 2007 19:11:10 +1000	[thread overview]
Message-ID: <20070726091110.GB8884@dd.nec.com.au> (raw)
In-Reply-To: <749612.18053.qm@web15210.mail.cnb.yahoo.com>

On Thu, Jul 26, 2007 at 03:58:04PM +0800, ???? ?? wrote:
>   here below is what i want :
>   #################################################
>   0..................7  8............15 16..............24 25.................31 
>            B                    G                   R                TRANS
>   now it is this:
>   #################################################
>   0..................7  8............15 16..............24 25.................31 
>         TRANS               R                   G                   B

In U-boot, there is what you might do yourself, perhaps:

#define LONGSWAP(x) ((((x) & 0x000000ff) << 24) | (((x) & 0x0000ff00) << 8)|\
           (((x) & 0x00ff0000) >>  8) | (((x) & 0xff000000) >> 24) )
#define PCISWAP(x)   LONGSWAP(x)

Any good for your purpose?

Erik

      reply	other threads:[~2007-07-26  9:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26  7:58 i have a question about:ppc pci and frame_buffer 利平 张
2007-07-26  9:11 ` Erik Christiansen [this message]

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=20070726091110.GB8884@dd.nec.com.au \
    --to=erik@dd.nec.com.au \
    --cc=linuxppc-embedded@ozlabs.org \
    /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