11.1Sdyoung/* $NetBSD: bus_funcs.h,v 1.1 2011/07/01 17:10:01 dyoung Exp $ */ 21.1Sdyoung 31.1Sdyoung/*- 41.1Sdyoung * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. 51.1Sdyoung * All rights reserved. 61.1Sdyoung * 71.1Sdyoung * This code is derived from software contributed to The NetBSD Foundation 81.1Sdyoung * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 91.1Sdyoung * NASA Ames Research Center. 101.1Sdyoung * 111.1Sdyoung * Redistribution and use in source and binary forms, with or without 121.1Sdyoung * modification, are permitted provided that the following conditions 131.1Sdyoung * are met: 141.1Sdyoung * 1. Redistributions of source code must retain the above copyright 151.1Sdyoung * notice, this list of conditions and the following disclaimer. 161.1Sdyoung * 2. Redistributions in binary form must reproduce the above copyright 171.1Sdyoung * notice, this list of conditions and the following disclaimer in the 181.1Sdyoung * documentation and/or other materials provided with the distribution. 191.1Sdyoung * 201.1Sdyoung * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 211.1Sdyoung * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 221.1Sdyoung * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 231.1Sdyoung * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 241.1Sdyoung * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 251.1Sdyoung * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 261.1Sdyoung * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 271.1Sdyoung * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 281.1Sdyoung * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 291.1Sdyoung * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 301.1Sdyoung * POSSIBILITY OF SUCH DAMAGE. 311.1Sdyoung */ 321.1Sdyoung 331.1Sdyoung/* 341.1Sdyoung * Copyright (c) 1996 Charles M. Hannum. All rights reserved. 351.1Sdyoung * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved. 361.1Sdyoung * 371.1Sdyoung * Redistribution and use in source and binary forms, with or without 381.1Sdyoung * modification, are permitted provided that the following conditions 391.1Sdyoung * are met: 401.1Sdyoung * 1. Redistributions of source code must retain the above copyright 411.1Sdyoung * notice, this list of conditions and the following disclaimer. 421.1Sdyoung * 2. Redistributions in binary form must reproduce the above copyright 431.1Sdyoung * notice, this list of conditions and the following disclaimer in the 441.1Sdyoung * documentation and/or other materials provided with the distribution. 451.1Sdyoung * 3. All advertising materials mentioning features or use of this software 461.1Sdyoung * must display the following acknowledgement: 471.1Sdyoung * This product includes software developed by Christopher G. Demetriou 481.1Sdyoung * for the NetBSD Project. 491.1Sdyoung * 4. The name of the author may not be used to endorse or promote products 501.1Sdyoung * derived from this software without specific prior written permission 511.1Sdyoung * 521.1Sdyoung * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 531.1Sdyoung * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 541.1Sdyoung * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 551.1Sdyoung * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 561.1Sdyoung * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 571.1Sdyoung * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 581.1Sdyoung * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 591.1Sdyoung * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 601.1Sdyoung * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 611.1Sdyoung * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 621.1Sdyoung */ 631.1Sdyoung 641.1Sdyoung#ifndef _X86_BUS_FUNCS_H_ 651.1Sdyoung#define _X86_BUS_FUNCS_H_ 661.1Sdyoung 671.1Sdyoungextern bus_space_tag_t x86_bus_space_mem; 681.1Sdyoungextern bus_space_tag_t x86_bus_space_io; 691.1Sdyoung 701.1Sdyoungint _x86_memio_map(bus_space_tag_t t, bus_addr_t addr, 711.1Sdyoung bus_size_t size, int flags, bus_space_handle_t *bshp); 721.1Sdyoungvoid _x86_memio_unmap(bus_space_tag_t t, bus_space_handle_t bsh, 731.1Sdyoung bus_size_t size, bus_addr_t *); 741.1Sdyoung 751.1Sdyoung#endif /* _X86_BUS_FUNCS_H_ */ 76