| 320 | } |
| 321 | |
| 322 | static inline void |
| 323 | dmar_write4(const struct dmar_unit *unit, int reg, uint32_t val) |
| 324 | { |
| 325 | |
| 326 | KASSERT(reg != DMAR_GCMD_REG || (val & DMAR_GCMD_TE) == |
| 327 | (unit->hw_gcmd & DMAR_GCMD_TE), |
| 328 | ("dmar%d clearing TE 0x%08x 0x%08x", unit->iommu.unit, |
| 329 | unit->hw_gcmd, val)); |
| 330 | bus_write_4(unit->regs, reg, val); |
| 331 | } |
| 332 | |
| 333 | static inline void |
| 334 | dmar_write8(const struct dmar_unit *unit, int reg, uint64_t val) |
no outgoing calls
no test coverage detected