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