MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / ide.h
blobdc45674eecfddb3ee42c31019af9128d31dc3a8d
1 /*
2 * linux/include/asm-niosnommu2/ide.h
4 * Copyright (C) 1994-1996 Linus Torvalds & authors
5 * Copyright (C) 2004 Microtronix Datacom Ltd.
7 * All rights reserved.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
17 * NON INFRINGEMENT. See the GNU General Public License for more
18 * details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #ifndef __ASMNIOS2_IDE_H
27 #define __ASMNIOS2_IDE_H
29 #ifdef __KERNEL__
30 #undef MAX_HWIFS /* we're going to force it */
32 #ifndef MAX_HWIFS
33 #define MAX_HWIFS 1
34 #endif
36 #define IDE_ARCH_OBSOLETE_INIT
37 #define IDE_ARCH_OBSOLETE_DEFAULTS
38 #define ide_default_io_base(i) ((unsigned long)na_ide_ide)
39 #define ide_default_irq(b) (na_ide_ide_irq)
40 #define ide_init_default_irq(base) ide_default_irq(base)
41 #define ide_default_io_ctl(base) ((base) + (0xE*4))
43 #include <asm-generic/ide_iops.h>
45 #endif /* __KERNEL__ */
47 #endif /* __ASMNIOS2_IDE_H */