This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-arm / arch-s3c2410 / ide.h
1 /* linux/include/asm-arm/arch-s3c2410/ide.h
2  *
3  *  Copyright (C) 1997 Russell King
4  *  Copyright (C) 2003 Simtec Electronics
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  *  Modifications:
11  *   29-07-1998 RMK     Major re-work of IDE architecture specific code
12  *   16-05-2003 BJD     Changed to work with BAST IDE ports
13  *   04-09-2003 BJD     Modifications for V2.6
14  */
15
16 #ifndef __ASM_ARCH_IDE_H
17 #define __ASM_ARCH_IDE_H
18
19 #include <asm/irq.h>
20
21 /*
22  * Set up a hw structure for a specified data port, control port and IRQ.
23  * This should follow whatever the default interface uses.
24  */
25
26 static inline void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_port,
27                                        unsigned long ctrl_port, int *irq)
28 {
29         unsigned long reg = data_port;
30         int i;
31
32         memset(hw, 0, sizeof(*hw));
33
34         for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
35                 hw->io_ports[i] = reg;
36                 reg += 1;
37         }
38         hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port;
39         if (irq)
40                 *irq = 0;
41 }
42
43 /* we initialise our ide devices from the main ide core, due to problems
44  * with doing it in this function
45 */
46
47 #define ide_init_default_hwifs() do { } while(0)
48
49 #endif /* __ASM_ARCH_IDE_H */