From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from web15210.mail.cnb.yahoo.com (web15210.mail.cnb.yahoo.com [202.165.105.140]) by ozlabs.org (Postfix) with SMTP id 8C32CDDEBE for ; Thu, 26 Jul 2007 18:04:45 +1000 (EST) Date: Thu, 26 Jul 2007 15:58:04 +0800 (CST) From: =?gb2312?q?=C0=FB=C6=BD=20=D5=C5?= Subject: i have a question about:ppc pci and frame_buffer To: linuxppc-embedded@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-27569218-1185436684=:18053" Message-ID: <749612.18053.qm@web15210.mail.cnb.yahoo.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-27569218-1185436684=:18053 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit now i have a question: i know ppc is big_endian and pci bus is little_endian.i made a graphics pci card use big_endian. when i use graphics card to show QT 's picture through VGA ,the color is not what i wanted, it's inversed ,others are in right position. 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 ################################################# through mmap, the ppc display the screen color through direct pci bus control ,how can i change it?? change kernel?? (i don't know where to change) or change others?? --------------------------------- ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ --0-27569218-1185436684=:18053 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 8bit
now i have a question:
i know ppc is big_endian and pci bus is little_endian.i made a graphics pci card use big_endian.
when i use graphics card to show QT 's picture through VGA ,the color is not what i wanted, it's inversed ,others are in right position.
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
#################################################
 
through mmap, the ppc display the screen color through direct pci bus control ,how can i change it?? 
change kernel?? (i don't know where to change)
or change others??


ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ --0-27569218-1185436684=:18053--