[lkml]   [2005]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patches in this message
    Subject[PATCH] Allow number of IDE interfaces to be selected (X86)
    A small patch I done to allow X86 users to select the max number of IDE 
    interfaces they have - this eliminates the need for passing idex=noprobe on
    the command line and/or stops the needless probes at boot on non-existant IDE

    I have done this as I assume the majority of X86 users will only have 2 IDE
    interfaces, and therefore it allows the option to specify this.

    ALPHA and SUPERH users need to select this to continue as per the way it works
    for them.

    For X86 people, not selecting this allows the kernel to use the defaults 'as

    By making a contribution to this project, I certify that:
    The contribution was created in whole or in part by me and
    I have the right to submit it under the open source license
    indicated in the file.

    Signed-off-by: Nick Warne<>

    drivers/ide/Kconfig | 17 ++++++++++++++++-
    include/asm-i386/ide.h | 4 ++++
    2 files changed, 20 insertions(+), 1 deletion(-)

    --- linux-2.6.12n/include/asm-i386/ide.h 2005-06-17 20:48:29.000000000
    +++ linux-2.6.12/include/asm-i386/ide.h 2005-06-25 14:13:43.000000000 +0100
    @@ -16,11 +16,15 @@
    #include <linux/config.h>

    #ifndef MAX_HWIFS
    #define MAX_HWIFS 10
    # else
    #define MAX_HWIFS 6
    # endif

    --- linux-2.6.12n/drivers/ide/Kconfig 2005-06-17 20:48:29.000000000 +0100
    +++ linux-2.6.12/drivers/ide/Kconfig 2005-06-25 14:11:17.000000000 +0100
    @@ -52,14 +52,29 @@

    if IDE

    +config IDE_HWIFS_NUM
    + bool "Specify the number of IDE Interfaces"
    + depends on (ALPHA || SUPERH || X86)
    + default n
    + help
    + ALPHA and SUPERH say 'y' here.
    + X86 say 'y' to this if you wish to specify the number of IDE
    + interfaces on your system. If unsure, say 'n' to use
    + the kernel default options (6 or 10).
    config IDE_MAX_HWIFS
    int "Max IDE interfaces"
    - depends on ALPHA || SUPERH
    + depends on IDE_HWIFS_NUM
    default 4
    This is the maximum number of IDE hardware interfaces that will
    be supported by the driver. Make sure it is at least as high as
    the number of IDE interfaces in your system.
    + On X86 architecture default is (6 or 10) IDE interfaces if this
    + is not used (IDE_HWIFS_NUM = n)

    config BLK_DEV_IDE
    tristate "Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support"

    "When you're chewing on life's gristle,
    Don't grumble, Give a whistle..."
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-06-25 17:45    [W:0.029 / U:10.448 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site