Re: PATCH: IDE - sensible probing for PCI systems

From: Alan Cox
Date: Tue Jun 21 2005 - 13:53:05 EST


> How is the range defined -- is there a way for us to find it? I'd assume
> in the absence of a PCI-ISA or PCI-EISA bridge all I/O port addresses
> belong to PCI. Otherwise the usual rule of "(addr & 0x300) == 0" applies.
> Perhaps with the addition of "(addr & ~0xff) != 0" for safety as junk I/O
> is often not recorded properly in BARs, sigh...

No the low addresses belong to the chipset and motherboard. There is
also magic then for video and IDE legacy port ranges. I suspect your
mips boxen might be a lot cleaner than the PC world.

Alan

-
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/