Mailinglist Archive: radeonhd (436 mails)

< Previous Next >
Re: [radeonhd] Driver doesn't work on big-endian machines
  • From: "Alex Deucher" <alexdeucher@xxxxxxxxx>
  • Date: Tue, 29 Jul 2008 17:24:40 -0400
  • Message-id: <a728f9f90807291424h10e39e70tf154de28ca192502@xxxxxxxxxxxxxx>
On Tue, Jul 29, 2008 at 5:11 PM, Ales Fiala <ales.fiala@xxxxxx> wrote:
Is there any plan to make the radeonhd driver work on big-endian
machines?

I am particularly talking about the code that accesses the atombios
data structures, which are little-endian. An example would be a
line like the following, from rhdAtomGetTables():

unsigned int atom_romhdr_off = *(unsigned short*)
(base + OFFSET_TO_POINTER_TO_ATOM_ROM_HEADER);

This will retrieve the offset incorrectly byte-swapped on a
big-endian machine.

I think accesses like these need to be wrapped in a macro.

radeon has support for atom on big endian that could be ported over.

Alex
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx

< Previous Next >
References