Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sn_cpuid.h File Reference
#include <linux/smp.h>
#include <asm/sn/addrs.h>
#include <asm/sn/pda.h>
#include <asm/intrinsics.h>

Go to the source code of this file.

Macros

#define get_node_number(addr)   NASID_GET(addr)
 
#define get_nasid()   (sn_nodepda->phys_cpuid[smp_processor_id()].nasid)
 
#define get_subnode()   (sn_nodepda->phys_cpuid[smp_processor_id()].subnode)
 
#define get_slice()   (sn_nodepda->phys_cpuid[smp_processor_id()].slice)
 
#define get_cnode()   (sn_nodepda->phys_cpuid[smp_processor_id()].cnode)
 
#define get_sapicid()   ((ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff)
 
#define cpuid_to_nasid(cpuid)   (sn_nodepda->phys_cpuid[cpuid].nasid)
 
#define cpuid_to_subnode(cpuid)   (sn_nodepda->phys_cpuid[cpuid].subnode)
 
#define cpuid_to_slice(cpuid)   (sn_nodepda->phys_cpuid[cpuid].slice)
 
#define cnodeid_to_nasid(cnodeid)   (sn_cnodeid_to_nasid[cnodeid])
 
#define nasid_to_cnodeid(nasid)   (physical_node_map[nasid])
 
#define partition_coherence_id()   (sn_coherency_id)
 

Functions

int nasid_slice_to_cpuid (int, int)
 

Variables

short physical_node_map []
 
u8 sn_coherency_id
 

Macro Definition Documentation

#define cnodeid_to_nasid (   cnodeid)    (sn_cnodeid_to_nasid[cnodeid])

Definition at line 118 of file sn_cpuid.h.

#define cpuid_to_nasid (   cpuid)    (sn_nodepda->phys_cpuid[cpuid].nasid)

Definition at line 104 of file sn_cpuid.h.

#define cpuid_to_slice (   cpuid)    (sn_nodepda->phys_cpuid[cpuid].slice)

Definition at line 106 of file sn_cpuid.h.

#define cpuid_to_subnode (   cpuid)    (sn_nodepda->phys_cpuid[cpuid].subnode)

Definition at line 105 of file sn_cpuid.h.

#define get_cnode ( )    (sn_nodepda->phys_cpuid[smp_processor_id()].cnode)

Definition at line 97 of file sn_cpuid.h.

#define get_nasid (   void)    (sn_nodepda->phys_cpuid[smp_processor_id()].nasid)

Definition at line 94 of file sn_cpuid.h.

#define get_node_number (   addr)    NASID_GET(addr)

Definition at line 83 of file sn_cpuid.h.

#define get_sapicid ( )    ((ia64_getreg(_IA64_REG_CR_LID) >> 16) & 0xffff)

Definition at line 98 of file sn_cpuid.h.

#define get_slice ( )    (sn_nodepda->phys_cpuid[smp_processor_id()].slice)

Definition at line 96 of file sn_cpuid.h.

#define get_subnode ( )    (sn_nodepda->phys_cpuid[smp_processor_id()].subnode)

Definition at line 95 of file sn_cpuid.h.

#define nasid_to_cnodeid (   nasid)    (physical_node_map[nasid])

Definition at line 123 of file sn_cpuid.h.

#define partition_coherence_id ( )    (sn_coherency_id)

Definition at line 129 of file sn_cpuid.h.

Function Documentation

int nasid_slice_to_cpuid ( int  ,
int   
)

Definition at line 748 of file setup.c.

Variable Documentation

short physical_node_map[]

Definition at line 96 of file setup.c.

u8 sn_coherency_id

Definition at line 90 of file setup.c.