This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-arm / arch-pxa / ide.h
1 /*
2  * linux/include/asm-arm/arch-pxa/ide.h
3  *
4  * Author:      George Davis
5  * Created:     Jan 10, 2002
6  * Copyright:   MontaVista Software Inc.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  *
12  *
13  * Originally based upon linux/include/asm-arm/arch-sa1100/ide.h
14  *
15  */
16
17 #include <asm/irq.h>
18 #include <asm/hardware.h>
19 #include <asm/mach-types.h>
20
21
22 /*
23  * Set up a hw structure for a specified data port, control port and IRQ.
24  * This should follow whatever the default interface uses.
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         int regincr = 1;
32
33         memset(hw, 0, sizeof(*hw));
34
35         for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
36                 hw->io_ports[i] = reg;
37                 reg += regincr;
38         }
39
40         hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port;
41
42         if (irq)
43                 *irq = 0;
44 }
45
46
47 /*
48  * Register the standard ports for this architecture with the IDE driver.
49  */
50 static __inline__ void
51 ide_init_default_hwifs(void)
52 {
53         /* Nothing to declare... */
54 }