Loading...
/* * linux/include/asm-arm/arch-arc/ide.h * * Copyright (c) 1997,1998 Russell King * * IDE definitions for the Acorn Archimedes/A5000 * architecture * * Modifications: * 04-04-1998 PJB Merged `arc' and `a5k' versions */ #include <linux/config.h> #include <asm/irq.h> static __inline__ int ide_default_irq(ide_ioreg_t base) { #ifdef CONFIG_ARCH_A5K if (base == 0x1f0) return IRQ_HARDDISK; #endif return 0; } static __inline__ ide_ioreg_t ide_default_io_base(int index) { #ifdef CONFIG_ARCH_A5K if (index == 0) return 0x1f0; #endif return 0; } static __inline__ int ide_default_stepping(int index) { return 0; } static __inline__ void ide_init_hwif_ports (ide_ioreg_t *p, ide_ioreg_t base, int stepping, int *irq) { ide_ioreg_t port = base; ide_ioreg_t ctrl = base + 0x206; int i; i = 8; while (i--) { *p++ = port; port += 1 << stepping; } *p++ = ctrl; if (irq != NULL) *irq = 0; } |