diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-06-28 00:46:46 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-28 00:46:46 -0400 |
commit | 2179a59db18ddf8eb3fd0133a3bee57f1c2b5b06 (patch) | |
tree | 575f59b6a0918b11f7c763aecf0c3e70478460d2 /include/asm-i386/ide.h | |
parent | ad3fee560bc508008b3b2cf6358105c4c7081921 (diff) | |
parent | 99f95e5286df2f69edab8a04c7080d986ee4233b (diff) |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'include/asm-i386/ide.h')
-rw-r--r-- | include/asm-i386/ide.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/asm-i386/ide.h b/include/asm-i386/ide.h index 859ebf4da63..79dfab87135 100644 --- a/include/asm-i386/ide.h +++ b/include/asm-i386/ide.h @@ -41,13 +41,17 @@ static __inline__ int ide_default_irq(unsigned long base) static __inline__ unsigned long ide_default_io_base(int index) { + if (pci_find_device(PCI_ANY_ID, PCI_ANY_ID, NULL) == NULL) { + switch(index) { + case 2: return 0x1e8; + case 3: return 0x168; + case 4: return 0x1e0; + case 5: return 0x160; + } + } switch (index) { case 0: return 0x1f0; case 1: return 0x170; - case 2: return 0x1e8; - case 3: return 0x168; - case 4: return 0x1e0; - case 5: return 0x160; default: return 0; } |