diff options
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index dbd0aeb3a56d..76fe00b24b51 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -213,6 +213,14 @@ static inline int __ide_default_irq(unsigned long base) | |||
213 | 213 | ||
214 | #include <asm/ide.h> | 214 | #include <asm/ide.h> |
215 | 215 | ||
216 | #ifndef MAX_HWIFS | ||
217 | #if defined(CONFIG_BLACKFIN) || defined(CONFIG_H8300) || defined(CONFIG_XTENSA) | ||
218 | # define MAX_HWIFS 1 | ||
219 | #else | ||
220 | # define MAX_HWIFS 10 | ||
221 | #endif | ||
222 | #endif | ||
223 | |||
216 | #if !defined(MAX_HWIFS) || defined(CONFIG_EMBEDDED) | 224 | #if !defined(MAX_HWIFS) || defined(CONFIG_EMBEDDED) |
217 | #undef MAX_HWIFS | 225 | #undef MAX_HWIFS |
218 | #define MAX_HWIFS CONFIG_IDE_MAX_HWIFS | 226 | #define MAX_HWIFS CONFIG_IDE_MAX_HWIFS |