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

Go to the source code of this file.

Data Structures

struct  cpuinfo_ip27
 

Macros

#define cpu_to_node(cpu)   (sn_cpu_info[(cpu)].p_nodeid)
 
#define parent_node(node)   (node)
 
#define cpumask_of_node(node)
 
#define cpumask_of_pcibus(bus)   (cpu_online_mask)
 
#define node_distance(from, to)   (__node_distances[(from)][(to)])
 

Functions

int pcibus_to_node (struct pci_bus *)
 

Variables

struct cpuinfo_ip27 sn_cpu_info [NR_CPUS]
 
unsigned char __node_distances [MAX_COMPACT_NODES][MAX_COMPACT_NODES]
 

Macro Definition Documentation

#define cpu_to_node (   cpu)    (sn_cpu_info[(cpu)].p_nodeid)

Definition at line 25 of file topology.h.

#define cpumask_of_node (   node)
Value:
((node) == -1 ? \
&hub_data(node)->h_cpus)

Definition at line 27 of file topology.h.

#define cpumask_of_pcibus (   bus)    (cpu_online_mask)

Definition at line 33 of file topology.h.

#define node_distance (   from,
  to 
)    (__node_distances[(from)][(to)])

Definition at line 37 of file topology.h.

#define parent_node (   node)    (node)

Definition at line 26 of file topology.h.

Function Documentation

int pcibus_to_node ( struct pci_bus )

Definition at line 220 of file pci-ip27.c.

Variable Documentation

unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES]

Definition at line 109 of file ip27-memory.c.

struct cpuinfo_ip27 sn_cpu_info[NR_CPUS]

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