Linux Kernel
3.7.1
|
#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] |
#define COMPACT_TO_NASID_NODEID | ( | cnode | ) | (compact_to_nasid_node[cnode]) |
#define CPUID_TO_COMPACT_NODEID | ( | cpu | ) | (cpuid_to_compact_node[(cpu)]) |
#define cputonasid | ( | cpu | ) | (sn_cpu_info[(cpu)].p_nasid) |
#define cputoslice | ( | cpu | ) | (sn_cpu_info[(cpu)].p_slice) |
#define INVALID_MODULE (moduleid_t)-1 |
#define makespnum | ( | _nasid, | |
_slice | |||
) | (((_nasid) << CPUS_PER_NODE_SHFT) | (_slice)) |
#define NASID_TO_COMPACT_NODEID | ( | nnode | ) | (nasid_to_compact_node[nnode]) |
#define NASID_TO_REGION | ( | nnode | ) |
Definition at line 76 of file ip27-klconfig.c.
Definition at line 128 of file ip27-klconfig.c.
Definition at line 151 of file ip27-init.c.
Definition at line 46 of file ip27-init.c.