[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, Oct 09, 2007 at 12:56:37PM -0500, Timur Tabi wrote:
> I'm sure they're correct, my problem is that how can my driver know what 
> they are?

If they are correct, then you should only need to know about byte order
in my experience.

> I was hoping that there would be some compile-time constant I could check 
> that would give me this information.
> Yeah, I read that article some time ago when trying to diagnose the problem 
> I was seeing.  It does explain the point I'm trying to make.  We have a 
> device that's used on two product lines: one ARM-based, and one PowerPC.  
> The ARM is little-endian, and the PowerPC is big-endian.  The device can 
> support little-endian or big-endian data, as long as the bit-order matches 
> the byte-order.
> For now, I'm going to have to assume that they do match.

Well that is certainly the normal way it is done.  I think a few odd
machines had options for doing different bit orders, but the normal
setup is that it matches since that is the simplest layout when trying
to implement bit shifts in hardware.

Len Sorensen
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at
Please read the FAQ at

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux