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