1178172Simp/*-
2178172Simp * Copyright (c) 2005 M. Warner Losh.
3178172Simp * All rights reserved.
4178172Simp *
5178172Simp * Redistribution and use in source and binary forms, with or without
6178172Simp * modification, are permitted provided that the following conditions
7178172Simp * are met:
8178172Simp * 1. Redistributions of source code must retain the above copyright
9178172Simp *    notice, this list of conditions, and the following disclaimer,
10178172Simp *    without modification, immediately at the beginning of the file.
11178172Simp * 2. Redistributions in binary form must reproduce the above copyright
12178172Simp *    notice, this list of conditions and the following disclaimer in
13178172Simp *    the documentation and/or other materials provided with the
14178172Simp *    distribution.
15178172Simp *
16178172Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17178172Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18178172Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19178172Simp * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
20178172Simp * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21178172Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22178172Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23178172Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24178172Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25178172Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26178172Simp * SUCH DAMAGE.
27178172Simp *
28178172Simp * from: src/sys/i386/include/_bus.h,v 1.1 2005/04/18 21:45:33 imp
29178172Simp * $FreeBSD$
30178172Simp */
31178172Simp
32178172Simp#ifndef MIPS_INCLUDE__BUS_H
33178172Simp#define	MIPS_INCLUDE__BUS_H
34232896Sjmallett
35178172Simp/*
36178172Simp * Bus address and size types
37178172Simp */
38232773Sjmallett#if defined(CPU_CNMIPS) && !defined(__mips_n64)
39232789Sjmalletttypedef uint64_t bus_addr_t;
40232789Sjmallett#else
41178172Simptypedef uintptr_t bus_addr_t;
42202031Simp#endif
43178172Simptypedef uintptr_t bus_size_t;
44178172Simp
45178172Simp/*
46178172Simp * Access methods for bus resources and address space.
47178172Simp */
48202031Simptypedef struct bus_space *bus_space_tag_t;
49202031Simptypedef bus_addr_t bus_space_handle_t;
50178172Simp#endif /* MIPS_INCLUDE__BUS_H */
51