Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/iommu/intel_intrmap.c
Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | if (src_class == devclass_find("dmar")) { | ||||
unit = NULL; | unit = NULL; | ||||
if (is_dmar != NULL) | if (is_dmar != NULL) | ||||
*is_dmar = TRUE; | *is_dmar = TRUE; | ||||
} else if (src_class == devclass_find("hpet")) { | } else if (src_class == devclass_find("hpet")) { | ||||
unit = dmar_find_hpet(src, rid); | unit = dmar_find_hpet(src, rid); | ||||
} else { | } else { | ||||
unit = dmar_find(src, bootverbose); | unit = dmar_find(src, bootverbose); | ||||
if (unit != NULL && rid != NULL) | if (unit != NULL && rid != NULL) | ||||
dmar_get_requester(src, rid); | iommu_get_requester(src, rid); | ||||
} | } | ||||
return (unit); | return (unit); | ||||
} | } | ||||
static void | static void | ||||
dmar_ir_program_irte(struct dmar_unit *unit, u_int idx, uint64_t low, | dmar_ir_program_irte(struct dmar_unit *unit, u_int idx, uint64_t low, | ||||
uint16_t rid) | uint16_t rid) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |