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
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
)
23 static ide_ioreg_t
no_ide_default_io_base(int index
)
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
,
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
,
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
= {
64 &no_ide_default_io_base
,
65 &no_ide_init_hwif_ports
,
69 &no_ide_request_region
,
70 &no_ide_release_region