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