aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2024-12-15 22:49:52 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2024-12-18 14:20:41 +0000
commit705337455f0622223fc58a78a77ea1a536d746a5 (patch)
treee0fa7272dc33c983bb9ead90dfb5623d166712d2
parent9daf6d64192281f8f438d9df770927d2e599a25c (diff)
amd iommu: remove unused function
(cherry picked from commit 58d1fdfaa90a5365a5f951e2ac80e0fce02ca9bb)
-rw-r--r--sys/x86/iommu/amd_drv.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/x86/iommu/amd_drv.c b/sys/x86/iommu/amd_drv.c
index 72aae58334f2..04e5444b0b46 100644
--- a/sys/x86/iommu/amd_drv.c
+++ b/sys/x86/iommu/amd_drv.c
@@ -80,12 +80,6 @@ static int amdiommu_enable = 0;
static TAILQ_HEAD(, amdiommu_unit) amdiommu_units =
TAILQ_HEAD_INITIALIZER(amdiommu_units);
-static u_int
-ivrs_info_to_unit_id(UINT32 info)
-{
- return ((info & ACPI_IVHD_UNIT_ID_MASK) >> 8);
-}
-
typedef bool (*amdiommu_itercc_t)(void *, void *);
typedef bool (*amdiommu_iter40_t)(ACPI_IVRS_HARDWARE2 *, void *);
typedef bool (*amdiommu_iter11_t)(ACPI_IVRS_HARDWARE2 *, void *);