Re: [PATCH] IDE: don't offer IDE_GENERIC on ia64

Maciej W. Rozycki
2005-08-12T10:33:31Z

On Thu, 11 Aug 2005, Bjorn Helgaas wrote:

> So the scenario in question (correct me if I'm wrong) is that we
> have a PCI IDE device that is handed off in compatibility mode (and
> may only work in that mode). In that case, the PCI *device* still
> exists, so shouldn't the IDE PCI code claim that device, notice that
> it's in compatibility mode, and use the legacy ports and IRQs if
> necessary?

You may have a look at how we've solved this for MIPS, where we have a
mixture of bus arrangements for different platforms, starting from pure
ISA/EISA ones, ones with PCI and a PCI-(E)ISA bridge, legacy-free PCI ones
and systems with no Intel-style buses at all, like TURBOchannel ones.
See "asm-mips/mach-generic/ide.h" for a simple solution that fits all so
far. I'm not sure whether the most recent version of the file has been
merged upstream -- you may have to have look at:
"http://www.linux-mips.org/cvsweb/linux/include/asm-mips/mach-generic/ide.h"
instead.

Maciej