]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Start splitting-out the Intel DMAR busdma backend to a generic place,
authorRuslan Bukin <br@FreeBSD.org>
Tue, 14 Jul 2020 10:55:19 +0000 (10:55 +0000)
committerRuslan Bukin <br@FreeBSD.org>
Tue, 14 Jul 2020 10:55:19 +0000 (10:55 +0000)
commit59e37c8a54091ba40db199cd9c200f10683b2af2
tree0a85a60f193c266dc6b1452bbbf0b40a3343949b
parent420306c3b7a0594a990edcd99b45ddc17a0107b9
Start splitting-out the Intel DMAR busdma backend to a generic place,
so it can be used on other IOMMU systems.

Provide MI iommu_unit, iommu_domain and iommu_ctx structs in sys/iommu.h;
use them as a first member of MD dmar_unit, dmar_domain and dmar_ctx.

Change the namespace in DMAR backend: use iommu_ prefix instead of dmar_.

Move some macroses and function prototypes to sys/iommu.h.

Reviewed by: kib
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D25574
13 files changed:
sys/sys/iommu.h [new file with mode: 0644]
sys/x86/iommu/busdma_dmar.c
sys/x86/iommu/busdma_dmar.h
sys/x86/iommu/intel_ctx.c
sys/x86/iommu/intel_dmar.h
sys/x86/iommu/intel_drv.c
sys/x86/iommu/intel_fault.c
sys/x86/iommu/intel_gas.c
sys/x86/iommu/intel_idpgtbl.c
sys/x86/iommu/intel_intrmap.c
sys/x86/iommu/intel_qi.c
sys/x86/iommu/intel_quirks.c
sys/x86/iommu/intel_utils.c