diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:30 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-07-24 16:53:30 -0400 |
commit | d83b8b85cd56a083d30df73f3fd5e4714591b910 (patch) | |
tree | 1fac379e8d909361ecbf934645463a00e706dafc /include/asm-sparc | |
parent | 2c9d86438a0104800da2a8ecdc1e27baf38ba6a4 (diff) |
ide: define MAX_HWIFS in <linux/ide.h>
* Now that ide_hwif_t instances are allocated dynamically
the difference between MAX_HWIFS == 2 and MAX_HWIFS == 10
is ~100 bytes (x86-32) so use MAX_HWIFS == 10 on all archs
except these ones that use MAX_HWIFS == 1.
* Define MAX_HWIFS in <linux/ide.h> instead of <asm/ide.h>.
[ Please note that avr32/cris/v850 have no <asm/ide.h>
and alpha/ia64/sh always define CONFIG_IDE_MAX_HWIFS. ]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/asm-sparc')
-rw-r--r-- | include/asm-sparc/ide.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/asm-sparc/ide.h b/include/asm-sparc/ide.h index 879fcec72dc1..b7af3d658239 100644 --- a/include/asm-sparc/ide.h +++ b/include/asm-sparc/ide.h | |||
@@ -21,9 +21,6 @@ | |||
21 | #include <asm/psr.h> | 21 | #include <asm/psr.h> |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #undef MAX_HWIFS | ||
25 | #define MAX_HWIFS 2 | ||
26 | |||
27 | #define __ide_insl(data_reg, buffer, wcount) \ | 24 | #define __ide_insl(data_reg, buffer, wcount) \ |
28 | __ide_insw(data_reg, buffer, (wcount)<<1) | 25 | __ide_insw(data_reg, buffer, (wcount)<<1) |
29 | #define __ide_outsl(data_reg, buffer, wcount) \ | 26 | #define __ide_outsl(data_reg, buffer, wcount) \ |