pci_sgmap_pte32.c revision 1.9
11.9Sthorpej/* $NetBSD: pci_sgmap_pte32.c,v 1.9 2020/10/11 00:33:31 thorpej 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 * 201.2Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 211.2Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 221.2Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 231.2Sthorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 241.2Sthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 251.2Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 261.2Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 271.2Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 281.2Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 291.2Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 301.2Sthorpej * POSSIBILITY OF SUCH DAMAGE. 311.2Sthorpej */ 321.2Sthorpej 331.2Sthorpej#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ 341.2Sthorpej 351.9Sthorpej__KERNEL_RCSID(1, "$NetBSD: pci_sgmap_pte32.c,v 1.9 2020/10/11 00:33:31 thorpej Exp $"); 361.2Sthorpej 371.2Sthorpej#include <sys/param.h> 381.2Sthorpej#include <sys/systm.h> 391.2Sthorpej#include <sys/kernel.h> 401.2Sthorpej#include <sys/device.h> 411.2Sthorpej#include <sys/malloc.h> 421.5Sthorpej#include <sys/mbuf.h> 431.2Sthorpej#include <sys/proc.h> 441.2Sthorpej 451.9Sthorpej#define _ALPHA_BUS_DMA_PRIVATE 461.8Sdyoung#include <sys/bus.h> 471.2Sthorpej 481.2Sthorpej#include <alpha/pci/pci_sgmap_pte32.h> 491.2Sthorpej 501.2Sthorpej#include <alpha/common/sgmap_typedep.c> 51