How to change endian attribute for a memory region

Laurent Mohin laurent.mohin at acterna.com
Wed Oct 16 00:57:56 EST 2002


Matt,

In fact, after registering my frame buffer driver, my video memory is
accessed directly by the X server.
So I can't control the instruction (writew or other) it will use.

Thanks,

Laurent




Matt Porter <porter at cox.net> on 15/10/2002 16:15:46

To:    Laurent Mohin/SE/Wavetek at Global
cc:    Stefan Roese <stefan.roese at esd-electronics.com>, Michael Meriin
       <Michael at KSWaves.com>, linuxppc-embedded at lists.linuxppc.org
Subject:    Re: How to change endian attribute for a memory region




On Tue, Oct 15, 2002 at 01:07:19PM +0200, Laurent Mohin wrote:
>
> Stefan,
>
> I'm the initiator of the question.
> I use the Epson chip in big endian mode. The problem is that in 16 bpp
> mode, the RGB mapping into video memory is fixed by the chip and
described
> in little endian format.
>
> By the way, I really studied the chip and if I want to be able to manage
> both 8 bpp and 16 bpp mode, I need to be able to change the endianness
> attribute of the memory region.

Why wouldn't you access video memory via a sthbrx instruction (writew)?

Regards,
--
Matt Porter
porter at cox.net
This is Linux Country. On a quiet night, you can hear Windows reboot.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list