xref: /freebsd/sys/powerpc/include/_bus.h (revision c3e289e1ce8c9af8d14e9f727632e22b3bf901f9)
106db52b6SWarner Losh /*-
206db52b6SWarner Losh  * Copyright (c) 2005 M. Warner Losh.
306db52b6SWarner Losh  * All rights reserved.
406db52b6SWarner Losh  *
506db52b6SWarner Losh  * Redistribution and use in source and binary forms, with or without
606db52b6SWarner Losh  * modification, are permitted provided that the following conditions
706db52b6SWarner Losh  * are met:
806db52b6SWarner Losh  * 1. Redistributions of source code must retain the above copyright
906db52b6SWarner Losh  *    notice, this list of conditions, and the following disclaimer,
1006db52b6SWarner Losh  *    without modification, immediately at the beginning of the file.
1106db52b6SWarner Losh  * 2. Redistributions in binary form must reproduce the above copyright
1206db52b6SWarner Losh  *    notice, this list of conditions and the following disclaimer in
1306db52b6SWarner Losh  *    the documentation and/or other materials provided with the
1406db52b6SWarner Losh  *    distribution.
1506db52b6SWarner Losh  *
1606db52b6SWarner Losh  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1706db52b6SWarner Losh  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1806db52b6SWarner Losh  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1906db52b6SWarner Losh  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
2006db52b6SWarner Losh  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2106db52b6SWarner Losh  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2206db52b6SWarner Losh  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2306db52b6SWarner Losh  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2406db52b6SWarner Losh  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2506db52b6SWarner Losh  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2606db52b6SWarner Losh  * SUCH DAMAGE.
2706db52b6SWarner Losh  *
2806db52b6SWarner Losh  * $FreeBSD$
2906db52b6SWarner Losh  */
3006db52b6SWarner Losh 
3106db52b6SWarner Losh #ifndef POWERPC_INCLUDE__BUS_H
3206db52b6SWarner Losh #define POWERPC_INCLUDE__BUS_H
3306db52b6SWarner Losh 
34*c3e289e1SNathan Whitehorn #include <vm/vm_param.h>
35*c3e289e1SNathan Whitehorn 
3606db52b6SWarner Losh /*
3706db52b6SWarner Losh  * Bus address and size types
3806db52b6SWarner Losh  */
39*c3e289e1SNathan Whitehorn typedef vm_paddr_t bus_addr_t;
40*c3e289e1SNathan Whitehorn typedef vm_size_t bus_size_t;
4106db52b6SWarner Losh 
4206db52b6SWarner Losh /*
4306db52b6SWarner Losh  * Access methods for bus resources and address space.
4406db52b6SWarner Losh  */
45de2fa7b8SMarcel Moolenaar typedef struct bus_space *bus_space_tag_t;
46*c3e289e1SNathan Whitehorn typedef vm_offset_t bus_space_handle_t;
4706db52b6SWarner Losh 
4806db52b6SWarner Losh #endif /* POWERPC_INCLUDE__BUS_H */
49