lkml.org 
[lkml]   [1999]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC: Devices, buses and hotplug
David S. Miller <davem@redhat.com> wrote:

> I never got down to facts about whether it was an issue of the PPC
> supporting it in HW or the PPC developers just mis-designed their
> framework and now require big endian friendly devices just to work.

PPC has byte-swapped load and store instructions, and the
in*/out*/read*/write* family of macros use them. It doesn't have the
endianness selectable on a per-page basis like the ultra does, where
you can do a normal load/store to a little-endian page and the
hardware byte-swaps it for you (if I've understood it correctly).

So if you have a frame buffer with multi-byte pixels, you can either
use a big-endian aperture if there is one, or have versions of all
your framebuffer access routines which use the byte-swapped loads and
stores instead of normal loads and stores. That would be possible
(and would even be just as fast) but it would be a little ugly.

Paul.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.150 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site