Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/iommu/intel_utils.c
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
#include <sys/sched.h> | #include <sys/sched.h> | ||||
#include <sys/sf_buf.h> | #include <sys/sf_buf.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/taskqueue.h> | #include <sys/taskqueue.h> | ||||
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <sys/tree.h> | #include <sys/tree.h> | ||||
#include <sys/vmem.h> | #include <sys/vmem.h> | ||||
#include <dev/pci/pcivar.h> | |||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/vm_extern.h> | #include <vm/vm_extern.h> | ||||
#include <vm/vm_kern.h> | #include <vm/vm_kern.h> | ||||
#include <vm/vm_object.h> | #include <vm/vm_object.h> | ||||
#include <vm/vm_page.h> | #include <vm/vm_page.h> | ||||
#include <vm/vm_map.h> | #include <vm/vm_map.h> | ||||
#include <vm/vm_pageout.h> | #include <vm/vm_pageout.h> | ||||
#include <dev/pci/pcireg.h> | |||||
#include <dev/pci/pcivar.h> | |||||
#include <machine/bus.h> | #include <machine/bus.h> | ||||
#include <machine/cpu.h> | #include <machine/cpu.h> | ||||
#include <machine/intr_machdep.h> | #include <machine/intr_machdep.h> | ||||
#include <x86/include/apicvar.h> | #include <x86/include/apicvar.h> | ||||
#include <x86/include/busdma_impl.h> | #include <x86/include/busdma_impl.h> | ||||
#include <x86/iommu/intel_reg.h> | |||||
#include <dev/iommu/busdma_iommu.h> | #include <dev/iommu/busdma_iommu.h> | ||||
#include <dev/pci/pcireg.h> | #include <x86/iommu/intel_reg.h> | ||||
#include <x86/iommu/intel_dmar.h> | #include <x86/iommu/intel_dmar.h> | ||||
u_int | u_int | ||||
dmar_nd2mask(u_int nd) | dmar_nd2mask(u_int nd) | ||||
{ | { | ||||
static const u_int masks[] = { | static const u_int masks[] = { | ||||
0x000f, /* nd == 0 */ | 0x000f, /* nd == 0 */ | ||||
0x002f, /* nd == 1 */ | 0x002f, /* nd == 1 */ | ||||
▲ Show 20 Lines • Show All 592 Lines • Show Last 20 Lines |