Further normalize the _XXX_H_ symbols used to conditionalize header file
[dragonfly.git] / sys / platform / pc32 / include / bus.h
1 /*-
2  * Copyright (c) KATO Takenori, 1999.
3  *
4  * All rights reserved.  Unpublished rights reserved under the copyright
5  * laws of Japan.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer as
13  *    the first lines of this file unmodified.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. The name of the author may not be used to endorse or promote products
18  *    derived from this software without specific prior written permission.
19  * 
20  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30  *
31  * $FreeBSD: src/sys/i386/include/bus.h,v 1.7.2.2 2002/03/03 05:42:50 nyan Exp $
32  * $DragonFly: src/sys/platform/pc32/include/Attic/bus.h,v 1.6 2006/10/23 21:50:31 dillon Exp $
33  */
34
35 #ifndef _MACHINE_BUS_H_
36 #define _MACHINE_BUS_H_
37
38 #include <machine/bus_at386.h>
39 #include <machine/bus_dma.h>
40
41 /*
42  * Stream accesses are the same as normal accesses on i386; there are no
43  * supported bus systems with an endianess different from the host one.
44  */
45 #define bus_space_read_stream_1(t, h, o)        bus_space_read_1((t), (h), (o))
46 #define bus_space_read_stream_2(t, h, o)        bus_space_read_2((t), (h), (o))
47 #define bus_space_read_stream_4(t, h, o)        bus_space_read_4((t), (h), (o))
48
49 #define bus_space_read_multi_stream_1(t, h, o, a, c) \
50         bus_space_read_multi_1((t), (h), (o), (a), (c))
51 #define bus_space_read_multi_stream_2(t, h, o, a, c) \
52         bus_space_read_multi_2((t), (h), (o), (a), (c))
53 #define bus_space_read_multi_stream_4(t, h, o, a, c) \
54         bus_space_read_multi_4((t), (h), (o), (a), (c))
55
56 #define bus_space_write_stream_1(t, h, o, v) \
57         bus_space_write_1((t), (h), (o), (v))
58 #define bus_space_write_stream_2(t, h, o, v) \
59         bus_space_write_2((t), (h), (o), (v))
60 #define bus_space_write_stream_4(t, h, o, v) \
61         bus_space_write_4((t), (h), (o), (v))
62
63 #define bus_space_write_multi_stream_1(t, h, o, a, c) \
64         bus_space_write_multi_1((t), (h), (o), (a), (c))
65 #define bus_space_write_multi_stream_2(t, h, o, a, c) \
66         bus_space_write_multi_2((t), (h), (o), (a), (c))
67 #define bus_space_write_multi_stream_4(t, h, o, a, c) \
68         bus_space_write_multi_4((t), (h), (o), (a), (c))
69
70 #define bus_space_set_multi_stream_1(t, h, o, v, c) \
71         bus_space_set_multi_1((t), (h), (o), (v), (c))
72 #define bus_space_set_multi_stream_2(t, h, o, v, c) \
73         bus_space_set_multi_2((t), (h), (o), (v), (c))
74 #define bus_space_set_multi_stream_4(t, h, o, v, c) \
75         bus_space_set_multi_4((t), (h), (o), (v), (c))
76
77 #define bus_space_read_region_stream_1(t, h, o, a, c) \
78         bus_space_read_region_1((t), (h), (o), (a), (c))
79 #define bus_space_read_region_stream_2(t, h, o, a, c) \
80         bus_space_read_region_2((t), (h), (o), (a), (c))
81 #define bus_space_read_region_stream_4(t, h, o, a, c) \
82         bus_space_read_region_4((t), (h), (o), (a), (c))
83
84 #define bus_space_write_region_stream_1(t, h, o, a, c) \
85         bus_space_write_region_1((t), (h), (o), (a), (c))
86 #define bus_space_write_region_stream_2(t, h, o, a, c) \
87         bus_space_write_region_2((t), (h), (o), (a), (c))
88 #define bus_space_write_region_stream_4(t, h, o, a, c) \
89         bus_space_write_region_4((t), (h), (o), (a), (c))
90
91 #define bus_space_set_region_stream_1(t, h, o, v, c) \
92         bus_space_set_region_1((t), (h), (o), (v), (c))
93 #define bus_space_set_region_stream_2(t, h, o, v, c) \
94         bus_space_set_region_2((t), (h), (o), (v), (c))
95 #define bus_space_set_region_stream_4(t, h, o, v, c) \
96         bus_space_set_region_4((t), (h), (o), (v), (c))
97
98 #define bus_space_copy_region_stream_1(t, h1, o1, h2, o2, c) \
99         bus_space_copy_region_1((t), (h1), (o1), (h2), (o2), (c))
100 #define bus_space_copy_region_stream_2(t, h1, o1, h2, o2, c) \
101         bus_space_copy_region_2((t), (h1), (o1), (h2), (o2), (c))
102 #define bus_space_copy_region_stream_4(t, h1, o1, h2, o2, c) \
103         bus_space_copy_region_4((t), (h1), (o1), (h2), (o2), (c))
104
105 #endif /* _MACHINE_BUS_H_ */