Go to the documentation of this file.
11 #ifndef _ASM_IA64_SN_SN_CPUID_H
12 #define _ASM_IA64_SN_SN_CPUID_H
15 #include <asm/sn/addrs.h>
17 #include <asm/intrinsics.h>
83 #define get_node_number(addr) NASID_GET(addr)
94 #define get_nasid() (sn_nodepda->phys_cpuid[smp_processor_id()].nasid)
95 #define get_subnode() (sn_nodepda->phys_cpuid[smp_processor_id()].subnode)
96 #define get_slice() (sn_nodepda->phys_cpuid[smp_processor_id()].slice)
97 #define get_cnode() (sn_nodepda->phys_cpuid[smp_processor_id()].cnode)
98 #define get_sapicid() ((ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff)
104 #define cpuid_to_nasid(cpuid) (sn_nodepda->phys_cpuid[cpuid].nasid)
105 #define cpuid_to_subnode(cpuid) (sn_nodepda->phys_cpuid[cpuid].subnode)
106 #define cpuid_to_slice(cpuid) (sn_nodepda->phys_cpuid[cpuid].slice)
118 #define cnodeid_to_nasid(cnodeid) (sn_cnodeid_to_nasid[cnodeid])
123 #define nasid_to_cnodeid(nasid) (physical_node_map[nasid])
129 #define partition_coherence_id() (sn_coherency_id)