1 /*	$NetBSD: bus_space_notimpl.c,v 1.4 2002/09/27 15:36:05 provos Exp $	*/
2 
3 /*-
4  * Copyright (c) 2001 TAKEMURA Shin. All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  * 3. Neither the name of the project nor the names of its contributors
15  *    may be used to endorse or promote products derived from this software
16  *    without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28  * SUCH DAMAGE.
29  *
30  */
31 
32 #include <sys/param.h>
33 #include <sys/systm.h>
34 #include <sys/cdefs.h>
35 #include <machine/bus.h>
36 
37 bus_space_protos(bs_notimpl);
38 
39 #define C(a,b)	__CONCAT(a,b)
40 #define __NOTIMPL(f) C(C(bs_,f),_proto)(bs_notimpl)	\
41 	{ panic("%s isn't implemented", __FUNCTION__); }
42 
43 __NOTIMPL(map)
44 __NOTIMPL(unmap)
45 __NOTIMPL(subregion)
46 __NOTIMPL(alloc)
47 __NOTIMPL(free)
48 __NOTIMPL(vaddr)
49 __NOTIMPL(mmap)
50 __NOTIMPL(barrier)
51 __NOTIMPL(peek)
52 __NOTIMPL(poke)
53 __NOTIMPL(r_1)
54 __NOTIMPL(r_2)
55 __NOTIMPL(r_4)
56 __NOTIMPL(r_8)
57 __NOTIMPL(rm_1)
58 __NOTIMPL(rm_2)
59 __NOTIMPL(rm_4)
60 __NOTIMPL(rm_8)
61 __NOTIMPL(rr_1)
62 __NOTIMPL(rr_2)
63 __NOTIMPL(rr_4)
64 __NOTIMPL(rr_8)
65 __NOTIMPL(w_1)
66 __NOTIMPL(w_2)
67 __NOTIMPL(w_4)
68 __NOTIMPL(w_8)
69 __NOTIMPL(wm_1)
70 __NOTIMPL(wm_2)
71 __NOTIMPL(wm_4)
72 __NOTIMPL(wm_8)
73 __NOTIMPL(wr_1)
74 __NOTIMPL(wr_2)
75 __NOTIMPL(wr_4)
76 __NOTIMPL(wr_8)
77 #ifdef __BUS_SPACE_HAS_STREAM_REAL_METHODS
78 __NOTIMPL(rs_1)
79 __NOTIMPL(rs_2)
80 __NOTIMPL(rs_4)
81 __NOTIMPL(rs_8)
82 __NOTIMPL(rms_1)
83 __NOTIMPL(rms_2)
84 __NOTIMPL(rms_4)
85 __NOTIMPL(rms_8)
86 __NOTIMPL(rrs_1)
87 __NOTIMPL(rrs_2)
88 __NOTIMPL(rrs_4)
89 __NOTIMPL(rrs_8)
90 __NOTIMPL(ws_1)
91 __NOTIMPL(ws_2)
92 __NOTIMPL(ws_4)
93 __NOTIMPL(ws_8)
94 __NOTIMPL(wms_1)
95 __NOTIMPL(wms_2)
96 __NOTIMPL(wms_4)
97 __NOTIMPL(wms_8)
98 __NOTIMPL(wrs_1)
99 __NOTIMPL(wrs_2)
100 __NOTIMPL(wrs_4)
101 __NOTIMPL(wrs_8)
102 #endif /* __BUS_SPACE_HAS_STREAM_REAL_METHODS */
103 __NOTIMPL(sm_1)
104 __NOTIMPL(sm_2)
105 __NOTIMPL(sm_4)
106 __NOTIMPL(sm_8)
107 __NOTIMPL(sr_1)
108 __NOTIMPL(sr_2)
109 __NOTIMPL(sr_4)
110 __NOTIMPL(sr_8)
111 __NOTIMPL(c_1)
112 __NOTIMPL(c_2)
113 __NOTIMPL(c_4)
114 __NOTIMPL(c_8)
115