1145253Simp/*- 2145253Simp * Copyright (c) 2005 M. Warner Losh. 3145253Simp * All rights reserved. 4145253Simp * 5145253Simp * Redistribution and use in source and binary forms, with or without 6145253Simp * modification, are permitted provided that the following conditions 7145253Simp * are met: 8145253Simp * 1. Redistributions of source code must retain the above copyright 9145253Simp * notice, this list of conditions, and the following disclaimer, 10145253Simp * without modification, immediately at the beginning of the file. 11145253Simp * 2. Redistributions in binary form must reproduce the above copyright 12145253Simp * notice, this list of conditions and the following disclaimer in 13145253Simp * the documentation and/or other materials provided with the 14145253Simp * distribution. 15145253Simp * 16145253Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17145253Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18145253Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19145253Simp * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 20145253Simp * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21145253Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22145253Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23145253Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24145253Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25145253Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26145253Simp * SUCH DAMAGE. 27145253Simp * 28145253Simp * $FreeBSD: releng/11.0/sys/i386/include/_bus.h 145253 2005-04-18 21:45:34Z imp $ 29145253Simp */ 30145253Simp 31145253Simp#ifndef I386_INCLUDE__BUS_H 32145253Simp#define I386_INCLUDE__BUS_H 33145253Simp 34145253Simp/* 35145253Simp * Bus address and size types 36145253Simp */ 37145253Simp#ifdef PAE 38145253Simptypedef uint64_t bus_addr_t; 39145253Simp#else 40145253Simptypedef uint32_t bus_addr_t; 41145253Simp#endif 42145253Simptypedef uint32_t bus_size_t; 43145253Simp 44145253Simp/* 45145253Simp * Access methods for bus resources and address space. 46145253Simp */ 47145253Simptypedef int bus_space_tag_t; 48145253Simptypedef u_int bus_space_handle_t; 49145253Simp 50145253Simp#endif /* I386_INCLUDE__BUS_H */ 51