From 08f87f769b595151be1afeff53e144f543faa614 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 06 Dec 2023 09:51:13 +0000
Subject: [PATCH] add dts config
---
kernel/arch/mips/include/asm/sn/sn0/hubni.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/kernel/arch/mips/include/asm/sn/sn0/hubni.h b/kernel/arch/mips/include/asm/sn/sn0/hubni.h
index b73c4be..b825314 100644
--- a/kernel/arch/mips/include/asm/sn/sn0/hubni.h
+++ b/kernel/arch/mips/include/asm/sn/sn0/hubni.h
@@ -250,6 +250,14 @@
#define NI_LLP_CB_MAX 0xff
#define NI_LLP_SN_MAX 0xff
+static inline int get_region_shift(void)
+{
+ if (LOCAL_HUB_L(NI_STATUS_REV_ID) & NSRI_REGIONSIZE_MASK)
+ return NASID_TO_FINEREG_SHFT;
+
+ return NASID_TO_COARSEREG_SHFT;
+}
+
#endif /* !__ASSEMBLY__ */
#endif /* _ASM_SGI_SN0_HUBNI_H */
--
Gitblit v1.6.2