patch-2.1.121 linux/drivers/acorn/block/ide-rapide.c
Next file: linux/drivers/acorn/char/serial-card.c
Previous file: linux/drivers/acorn/block/ide-ics.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sun Sep 6 10:46:07 1998
- Orig file:
v2.1.120/linux/drivers/acorn/block/ide-rapide.c
- Orig date:
Fri May 8 23:14:46 1998
diff -u --recursive --new-file v2.1.120/linux/drivers/acorn/block/ide-rapide.c linux/drivers/acorn/block/ide-rapide.c
@@ -13,6 +13,7 @@
#include <linux/blkdev.h>
#include <linux/errno.h>
#include <asm/ecard.h>
+#include <asm/ide.h>
#include "../../block/ide.h"
@@ -27,8 +28,14 @@
static inline int rapide_register(struct expansion_card *ec)
{
unsigned long port = ecard_address (ec, ECARD_MEMC, 0);
+ ide_ioregspec_t spec;
- return ide_register_port(port, port + 0x206, 4, ec->irq);
+ spec.base = port;
+ spec.ctrl = port + 0x206;
+ spec.offset = 1 << 4;
+ spec.irq = ec->irq;
+
+ return ide_register_port(&spec);
}
int rapide_init(void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov