2 * linux/include/asm-arm/arch-pxa/ide.h
5 * Created: Jan 10, 2002
6 * Copyright: MontaVista Software Inc.
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.
13 * Originally based upon linux/include/asm-arm/arch-sa1100/ide.h
18 #include <asm/hardware.h>
19 #include <asm/mach-types.h>
23 * Set up a hw structure for a specified data port, control port and IRQ.
24 * This should follow whatever the default interface uses.
26 static inline void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_port,
27 unsigned long ctrl_port, int *irq)
29 unsigned long reg = data_port;
33 memset(hw, 0, sizeof(*hw));
35 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
36 hw->io_ports[i] = reg;
40 hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port;
48 * Register the standard ports for this architecture with the IDE driver.
50 static __inline__ void
51 ide_init_default_hwifs(void)
53 /* Nothing to declare... */