Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 2023 11:52:13 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c3785c3eb0e3 - main - Remove unneeded SMMU macros
Message-ID:  <202304241152.33OBqDSp003252@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

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

commit c3785c3eb0e3971a366ff4ee1e264ab316eb191f
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2023-04-24 11:48:01 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-04-24 11:48:01 +0000

    Remove unneeded SMMU macros
    
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D39186
---
 sys/arm64/iommu/iommu_pte.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/arm64/iommu/iommu_pte.h b/sys/arm64/iommu/iommu_pte.h
index 88800c15ba42..5ddbc487642b 100644
--- a/sys/arm64/iommu/iommu_pte.h
+++ b/sys/arm64/iommu/iommu_pte.h
@@ -35,8 +35,6 @@
 
 /* Level 0 table, 512GiB per entry */
 #define	IOMMU_L0_SHIFT		39
-#define	IOMMU_L0_SIZE		(1ul << IOMMU_L0_SHIFT)
-#define	IOMMU_L0_OFFSET		(IOMMU_L0_SIZE - 1ul)
 #define	IOMMU_L0_INVAL		0x0 /* An invalid address */
 		/* 0x1 Level 0 doesn't support block translation */
 		/* 0x2 also marks an invalid address */
@@ -44,14 +42,12 @@
 
 /* Level 1 table, 1GiB per entry */
 #define	IOMMU_L1_SHIFT		30
-#define	IOMMU_L1_SIZE 		(1 << IOMMU_L1_SHIFT)
 #define	IOMMU_L1_INVAL		IOMMU_L0_INVAL
 #define	IOMMU_L1_BLOCK		0x1
 #define	IOMMU_L1_TABLE		IOMMU_L0_TABLE
 
 /* Level 2 table, 2MiB per entry */
 #define	IOMMU_L2_SHIFT		21
-#define	IOMMU_L2_SIZE 		(1 << IOMMU_L2_SHIFT)
 #define	IOMMU_L2_INVAL		IOMMU_L1_INVAL
 #define	IOMMU_L2_BLOCK		IOMMU_L1_BLOCK
 #define	IOMMU_L2_TABLE		IOMMU_L1_TABLE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304241152.33OBqDSp003252>