Re: [PATCH] remove dead drivers/ide/ppc/swarm.c

From: Maciej W. Rozycki
Date: Tue May 04 2004 - 09:22:37 EST


On Tue, 4 May 2004, Ralf Baechle wrote:

> > While at swarm.c ...
> >
> > > * Boards with SiByte processors so far have supported IDE devices via
> > > * the Generic Bus, PCI bus, and built-in PCMCIA interface. In all
> > > * cases, byte-swapping must be avoided for these devices (whereas
> > > * other PCI devices, for example, will require swapping).
> >
> > Why does byte-swapping must be avoided for PCI IDE
> > but not for other PCI devices?
>
> Simply a result of the way the IDE bus is hooked up to the generic bus of
> the Sibyte chip. I'd have to research details if you're interested ...

I suppose the comment is incorrect, at least for the PCI bus (the two
other kinds of attachments use GPIO, so they may well be
endian-independent). The PCI and HT I/O space accesses are done via the
non-swapping address space, so data will appear as swapped in the
big-endian configuration of the system.

I had a brief discussion on the hack last Summer with the author of the
code, but had no time to dig more deeply into it. Now the author is gone,
but I'll have a look at it. Don't hold your breath, though.

--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@xxxxxxxxxxxxx, PGP key available +
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/