Go to the documentation of this file.
11 #ifndef _ASM_SN_ARCH_H
12 #define _ASM_SN_ARCH_H
14 #include <linux/types.h>
15 #include <asm/sn/types.h>
16 #ifdef CONFIG_SGI_IP27
22 #define cputonasid(cpu) (sn_cpu_info[(cpu)].p_nasid)
23 #define cputoslice(cpu) (sn_cpu_info[(cpu)].p_slice)
24 #define makespnum(_nasid, _slice) \
25 (((_nasid) << CPUS_PER_NODE_SHFT) | (_slice))
27 #define INVALID_NASID (nasid_t)-1
28 #define INVALID_CNODEID (cnodeid_t)-1
29 #define INVALID_PNODEID (pnodeid_t)-1
30 #define INVALID_MODULE (moduleid_t)-1
31 #define INVALID_PARTID (partid_t)-1
52 #define NASID_TO_REGION(nnode) \
54 (is_fine_dirmode() ? NASID_TO_FINEREG_SHFT : NASID_TO_COARSEREG_SHFT))
60 #define NASID_TO_COMPACT_NODEID(nnode) (nasid_to_compact_node[nnode])
61 #define COMPACT_TO_NASID_NODEID(cnode) (compact_to_nasid_node[cnode])
62 #define CPUID_TO_COMPACT_NODEID(cpu) (cpuid_to_compact_node[(cpu)])