Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg...
[cascardo/linux.git] / drivers / scsi / arm / acornscsi-io.S
index 93467e6..22171b2 100644 (file)
@@ -8,19 +8,12 @@
 #include <linux/linkage.h>
 
 #include <asm/assembler.h>
-#include <asm/hardware.h>
+#include <mach/hardware.h>
 
-#if (IO_BASE == (PCIO_BASE & 0xff000000))
-#define ADDR(off,reg)                                          \
-               tst     off, $0x80000000                        ;\
-               mov     reg, $IO_BASE                           ;\
-               orreq   reg, reg, $(PCIO_BASE & 0x00ff0000)
-#else
-#define ADDR(off,reg)                                          \
-               tst     off, $0x80000000                        ;\
-               movne   reg, $IO_BASE                           ;\
-               moveq   reg, $(PCIO_BASE & 0xff000000)          ;\
-               orreq   reg, reg, $(PCIO_BASE & 0x00ff0000)
+#if defined(__APCS_32__)
+#define LOADREGS(t,r,l...)     ldm##t  r, l
+#elif defined(__APCS_26__)
+#define LOADREGS(t,r,l...)     ldm##t  r, l##^
 #endif
 
 @ Purpose: transfer a block of data from the acorn scsi card to memory