Subject: Re: non-swapping bus_space_read/write()
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-kern
Date: 03/18/2004 18:07:01
Manuel Bouyer <bouyer@antioche.eu.org> writes:
> > I finally fixed the if_ti driver to work on big-endian systems.
> > The problem was quite simple: bus_space_read/write4() convert data
> > to little-endian (which is expected as it's a PCI bus), but the tigon
> > can run in big-endian mode.
What's the benefit of running the tigon in big-endian mode in the
first place?
Since PCI is mostly little-endian, making the responsible drivers
byte-swap for devices that are behaving "oddly" with respect to PCI
seems reasonable, though.
- Nathan