How to change endian attribute for a memory region
Ralph Blach
rcblach at us.ibm.com
Wed Oct 16 02:40:29 EST 2002
No has written an IOremap_LE.
Chip
"Laurent Mohin" <laurent.mohin at acterna.com>@lists.linuxppc.org on
10/15/2002 11:00:02 AM
Sent by: owner-linuxppc-embedded at lists.linuxppc.org
To: Ralph Blach/Raleigh/IBM at IBMUS
cc: Matt Porter <porter at cox.net>, linuxppc-embedded at lists.linuxppc.org
Subject: Re: How to change endian attribute for a memory region
Ralph,
That was the purpose of my question. Has anybody written this IOremap_LE
function?
Laurent
"Ralph Blach" <rcblach at us.ibm.com> on 15/10/2002 16:34:14
To: Matt Porter <porter at cox.net>
cc: linuxppc-embedded at lists.linuxppc.org
Subject: Re: How to change endian attribute for a memory region
OK, I know this is absolute HERESY for all you out there, and would never
be supported in the kernel tree,
and probably with very good reasons, but I'll mention it anyway.
ON the 405 and the 440 class processors, there is an endian bit in the TLB
which would make a 4k region
little endian. To use this bit one would have to write an IOremap_LE and
support the bit in the page table,
but it could be used.
There are probabley better ways that are more inline with the PPC
philosophy.
Chip
Matt Porter <porter at cox.net>@lists.linuxppc.org on 10/15/2002 10:15:46 AM
Sent by: owner-linuxppc-embedded at lists.linuxppc.org
To: Laurent Mohin <laurent.mohin at acterna.com>
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