1*ce099b40Smartin /* $NetBSD: isapnp_machdep.h,v 1.3 2008/04/28 20:23:21 martin Exp $ */ 2db2b0adeStakemura 3db2b0adeStakemura /*- 4db2b0adeStakemura * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. 5db2b0adeStakemura * All rights reserved. 6db2b0adeStakemura * 7db2b0adeStakemura * This code is derived from software contributed to The NetBSD Foundation 8db2b0adeStakemura * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 9db2b0adeStakemura * NASA Ames Research Center and by Christos Zoulas. 10db2b0adeStakemura * 11db2b0adeStakemura * Redistribution and use in source and binary forms, with or without 12db2b0adeStakemura * modification, are permitted provided that the following conditions 13db2b0adeStakemura * are met: 14db2b0adeStakemura * 1. Redistributions of source code must retain the above copyright 15db2b0adeStakemura * notice, this list of conditions and the following disclaimer. 16db2b0adeStakemura * 2. Redistributions in binary form must reproduce the above copyright 17db2b0adeStakemura * notice, this list of conditions and the following disclaimer in the 18db2b0adeStakemura * documentation and/or other materials provided with the distribution. 19db2b0adeStakemura * 20db2b0adeStakemura * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 21db2b0adeStakemura * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22db2b0adeStakemura * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23db2b0adeStakemura * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24db2b0adeStakemura * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25db2b0adeStakemura * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26db2b0adeStakemura * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27db2b0adeStakemura * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28db2b0adeStakemura * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29db2b0adeStakemura * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30db2b0adeStakemura * POSSIBILITY OF SUCH DAMAGE. 31db2b0adeStakemura */ 32db2b0adeStakemura 33db2b0adeStakemura /* 34db2b0adeStakemura * Functions provided to machine-independent ISA PnP code. 35db2b0adeStakemura */ 3647449a63Scgd int isapnp_map(struct isapnp_softc *); 3747449a63Scgd void isapnp_unmap(struct isapnp_softc *); 3847449a63Scgd int isapnp_map_readport(struct isapnp_softc *); 3947449a63Scgd void isapnp_unmap_readport(struct isapnp_softc *); 40