1 /* $NetBSD: isa_io_asm.S,v 1.1 2002/02/10 12:26:01 chris Exp $ */
4 * Copyright (c) 1997 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
34 * Digital Equipment Corporation. All rights reserved.
36 * This software is furnished under license and may be used and
37 * copied only in accordance with the following terms and conditions.
38 * Subject to these conditions, you may download, copy, install,
39 * use, modify and distribute this software in source and/or binary
40 * form. No title or ownership is transferred hereby.
42 * 1) Any source code used, modified or distributed must reproduce
43 * and retain this copyright notice and list of conditions as
44 * they appear in the source file.
46 * 2) No right is granted to use any trade name, trademark, or logo of
47 * Digital Equipment Corporation. Neither the "Digital Equipment
48 * Corporation" name nor any trademark or logo of Digital Equipment
49 * Corporation may be used to endorse or promote products derived
50 * from this software without the prior written permission of
51 * Digital Equipment Corporation.
53 * 3) This software is provided "AS-IS" and any express or implied
54 * warranties, including but not limited to, any implied warranties
55 * of merchantability, fitness for a particular purpose, or
56 * non-infringement are disclaimed. In no event shall DIGITAL be
57 * liable for any damages whatsoever, and in particular, DIGITAL
58 * shall not be liable for special, indirect, consequential, or
59 * incidental damages or damages for lost profits, loss of
60 * revenue or loss of use, whether such damages arise in contract,
61 * negligence, tort, under statute, in equity, at law or otherwise,
62 * even if advised of the possibility of such damage.
66 * bus_space I/O functions for isa
69 #include <machine/asm.h>
72 #define PAUSE nop ; nop ; nop ; nop ; nop
78 * Note these functions use ARM Architecture V4 instructions as
79 * all current systems with ISA will be using processors that support
80 * V4 or later architectures (SHARK & CATS)
93 ldrh r0, [r1, r2] /*.word 0xe19100b2*/
129 ldrh r3, [r0] /*.word 0xe1d030b0*/
130 strh r3, [r1], #2 /*.word 0xe0c130b2*/
179 strh r3, [r1], #2 /*.word 0xe0c130b2*/
210 strh r3, [r1, r2] /*.word 0xe18130b2*/
246 ldrh r3, [r1], #2 /*.word 0xe0d130b2*/
247 strh r3, [r0] /*.word 0xe1c030b0*/
296 ldrh r3, [r1], #2 /*.word 0xe0d130b2*/
330 strh r1, [r0], #2 /*.word e0c010b2*/
332 bne Lisa_bs_sr_2_loop