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

Go to the source code of this file.

Data Structures

struct  uv_hub_info_s
 

Macros

#define UV_MAX_NUMALINK_BLADES   16384
 
#define UV_MAX_SSI_BLADES   1
 
#define UV_MAX_NASID_VALUE   (UV_MAX_NUMALINK_NODES * 2)
 
#define uv_hub_info   (&__get_cpu_var(__uv_hub_info))
 
#define uv_cpu_hub_info(cpu)   (&per_cpu(__uv_hub_info, cpu))
 
#define UV_NASID_TO_PNODE(n)   (((n) >> 1) & uv_hub_info->pnode_mask)
 
#define UV_PNODE_TO_NASID(p)   (((p) << 1) | uv_hub_info->gnode_upper)
 
#define UV_LOCAL_MMR_BASE   0xf4000000UL
 
#define UV_GLOBAL_MMR32_BASE   0xf8000000UL
 
#define UV_GLOBAL_MMR64_BASE   (uv_hub_info->global_mmr_base)
 
#define UV_GLOBAL_MMR32_PNODE_SHIFT   15
 
#define UV_GLOBAL_MMR64_PNODE_SHIFT   26
 
#define UV_GLOBAL_MMR32_PNODE_BITS(p)   ((p) << (UV_GLOBAL_MMR32_PNODE_SHIFT))
 
#define UV_GLOBAL_MMR64_PNODE_BITS(p)   ((unsigned long)(p) << UV_GLOBAL_MMR64_PNODE_SHIFT)
 

Functions

 DECLARE_PER_CPU (struct uv_hub_info_s, __uv_hub_info)
 

Macro Definition Documentation

#define uv_cpu_hub_info (   cpu)    (&per_cpu(__uv_hub_info, cpu))

Definition at line 112 of file uv_hub.h.

#define UV_GLOBAL_MMR32_BASE   0xf8000000UL

Definition at line 126 of file uv_hub.h.

#define UV_GLOBAL_MMR32_PNODE_BITS (   p)    ((p) << (UV_GLOBAL_MMR32_PNODE_SHIFT))

Definition at line 132 of file uv_hub.h.

#define UV_GLOBAL_MMR32_PNODE_SHIFT   15

Definition at line 129 of file uv_hub.h.

#define UV_GLOBAL_MMR64_BASE   (uv_hub_info->global_mmr_base)

Definition at line 127 of file uv_hub.h.

#define UV_GLOBAL_MMR64_PNODE_BITS (   p)    ((unsigned long)(p) << UV_GLOBAL_MMR64_PNODE_SHIFT)

Definition at line 134 of file uv_hub.h.

#define UV_GLOBAL_MMR64_PNODE_SHIFT   26

Definition at line 130 of file uv_hub.h.

#define uv_hub_info   (&__get_cpu_var(__uv_hub_info))

Definition at line 111 of file uv_hub.h.

#define UV_LOCAL_MMR_BASE   0xf4000000UL

Definition at line 125 of file uv_hub.h.

#define UV_MAX_NASID_VALUE   (UV_MAX_NUMALINK_NODES * 2)

Definition at line 89 of file uv_hub.h.

#define UV_MAX_NUMALINK_BLADES   16384

Definition at line 78 of file uv_hub.h.

#define UV_MAX_SSI_BLADES   1

Definition at line 84 of file uv_hub.h.

#define UV_NASID_TO_PNODE (   n)    (((n) >> 1) & uv_hub_info->pnode_mask)

Definition at line 122 of file uv_hub.h.

#define UV_PNODE_TO_NASID (   p)    (((p) << 1) | uv_hub_info->gnode_upper)

Definition at line 123 of file uv_hub.h.

Function Documentation

DECLARE_PER_CPU ( struct uv_hub_info_s  ,
__uv_hub_info   
)