Re: [PATCH] 2.5.14 IDE 55

Geert Uytterhoeven
2002-05-07T16:59:39Z

On Tue, 7 May 2002, Bartlomiej Zolnierkiewicz wrote:
> On Tue, 7 May 2002, Roman Zippel wrote:
> > > BTW.> It should indeed take both in to account as far as I can
> > > see.(Despite the fact that I could affort an ATARI I hardly
> > > can find one...)
> >
> > That's not necessary, but I'm only afraid that functionality gets lost,
> > which isn't needed on the latest hardware.
> >
> > bye, Roman
>
> we should fix atari byte-swapped ide in ata_read() like we do in
> atapi_read() then ide_fix_driveid() will make rest...
> (or I am missing something?)

Here you can mix two different issues:
- Ataris have a byte-swapped IDE interface. Hence we need support to swap
data for interoperability (not only on Atari: imagine an Atari disk
connected to a PC)
- IDE is little endian, so the drive identification is little endian too.
To make things more complex, not only multibyte objects, but also text
strings are byteswapped.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds