Ok. I didn't make 2.4.0 in 2000. Tough. I tried, but we had some
[davej-history.git] / arch / mips / lib / ide-no.c
blob77a388c8b12c7fb0ce5e7e44cd18e6e46ae0e5f8
1 /* $Id: ide-no.c,v 1.2 1998/06/30 00:21:54 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Stub IDE routines to keep Linux from crashing on machine which don't
8 * have IDE like the Indy.
10 * Copyright (C) 1998, 1999 by Ralf Baechle
12 #include <linux/hdreg.h>
13 #include <linux/kernel.h>
14 #include <linux/ide.h>
15 #include <asm/hdreg.h>
16 #include <asm/ptrace.h>
18 static int no_ide_default_irq(ide_ioreg_t base)
20 return 0;
23 static ide_ioreg_t no_ide_default_io_base(int index)
25 return 0;
28 static void no_ide_init_hwif_ports (hw_regs_t *hw, ide_ioreg_t data_port,
29 ide_ioreg_t ctrl_port, int *irq)
33 static int no_ide_request_irq(unsigned int irq,
34 void (*handler)(int,void *, struct pt_regs *),
35 unsigned long flags, const char *device,
36 void *dev_id)
38 panic("no_no_ide_request_irq called - shouldn't happen");
41 static void no_ide_free_irq(unsigned int irq, void *dev_id)
43 panic("no_ide_free_irq called - shouldn't happen");
46 static int no_ide_check_region(ide_ioreg_t from, unsigned int extent)
48 panic("no_ide_check_region called - shouldn't happen");
51 static void no_ide_request_region(ide_ioreg_t from, unsigned int extent,
52 const char *name)
54 panic("no_ide_request_region called - shouldn't happen");
57 static void no_ide_release_region(ide_ioreg_t from, unsigned int extent)
59 panic("no_ide_release_region called - shouldn't happen");
62 struct ide_ops no_ide_ops = {
63 &no_ide_default_irq,
64 &no_ide_default_io_base,
65 &no_ide_init_hwif_ports,
66 &no_ide_request_irq,
67 &no_ide_free_irq,
68 &no_ide_check_region,
69 &no_ide_request_region,
70 &no_ide_release_region