1 /* $NetBSD: bus_space_notimpl.c,v 1.8 2007/12/15 00:39:18 perry 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/cdefs.h> 33 __KERNEL_RCSID(0, "$NetBSD: bus_space_notimpl.c,v 1.8 2007/12/15 00:39:18 perry Exp $"); 34 35 #include <sys/param.h> 36 #include <sys/systm.h> 37 #include <machine/bus.h> 38 39 bus_space_protos(bs_notimpl); 40 41 #define C(a,b) __CONCAT(a,b) 42 #define __NOTIMPL(f) C(C(bs_,f),_proto)(bs_notimpl) \ 43 { panic("%s isn't implemented", __func__); } 44 45 __NOTIMPL(map) 46 __NOTIMPL(unmap) 47 __NOTIMPL(subregion) 48 __NOTIMPL(alloc) 49 __NOTIMPL(free) 50 __NOTIMPL(vaddr) 51 __NOTIMPL(mmap) 52 __NOTIMPL(barrier) 53 __NOTIMPL(peek) 54 __NOTIMPL(poke) 55 __NOTIMPL(r_1) 56 __NOTIMPL(r_2) 57 __NOTIMPL(r_4) 58 __NOTIMPL(r_8) 59 __NOTIMPL(rm_1) 60 __NOTIMPL(rm_2) 61 __NOTIMPL(rm_4) 62 __NOTIMPL(rm_8) 63 __NOTIMPL(rr_1) 64 __NOTIMPL(rr_2) 65 __NOTIMPL(rr_4) 66 __NOTIMPL(rr_8) 67 __NOTIMPL(w_1) 68 __NOTIMPL(w_2) 69 __NOTIMPL(w_4) 70 __NOTIMPL(w_8) 71 __NOTIMPL(wm_1) 72 __NOTIMPL(wm_2) 73 __NOTIMPL(wm_4) 74 __NOTIMPL(wm_8) 75 __NOTIMPL(wr_1) 76 __NOTIMPL(wr_2) 77 __NOTIMPL(wr_4) 78 __NOTIMPL(wr_8) 79 #ifdef __BUS_SPACE_HAS_STREAM_REAL_METHODS 80 __NOTIMPL(rs_1) 81 __NOTIMPL(rs_2) 82 __NOTIMPL(rs_4) 83 __NOTIMPL(rs_8) 84 __NOTIMPL(rms_1) 85 __NOTIMPL(rms_2) 86 __NOTIMPL(rms_4) 87 __NOTIMPL(rms_8) 88 __NOTIMPL(rrs_1) 89 __NOTIMPL(rrs_2) 90 __NOTIMPL(rrs_4) 91 __NOTIMPL(rrs_8) 92 __NOTIMPL(ws_1) 93 __NOTIMPL(ws_2) 94 __NOTIMPL(ws_4) 95 __NOTIMPL(ws_8) 96 __NOTIMPL(wms_1) 97 __NOTIMPL(wms_2) 98 __NOTIMPL(wms_4) 99 __NOTIMPL(wms_8) 100 __NOTIMPL(wrs_1) 101 __NOTIMPL(wrs_2) 102 __NOTIMPL(wrs_4) 103 __NOTIMPL(wrs_8) 104 #endif /* __BUS_SPACE_HAS_STREAM_REAL_METHODS */ 105 __NOTIMPL(sm_1) 106 __NOTIMPL(sm_2) 107 __NOTIMPL(sm_4) 108 __NOTIMPL(sm_8) 109 __NOTIMPL(sr_1) 110 __NOTIMPL(sr_2) 111 __NOTIMPL(sr_4) 112 __NOTIMPL(sr_8) 113 __NOTIMPL(c_1) 114 __NOTIMPL(c_2) 115 __NOTIMPL(c_4) 116 __NOTIMPL(c_8) 117