patch-2.4.6 linux/drivers/acorn/char/mouse_rpc.c
Next file: linux/drivers/acorn/net/ether1.c
Previous file: linux/drivers/acorn/char/mouse_ps2.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed Jun 27 14:12:04 2001
- Orig file:
v2.4.5/linux/drivers/acorn/char/mouse_rpc.c
- Orig date:
Mon Sep 18 15:15:21 2000
diff -u --recursive --new-file v2.4.5/linux/drivers/acorn/char/mouse_rpc.c linux/drivers/acorn/char/mouse_rpc.c
@@ -34,9 +34,9 @@
short x, y, dx, dy;
int buttons;
- x = (short)inl(IOMD_MOUSEX);
- y = (short)inl(IOMD_MOUSEY);
- buttons = (inl (0x800C4000) >> 4) & 7;
+ x = (short)iomd_readl(IOMD_MOUSEX);
+ y = (short)iomd_readl(IOMD_MOUSEY);
+ buttons = (__raw_readl(0xe0310000) >> 4) & 7;
dx = x - old_x;
old_x = x;
@@ -60,9 +60,9 @@
if (mousedev < 0)
printk("rpcmouse: could not register mouse driver\n");
else {
- old_x = (short)inl(IOMD_MOUSEX);
- old_y = (short)inl(IOMD_MOUSEY);
- old_b = (inl (0x800C4000) >> 4) & 7;
+ old_x = (short)iomd_readl(IOMD_MOUSEX);
+ old_y = (short)iomd_readl(IOMD_MOUSEY);
+ old_b = (__raw_readl(0xe0310000) >> 4) & 7;
if (request_irq(IRQ_VSYNCPULSE, mouse_rpc_irq, SA_SHIRQ, "mouse", &mousedev)) {
printk("rpcmouse: unable to allocate VSYNC interrupt\n");
unregister_busmouse(mousedev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)