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

Go to the source code of this file.

Macros

#define cputonasid(cpu)   (sn_cpu_info[(cpu)].p_nasid)
 
#define cputoslice(cpu)   (sn_cpu_info[(cpu)].p_slice)
 
#define makespnum(_nasid, _slice)   (((_nasid) << CPUS_PER_NODE_SHFT) | (_slice))
 
#define INVALID_NASID   (nasid_t)-1
 
#define INVALID_CNODEID   (cnodeid_t)-1
 
#define INVALID_PNODEID   (pnodeid_t)-1
 
#define INVALID_MODULE   (moduleid_t)-1
 
#define INVALID_PARTID   (partid_t)-1
 
#define NASID_TO_REGION(nnode)
 
#define NASID_TO_COMPACT_NODEID(nnode)   (nasid_to_compact_node[nnode])
 
#define COMPACT_TO_NASID_NODEID(cnode)   (compact_to_nasid_node[cnode])
 
#define CPUID_TO_COMPACT_NODEID(cpu)   (cpuid_to_compact_node[(cpu)])
 

Typedefs

typedef u64 hubreg_t
 

Functions

nasid_t get_nasid (void)
 
cnodeid_t get_cpu_cnode (cpuid_t)
 
int get_cpu_slice (cpuid_t)
 

Variables

cnodeid_t nasid_to_compact_node [MAX_NASIDS]
 
nasid_t compact_to_nasid_node [MAX_COMPACT_NODES]
 
cnodeid_t cpuid_to_compact_node [MAXCPUS]
 

Macro Definition Documentation

#define COMPACT_TO_NASID_NODEID (   cnode)    (compact_to_nasid_node[cnode])

Definition at line 61 of file arch.h.

#define CPUID_TO_COMPACT_NODEID (   cpu)    (cpuid_to_compact_node[(cpu)])

Definition at line 62 of file arch.h.

#define cputonasid (   cpu)    (sn_cpu_info[(cpu)].p_nasid)

Definition at line 22 of file arch.h.

#define cputoslice (   cpu)    (sn_cpu_info[(cpu)].p_slice)

Definition at line 23 of file arch.h.

#define INVALID_CNODEID   (cnodeid_t)-1

Definition at line 28 of file arch.h.

#define INVALID_MODULE   (moduleid_t)-1

Definition at line 30 of file arch.h.

#define INVALID_NASID   (nasid_t)-1

Definition at line 27 of file arch.h.

#define INVALID_PARTID   (partid_t)-1

Definition at line 31 of file arch.h.

#define INVALID_PNODEID   (pnodeid_t)-1

Definition at line 29 of file arch.h.

#define makespnum (   _nasid,
  _slice 
)    (((_nasid) << CPUS_PER_NODE_SHFT) | (_slice))

Definition at line 24 of file arch.h.

#define NASID_TO_COMPACT_NODEID (   nnode)    (nasid_to_compact_node[nnode])

Definition at line 60 of file arch.h.

#define NASID_TO_REGION (   nnode)
Value:
((nnode) >> \

Definition at line 52 of file arch.h.

Typedef Documentation

typedef u64 hubreg_t

Definition at line 20 of file arch.h.

Function Documentation

cnodeid_t get_cpu_cnode ( cpuid_t  )

Definition at line 76 of file ip27-klconfig.c.

int get_cpu_slice ( cpuid_t  )

Definition at line 128 of file ip27-klconfig.c.

nasid_t get_nasid ( void  )

Definition at line 151 of file ip27-init.c.

Variable Documentation

nasid_t compact_to_nasid_node

Definition at line 57 of file arch.h.

cnodeid_t cpuid_to_compact_node[MAXCPUS]

Definition at line 46 of file ip27-init.c.

cnodeid_t nasid_to_compact_node

Definition at line 56 of file arch.h.