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

Go to the source code of this file.

Data Structures

struct  sn_hub_info_s
 

Macros

#define MAX_TIO_NODES   MAX_NUMNODES
 
#define MAX_COMPACT_NODES   (MAX_NUMNODES + MAX_TIO_NODES)
 
#define MAX_NUMALINK_NODES   16384
 
#define sn_hub_info   (&__get_cpu_var(__sn_hub_info))
 
#define is_shub2()   (sn_hub_info->shub2)
 
#define is_shub1()   (sn_hub_info->shub2 == 0)
 
#define enable_shub_wars_1_1()   (sn_hub_info->shub_1_1_found)
 
#define sn_cnodeid_to_nasid   (&__get_cpu_var(__sn_cnodeid_to_nasid[0]))
 

Functions

 DECLARE_PER_CPU (struct sn_hub_info_s, __sn_hub_info)
 
 DECLARE_PER_CPU (short, __sn_cnodeid_to_nasid[MAX_COMPACT_NODES])
 
void sn_flush_all_caches (long addr, long bytes)
 
bool sn_cpu_disable_allowed (int cpu)
 

Variables

u8 sn_partition_id
 
u8 sn_system_size
 
u8 sn_sharing_domain_size
 
u8 sn_region_size
 

Macro Definition Documentation

#define enable_shub_wars_1_1 ( )    (sn_hub_info->shub_1_1_found)

Definition at line 67 of file arch.h.

#define is_shub1 ( )    (sn_hub_info->shub2 == 0)

Definition at line 62 of file arch.h.

#define is_shub2 ( )    (sn_hub_info->shub2)

Definition at line 61 of file arch.h.

#define MAX_COMPACT_NODES   (MAX_NUMNODES + MAX_TIO_NODES)

Definition at line 35 of file arch.h.

#define MAX_NUMALINK_NODES   16384

Definition at line 45 of file arch.h.

#define MAX_TIO_NODES   MAX_NUMNODES

Definition at line 34 of file arch.h.

#define sn_cnodeid_to_nasid   (&__get_cpu_var(__sn_cnodeid_to_nasid[0]))

Definition at line 75 of file arch.h.

#define sn_hub_info   (&__get_cpu_var(__sn_hub_info))

Definition at line 60 of file arch.h.

Function Documentation

DECLARE_PER_CPU ( struct sn_hub_info_s  ,
__sn_hub_info   
)
DECLARE_PER_CPU ( short  ,
__sn_cnodeid_to_nasid  [MAX_COMPACT_NODES] 
)
bool sn_cpu_disable_allowed ( int  cpu)
void sn_flush_all_caches ( long  flush_addr,
long  bytes 
)

sn_flush_all_caches - flush a range of address from all caches (incl. L4) : identity mapped region 7 address to start flushing : number of bytes to flush

Flush a range of addresses from all caches including L4. All addresses fully or partially contained within to + are flushed from all caches.

Definition at line 24 of file cache.c.

Variable Documentation

u8 sn_partition_id

Definition at line 84 of file setup.c.

u8 sn_region_size

Definition at line 92 of file setup.c.

u8 sn_sharing_domain_size

Definition at line 88 of file setup.c.

u8 sn_system_size

Definition at line 86 of file setup.c.