Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/iommu/intel_utils.c
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
#include <vm/vm_pageout.h> | #include <vm/vm_pageout.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 <x86/iommu/intel_reg.h> | ||||
#include <x86/iommu/busdma_dmar.h> | #include <x86/iommu/busdma_dmar.h> | ||||
#include <dev/pci/pcireg.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 597 Lines • Show Last 20 Lines |