o Add DMAR2IODOM() macro;
o Add IODOM2DMAR() macro.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Basically I want to get rid of all conversion relying on the layout. And add macros for common conversions e.g. from domain to dmar unit etc.
sys/x86/iommu/intel_ctx.c | ||
---|---|---|
181 ↗ | (On Diff #75299) | Can you add CTX2DMARDOM ? |
182 ↗ | (On Diff #75299) | This expression should be macro-ified as well (domain->dmar unit) |
sys/x86/iommu/intel_dmar.h | ||
94 ↗ | (On Diff #75299) | I want this to look like &((domain)->iodom), i.e. stop relying on the dmar_domain layout whre iodom is the first member. |
95 ↗ | (On Diff #75299) | And this would be __container_of((iodom), struct dmar_domain, iodom). Unless I mixed arg order. |
Comment Actions
Add macroses:
DMAR2IOMMU()
IOMMU2DMAR()
DOM2IODOM()
IODOM2DOM()
CTX2IOCTX()
IOCTX2CTX()