1 /* linux/include/asm-arm/arch-s3c2410/ide.h
3 * Copyright (C) 1997 Russell King
4 * Copyright (C) 2003 Simtec Electronics
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.
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
16 #ifndef __ASM_ARCH_IDE_H
17 #define __ASM_ARCH_IDE_H
22 * Set up a hw structure for a specified data port, control port and IRQ.
23 * 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;
32 memset(hw, 0, sizeof(*hw));
34 for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
35 hw->io_ports[i] = reg;
38 hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port;
43 /* we initialise our ide devices from the main ide core, due to problems
44 * with doing it in this function
47 #define ide_init_default_hwifs() do { } while(0)
49 #endif /* __ASM_ARCH_IDE_H */