pci_sgmap_pte32.c revision 1.4
11.4Smrg/* $NetBSD: pci_sgmap_pte32.c,v 1.4 2000/06/29 08:58:49 mrg Exp $ */ 21.2Sthorpej 31.2Sthorpej/*- 41.2Sthorpej * Copyright (c) 1997 The NetBSD Foundation, Inc. 51.2Sthorpej * All rights reserved. 61.2Sthorpej * 71.2Sthorpej * This code is derived from software contributed to The NetBSD Foundation 81.2Sthorpej * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 91.2Sthorpej * NASA Ames Research Center. 101.2Sthorpej * 111.2Sthorpej * Redistribution and use in source and binary forms, with or without 121.2Sthorpej * modification, are permitted provided that the following conditions 131.2Sthorpej * are met: 141.2Sthorpej * 1. Redistributions of source code must retain the above copyright 151.2Sthorpej * notice, this list of conditions and the following disclaimer. 161.2Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 171.2Sthorpej * notice, this list of conditions and the following disclaimer in the 181.2Sthorpej * documentation and/or other materials provided with the distribution. 191.2Sthorpej * 3. All advertising materials mentioning features or use of this software 201.2Sthorpej * must display the following acknowledgement: 211.2Sthorpej * This product includes software developed by the NetBSD 221.2Sthorpej * Foundation, Inc. and its contributors. 231.2Sthorpej * 4. Neither the name of The NetBSD Foundation nor the names of its 241.2Sthorpej * contributors may be used to endorse or promote products derived 251.2Sthorpej * from this software without specific prior written permission. 261.2Sthorpej * 271.2Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 281.2Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 291.2Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 301.2Sthorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 311.2Sthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 321.2Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 331.2Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 341.2Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 351.2Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 361.2Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 371.2Sthorpej * POSSIBILITY OF SUCH DAMAGE. 381.2Sthorpej */ 391.2Sthorpej 401.2Sthorpej#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ 411.2Sthorpej 421.4Smrg__KERNEL_RCSID(1, "$NetBSD: pci_sgmap_pte32.c,v 1.4 2000/06/29 08:58:49 mrg Exp $"); 431.2Sthorpej 441.2Sthorpej#include <sys/param.h> 451.2Sthorpej#include <sys/systm.h> 461.2Sthorpej#include <sys/kernel.h> 471.2Sthorpej#include <sys/device.h> 481.2Sthorpej#include <sys/malloc.h> 491.2Sthorpej#include <sys/proc.h> 501.2Sthorpej 511.4Smrg#include <uvm/uvm_extern.h> 521.2Sthorpej 531.2Sthorpej#include <machine/bus.h> 541.2Sthorpej 551.2Sthorpej#include <alpha/pci/pci_sgmap_pte32.h> 561.2Sthorpej 571.2Sthorpej#include <alpha/common/sgmap_typedep.c> 58