2 * linux/arch/arm26/lib/io-acorn.S
4 * Copyright (C) 1995, 1996 Russell King
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.
10 #include <linux/linkage.h>
11 #include <asm/assembler.h>
12 #include <asm/hardware.h>
17 .equ diff_pcio_base, PCIO_BASE - IO_BASE
21 orr r8, r8, r8, lsr #16
22 str r8, [r3, r0, lsl #2]
24 orr r8, r8, r8, lsl #16
25 str r8, [r3, r0, lsl #2]
28 .macro inw2 rd, mask, temp
32 orr \rd, \rd, \temp, lsl #16
38 add \rd, \rd, #IO_BASE
39 addeq \rd, \rd, #diff_pcio_base
43 .ascii "<4>insl/outsl not implemented, called from %08lX\0"
47 * These make no sense on Acorn machines.
48 * Print a warning message.
56 @ Purpose: write a memc register
57 @ Proto : void memc_write(int register, int value);
66 orr r0, r0, r1, lsl #2
67 add r0, r0, #0x03600000