kernel/arch/mips/include/asm/sn/sn0/hubni.h
.. .. @@ -250,6 +250,14 @@ 250 250 #define NI_LLP_CB_MAX 0xff 251 251 #define NI_LLP_SN_MAX 0xff 252 252 253 +static inline int get_region_shift(void)254 +{255 + if (LOCAL_HUB_L(NI_STATUS_REV_ID) & NSRI_REGIONSIZE_MASK)256 + return NASID_TO_FINEREG_SHFT;257 +258 + return NASID_TO_COARSEREG_SHFT;259 +}260 +253 261 #endif /* !__ASSEMBLY__ */ 254 262 255 263 #endif /* _ASM_SGI_SN0_HUBNI_H */