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

Function dmar_write8

freebsd/x86/iommu/intel_dmar.h:333–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333static inline void
334dmar_write8(const struct dmar_unit *unit, int reg, uint64_t val)
335{
336
337 KASSERT(reg != DMAR_GCMD_REG, ("8byte GCMD write"));
338#ifdef __i386__
339 uint32_t high, low;
340
341 low = val;
342 high = val >> 32;
343 bus_write_4(unit->regs, reg, low);
344 bus_write_4(unit->regs, reg + 4, high);
345#else
346 bus_write_8(unit->regs, reg, val);
347#endif
348}
349
350/*
351 * dmar_pte_store and dmar_pte_clear ensure that on i386, 32bit writes

Callers 7

domain_wait_iotlb_flushFunction · 0.85
domain_flush_iotlb_syncFunction · 0.85
dmar_load_root_entry_ptrFunction · 0.85
dmar_inv_ctx_globFunction · 0.85
dmar_inv_iotlb_globFunction · 0.85
dmar_load_irt_ptrFunction · 0.85
dmar_init_qiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected