1139799Simp/*- 211394Sswallace * Copyright (c) 2005 M. Warner Losh. 311394Sswallace * All rights reserved. 411394Sswallace * 511394Sswallace * Redistribution and use in source and binary forms, with or without 611394Sswallace * modification, are permitted provided that the following conditions 711394Sswallace * are met: 811394Sswallace * 1. Redistributions of source code must retain the above copyright 911394Sswallace * notice, this list of conditions, and the following disclaimer, 1011394Sswallace * without modification, immediately at the beginning of the file. 1111394Sswallace * 2. Redistributions in binary form must reproduce the above copyright 1211394Sswallace * notice, this list of conditions and the following disclaimer in 1311394Sswallace * the documentation and/or other materials provided with the 1411394Sswallace * distribution. 1511394Sswallace * 1611394Sswallace * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1711394Sswallace * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1811394Sswallace * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1911394Sswallace * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 2011394Sswallace * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2111394Sswallace * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2211394Sswallace * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2311394Sswallace * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24139799Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25139799Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2611394Sswallace * SUCH DAMAGE. 2711394Sswallace * 2811394Sswallace * $FreeBSD$ 2911394Sswallace */ 3011394Sswallace 3111394Sswallace#ifndef I386_INCLUDE__BUS_H 3211394Sswallace#define I386_INCLUDE__BUS_H 3311394Sswallace 3411394Sswallace/* 3511394Sswallace * Bus address and size types 3611394Sswallace */ 3711394Sswallace#ifdef PAE 3811394Sswallacetypedef uint64_t bus_addr_t; 3911394Sswallace#else 4011394Sswallacetypedef uint32_t bus_addr_t; 4111394Sswallace#endif 4211394Sswallacetypedef uint32_t bus_size_t; 4311394Sswallace 4411394Sswallace/* 4511394Sswallace * Access methods for bus resources and address space. 4611394Sswallace */ 4711394Sswallacetypedef int bus_space_tag_t; 4811394Sswallacetypedef u_int bus_space_handle_t; 4911394Sswallace 5011394Sswallace#endif /* I386_INCLUDE__BUS_H */ 51