MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / include / asm-arm / arch-ixp4xx / ide.h
blobc3117137ca988e77dc3be6238e264e82d362fbaf
1 /*
2 * linux/include/asm-arm/arch-ixp4xx/ide.h
4 * Copyright (C) 2003-2004 MontaVista Software, Inc.
5 * Based on original code Copyright (c) 1998 Russell King
6 */
9 /*
10 * Set up a hw structure for a specified data port, control port and IRQ.
11 * This should follow whatever the default interface uses.
13 static __inline__ void
14 ide_init_hwif_ports(hw_regs_t *hw, int data_port, int ctrl_port, int *irq)
16 unsigned long reg = (unsigned long) data_port;
17 int i;
19 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
20 hw->io_ports[i] = reg;
21 reg += 1;
23 hw->io_ports[IDE_CONTROL_OFFSET] = (unsigned long) ctrl_port;
24 if (irq)
25 *irq = 0;
29 * This registers the standard ports for this architecture with the IDE
30 * driver.
32 static __inline__ void ide_init_default_hwifs(void)
34 /* There are no standard ports */