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
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
;
19 for (i
= IDE_DATA_OFFSET
; i
<= IDE_STATUS_OFFSET
; i
++) {
20 hw
->io_ports
[i
] = reg
;
23 hw
->io_ports
[IDE_CONTROL_OFFSET
] = (unsigned long) ctrl_port
;
29 * This registers the standard ports for this architecture with the IDE
32 static __inline__
void ide_init_default_hwifs(void)
34 /* There are no standard ports */