Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/iommu/iommu.c
Show First 20 Lines • Show All 503 Lines • ▼ Show 20 Lines | LIST_FOREACH(entry, &iommu_list, next) { | ||||
} | } | ||||
} | } | ||||
IOMMU_LIST_UNLOCK(); | IOMMU_LIST_UNLOCK(); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
void | void | ||||
iommu_domain_unload_entry(struct iommu_map_entry *entry, bool free) | iommu_domain_unload_entry(struct iommu_map_entry *entry, bool free, | ||||
bool cansleep __unused) | |||||
{ | { | ||||
dprintf("%s\n", __func__); | dprintf("%s\n", __func__); | ||||
iommu_domain_free_entry(entry, free); | iommu_domain_free_entry(entry, free); | ||||
} | } | ||||
static void | static void | ||||
iommu_init(void) | iommu_init(void) | ||||
{ | { | ||||
sx_init(&iommu_sx, "IOMMU list"); | sx_init(&iommu_sx, "IOMMU list"); | ||||
} | } | ||||
SYSINIT(iommu, SI_SUB_DRIVERS, SI_ORDER_FIRST, iommu_init, NULL); | SYSINIT(iommu, SI_SUB_DRIVERS, SI_ORDER_FIRST, iommu_init, NULL); |