git: 26ff9d2050a1 - main - iommu.h: improve header self-sufficiency

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 13 Oct 2024 22:30:50 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=26ff9d2050a11449211644c6cb83cda7d94a785a

commit 26ff9d2050a11449211644c6cb83cda7d94a785a
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-10-13 09:45:41 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-13 22:30:25 +0000

    iommu.h: improve header self-sufficiency
    
    The header embeds struct task into defined structures.  Also it needs
    the PCI_BUSMAX constant.
    
    Sponsored by:   Advanced Micro Devices (AMD)
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 sys/dev/iommu/iommu.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/iommu/iommu.h b/sys/dev/iommu/iommu.h
index 73d0a6f1279b..f425024117d3 100644
--- a/sys/dev/iommu/iommu.h
+++ b/sys/dev/iommu/iommu.h
@@ -31,9 +31,11 @@
 #ifndef _DEV_IOMMU_IOMMU_H_
 #define _DEV_IOMMU_IOMMU_H_
 
+#include <sys/_task.h>
 #include <vm/vm.h>
 #include <vm/vm_page.h>
 #include <dev/iommu/iommu_types.h>
+#include <dev/pci/pcireg.h>
 
 struct bus_dma_tag_common;
 struct iommu_map_entry;