xref: /netbsd-src/sys/arch/powerpc/include/ofw_bus_funcs.h (revision 1344aafb72edc8298a229c873b9fa8705ab15044)
1*1344aafbSthorpej /* $NetBSD: ofw_bus_funcs.h,v 1.2 2021/02/27 02:52:48 thorpej Exp $ */
24ada7c50Sdyoung 
34ada7c50Sdyoung /*-
44ada7c50Sdyoung  * Copyright (c) 2007 The NetBSD Foundation, Inc.
54ada7c50Sdyoung  * All rights reserved.
64ada7c50Sdyoung  *
74ada7c50Sdyoung  * This code is derived from software contributed to The NetBSD Foundation
84ada7c50Sdyoung  * by Tim Rightnour
94ada7c50Sdyoung  *
104ada7c50Sdyoung  * Redistribution and use in source and binary forms, with or without
114ada7c50Sdyoung  * modification, are permitted provided that the following conditions
124ada7c50Sdyoung  * are met:
134ada7c50Sdyoung  * 1. Redistributions of source code must retain the above copyright
144ada7c50Sdyoung  *    notice, this list of conditions and the following disclaimer.
154ada7c50Sdyoung  * 2. Redistributions in binary form must reproduce the above copyright
164ada7c50Sdyoung  *    notice, this list of conditions and the following disclaimer in the
174ada7c50Sdyoung  *    documentation and/or other materials provided with the distribution.
184ada7c50Sdyoung  *
194ada7c50Sdyoung  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
204ada7c50Sdyoung  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
214ada7c50Sdyoung  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
224ada7c50Sdyoung  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
234ada7c50Sdyoung  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
244ada7c50Sdyoung  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
254ada7c50Sdyoung  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
264ada7c50Sdyoung  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
274ada7c50Sdyoung  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
284ada7c50Sdyoung  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
294ada7c50Sdyoung  * POSSIBILITY OF SUCH DAMAGE.
304ada7c50Sdyoung  */
314ada7c50Sdyoung 
324ada7c50Sdyoung #ifndef _POWERPC_OFW_BUS_FUNCS_H_
334ada7c50Sdyoung #define _POWERPC_OFW_BUS_FUNCS_H_
344ada7c50Sdyoung 
354ada7c50Sdyoung #ifdef _KERNEL
364ada7c50Sdyoung extern struct powerpc_bus_space genppc_isa_io_space_tag;
374ada7c50Sdyoung extern struct powerpc_bus_space genppc_isa_mem_space_tag;
384ada7c50Sdyoung 
394ada7c50Sdyoung #include <machine/powerpc.h>
404ada7c50Sdyoung 
414ada7c50Sdyoung void ofwoea_bus_space_init(void);
424ada7c50Sdyoung void ofwoea_initppc(u_int, u_int, char *);
434ada7c50Sdyoung int ofwoea_map_space(int, int, int, struct powerpc_bus_space *, const char *);
444ada7c50Sdyoung #endif
454ada7c50Sdyoung 
464ada7c50Sdyoung #endif /* _POWERPC_OFW_BUS_FUNCS_H_ */
47