xref: /netbsd-src/sys/arch/algor/include/isapnp_machdep.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: isapnp_machdep.h,v 1.2 2008/04/28 20:23:10 martin Exp $	*/
216b9c606Sthorpej 
316b9c606Sthorpej /*-
416b9c606Sthorpej  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
516b9c606Sthorpej  * All rights reserved.
616b9c606Sthorpej  *
716b9c606Sthorpej  * This code is derived from software contributed to The NetBSD Foundation
816b9c606Sthorpej  * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
916b9c606Sthorpej  * NASA Ames Research Center and by Christos Zoulas.
1016b9c606Sthorpej  *
1116b9c606Sthorpej  * Redistribution and use in source and binary forms, with or without
1216b9c606Sthorpej  * modification, are permitted provided that the following conditions
1316b9c606Sthorpej  * are met:
1416b9c606Sthorpej  * 1. Redistributions of source code must retain the above copyright
1516b9c606Sthorpej  *    notice, this list of conditions and the following disclaimer.
1616b9c606Sthorpej  * 2. Redistributions in binary form must reproduce the above copyright
1716b9c606Sthorpej  *    notice, this list of conditions and the following disclaimer in the
1816b9c606Sthorpej  *    documentation and/or other materials provided with the distribution.
1916b9c606Sthorpej  *
2016b9c606Sthorpej  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2116b9c606Sthorpej  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2216b9c606Sthorpej  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2316b9c606Sthorpej  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2416b9c606Sthorpej  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2516b9c606Sthorpej  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2616b9c606Sthorpej  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2716b9c606Sthorpej  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2816b9c606Sthorpej  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2916b9c606Sthorpej  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3016b9c606Sthorpej  * POSSIBILITY OF SUCH DAMAGE.
3116b9c606Sthorpej  */
3216b9c606Sthorpej 
3316b9c606Sthorpej /*
3416b9c606Sthorpej  * Functions provided to machine-independent ISA PnP code.
3516b9c606Sthorpej  */
3616b9c606Sthorpej int	isapnp_map(struct isapnp_softc *);
3716b9c606Sthorpej void	isapnp_unmap(struct isapnp_softc *);
3816b9c606Sthorpej int	isapnp_map_readport(struct isapnp_softc *);
3916b9c606Sthorpej void	isapnp_unmap_readport(struct isapnp_softc *);
40