1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Stub IDE routines to keep Linux from crashing on machine which don't
7  * have IDE like the Indy.
8  *
9  * Copyright (C) 1998, 1999 by Ralf Baechle
10  */
11 #include <linux/hdreg.h>
12 #include <linux/kernel.h>
13 #include <linux/ide.h>
14 #include <asm/hdreg.h>
15 #include <asm/ptrace.h>
16 
no_ide_default_irq(ide_ioreg_t base)17 static int no_ide_default_irq(ide_ioreg_t base)
18 {
19 	return 0;
20 }
21 
no_ide_default_io_base(int index)22 static ide_ioreg_t no_ide_default_io_base(int index)
23 {
24 	return 0;
25 }
26 
no_ide_init_hwif_ports(hw_regs_t * hw,ide_ioreg_t data_port,ide_ioreg_t ctrl_port,int * irq)27 static void no_ide_init_hwif_ports (hw_regs_t *hw, ide_ioreg_t data_port,
28                                     ide_ioreg_t ctrl_port, int *irq)
29 {
30 }
31 
32 struct ide_ops no_ide_ops = {
33 	&no_ide_default_irq,
34 	&no_ide_default_io_base,
35 	&no_ide_init_hwif_ports
36 };
37