Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/iommu/iommu_gas.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
intel_gas_init(void) | intel_gas_init(void) | ||||
{ | { | ||||
iommu_map_entry_zone = uma_zcreate("IOMMU_MAP_ENTRY", | iommu_map_entry_zone = uma_zcreate("IOMMU_MAP_ENTRY", | ||||
sizeof(struct iommu_map_entry), NULL, NULL, | sizeof(struct iommu_map_entry), NULL, NULL, | ||||
NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NODUMP); | NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NODUMP); | ||||
} | } | ||||
SYSINIT(intel_gas, SI_SUB_DRIVERS, SI_ORDER_FIRST, intel_gas_init, NULL); | SYSINIT(intel_gas, SI_SUB_DRIVERS, SI_ORDER_FIRST, intel_gas_init); | ||||
struct iommu_map_entry * | struct iommu_map_entry * | ||||
iommu_gas_alloc_entry(struct iommu_domain *domain, u_int flags) | iommu_gas_alloc_entry(struct iommu_domain *domain, u_int flags) | ||||
{ | { | ||||
struct iommu_map_entry *res; | struct iommu_map_entry *res; | ||||
KASSERT((flags & ~(IOMMU_PGF_WAITOK)) == 0, | KASSERT((flags & ~(IOMMU_PGF_WAITOK)) == 0, | ||||
("unsupported flags %x", flags)); | ("unsupported flags %x", flags)); | ||||
▲ Show 20 Lines • Show All 936 Lines • Show Last 20 Lines |