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 17static int no_ide_default_irq(ide_ioreg_t base) 18{ 19 return 0; 20} 21 22static ide_ioreg_t no_ide_default_io_base(int index) 23{ 24 return 0; 25} 26 27static 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 32static int no_ide_request_irq(unsigned int irq, 33 void (*handler)(int,void *, struct pt_regs *), 34 unsigned long flags, const char *device, 35 void *dev_id) 36{ 37 panic("no_no_ide_request_irq called - shouldn't happen"); 38} 39 40static void no_ide_free_irq(unsigned int irq, void *dev_id) 41{ 42 panic("no_ide_free_irq called - shouldn't happen"); 43} 44 45static int no_ide_check_region(ide_ioreg_t from, unsigned int extent) 46{ 47 panic("no_ide_check_region called - shouldn't happen"); 48} 49 50static void no_ide_request_region(ide_ioreg_t from, unsigned int extent, 51 const char *name) 52{ 53 panic("no_ide_request_region called - shouldn't happen"); 54} 55 56static void no_ide_release_region(ide_ioreg_t from, unsigned int extent) 57{ 58 panic("no_ide_release_region called - shouldn't happen"); 59} 60 61struct ide_ops no_ide_ops = { 62 &no_ide_default_irq, 63 &no_ide_default_io_base, 64 &no_ide_init_hwif_ports, 65 &no_ide_request_irq, 66 &no_ide_free_irq, 67 &no_ide_check_region, 68 &no_ide_request_region, 69 &no_ide_release_region 70}; 71