MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dmar_disable_translation

Function dmar_disable_translation

freebsd/x86/iommu/intel_utils.c:506–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506int
507dmar_disable_translation(struct dmar_unit *unit)
508{
509 int error;
510
511 DMAR_ASSERT_LOCKED(unit);
512 unit->hw_gcmd &= ~DMAR_GCMD_TE;
513 dmar_write4(unit, DMAR_GCMD_REG, unit->hw_gcmd);
514 DMAR_WAIT_UNTIL(((dmar_read4(unit, DMAR_GSTS_REG) & DMAR_GSTS_TES)
515 == 0));
516 return (error);
517}
518
519int
520dmar_load_irt_ptr(struct dmar_unit *unit)

Callers

nothing calls this directly

Calls 2

dmar_write4Function · 0.85
dmar_read4Function · 0.85

Tested by

no test coverage detected