From ea08eeccae9297f7aabd2ef7f0c2517ac4549acc Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 20 Feb 2024 01:18:26 +0000
Subject: [PATCH] write in 30M

---
 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