diff options
Diffstat (limited to 'arch/mips/kernel/setup.c')
-rw-r--r-- | arch/mips/kernel/setup.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 98f99f9f5..8f80fb327 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -5,10 +5,11 @@ * Copyright (C) 1995, 1996 Ralf Baechle * Copyright (C) 1996 Stoned Elipot * - * $Id: setup.c,v 1.5 1997/12/02 23:44:02 ralf Exp $ + * $Id: setup.c,v 1.6 1997/12/16 05:34:37 ralf Exp $ */ #include <linux/config.h> #include <linux/errno.h> +#include <linux/hdreg.h> #include <linux/init.h> #include <linux/ioport.h> #include <linux/sched.h> @@ -34,6 +35,7 @@ #include <asm/asm.h> #include <asm/bootinfo.h> #include <asm/cachectl.h> +#include <asm/ide.h> #include <asm/io.h> #include <asm/vector.h> #include <asm/stackframe.h> @@ -86,6 +88,11 @@ int EISA_bus = 0; struct drive_info_struct drive_info = DEFAULT_DRIVE_INFO; struct screen_info screen_info = DEFAULT_SCREEN_INFO; +#ifdef CONFIG_BLK_DEV_IDE +extern struct ide_ops no_ide_ops; +struct ide_ops *ide_ops; +#endif + /* * setup informations * @@ -170,8 +177,12 @@ __initfunc(void setup_arch(char **cmdline_p, atag = bi_TagFind(tag_vram_base); memcpy(&mips_vram_base, TAGVALPTR(atag), atag->size); + /* Save defaults for configuration dependand routines. */ irq_setup = default_irq_setup; fd_cacheflush = default_fd_cacheflush; +#ifdef CONFIG_BLK_DEV_IDE + ide_ops = &no_ide_ops; +#endif switch(mips_machgroup) { |