2 * linux/include/asm-arm/arch-rs/ide.h
4 * Copyright (C) 1997 Russell King
5 * Copyright (C) 2002 Ben Dooks
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
12 * 29-07-1998 RMK Major re-work of IDE architecture specific code
18 * Set up a hw structure for a specified data port, control port and IRQ.
19 * This should follow whatever the default interface uses.
22 static __inline__ void
23 ide_init_hwif_ports(hw_regs_t *hw, int data_port, int ctrl_port, int *irq)
25 ide_ioreg_t reg = (ide_ioreg_t) data_port;
28 memset(hw, 0, sizeof(*hw));
30 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
31 hw->io_ports[i] = reg;
34 hw->io_ports[IDE_CONTROL_OFFSET] = (ide_ioreg_t) ctrl_port;
39 /* we initialise our ide devices from the main ide core, due to problems
40 * with doing it in this function
43 static __inline__ void
44 ide_init_default_hwifs(void)