Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mdesc.c File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/memblock.h>
#include <linux/log2.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/miscdevice.h>
#include <linux/bootmem.h>
#include <linux/export.h>
#include <asm/cpudata.h>
#include <asm/hypervisor.h>
#include <asm/mdesc.h>
#include <asm/prom.h>
#include <asm/uaccess.h>
#include <asm/oplib.h>
#include <asm/smp.h>

Go to the source code of this file.

Data Structures

struct  mdesc_hdr
struct  mdesc_elem
struct  mdesc_mem_ops
struct  mdesc_handle


#define MD_LIST_END   0x00
#define MD_NODE   0x4e
#define MD_NODE_END   0x45
#define MD_NOOP   0x20
#define MD_PROP_ARC   0x61
#define MD_PROP_VAL   0x76
#define MD_PROP_STR   0x73
#define MD_PROP_DATA   0x64


struct mdesc_hdr __attribute__ ((aligned(16)))
struct mdesc_handlemdesc_grab (void)
 EXPORT_SYMBOL (mdesc_grab)
void mdesc_release (struct mdesc_handle *hp)
 EXPORT_SYMBOL (mdesc_release)
void mdesc_register_notifier (struct mdesc_notifier_client *client)
void mdesc_update (void)
u64 mdesc_node_by_name (struct mdesc_handle *hp, u64 from_node, const char *name)
 EXPORT_SYMBOL (mdesc_node_by_name)
const voidmdesc_get_property (struct mdesc_handle *hp, u64 node, const char *name, int *lenp)
 EXPORT_SYMBOL (mdesc_get_property)
u64 mdesc_next_arc (struct mdesc_handle *hp, u64 from, const char *arc_type)
 EXPORT_SYMBOL (mdesc_next_arc)
u64 mdesc_arc_target (struct mdesc_handle *hp, u64 arc)
 EXPORT_SYMBOL (mdesc_arc_target)
const charmdesc_node_name (struct mdesc_handle *hp, u64 node)
 EXPORT_SYMBOL (mdesc_node_name)
void __cpuinit mdesc_populate_present_mask (cpumask_t *mask)
void __init mdesc_get_page_sizes (cpumask_t *mask, unsigned long *pgsz_mask)
void __cpuinit mdesc_fill_in_cpu_data (cpumask_t *mask)
 __initcall (mdesc_misc_init)
void __init sun4v_mdesc_init (void)


u32 version
u32 node_sz
u32 name_sz
u32 data_sz
struct mdesc_elem __attribute__

Macro Definition Documentation

#define MD_LIST_END   0x00

Definition at line 44 of file mdesc.c.

#define MD_NODE   0x4e

Definition at line 45 of file mdesc.c.

#define MD_NODE_END   0x45

Definition at line 46 of file mdesc.c.

#define MD_NOOP   0x20

Definition at line 47 of file mdesc.c.

#define MD_PROP_ARC   0x61

Definition at line 48 of file mdesc.c.

#define MD_PROP_DATA   0x64

Definition at line 51 of file mdesc.c.

#define MD_PROP_STR   0x73

Definition at line 50 of file mdesc.c.

#define MD_PROP_VAL   0x76

Definition at line 49 of file mdesc.c.

Function Documentation

__initcall ( mdesc_misc_init  )
EXPORT_SYMBOL ( mdesc_grab  )
EXPORT_SYMBOL ( mdesc_release  )
EXPORT_SYMBOL ( mdesc_node_by_name  )
EXPORT_SYMBOL ( mdesc_get_property  )
EXPORT_SYMBOL ( mdesc_next_arc  )
EXPORT_SYMBOL ( mdesc_arc_target  )
EXPORT_SYMBOL ( mdesc_node_name  )
u64 mdesc_arc_target ( struct mdesc_handle hp,
u64  arc 

Definition at line 486 of file mdesc.c.

void __cpuinit mdesc_fill_in_cpu_data ( cpumask_t mask)

Definition at line 893 of file mdesc.c.

void __init mdesc_get_page_sizes ( cpumask_t mask,
unsigned long pgsz_mask 

Definition at line 838 of file mdesc.c.

const void* mdesc_get_property ( struct mdesc_handle hp,
u64  node,
const char name,
int lenp 

Definition at line 414 of file mdesc.c.

struct mdesc_handle* mdesc_grab ( void  )

Definition at line 188 of file mdesc.c.

u64 mdesc_next_arc ( struct mdesc_handle hp,
u64  from,
const char arc_type 

Definition at line 460 of file mdesc.c.

u64 mdesc_node_by_name ( struct mdesc_handle hp,
u64  from_node,
const char name 

Definition at line 385 of file mdesc.c.

const char* mdesc_node_name ( struct mdesc_handle hp,
u64  node 

Definition at line 496 of file mdesc.c.

void __cpuinit mdesc_populate_present_mask ( cpumask_t mask)

Definition at line 811 of file mdesc.c.

void mdesc_register_notifier ( struct mdesc_notifier_client client)

Definition at line 219 of file mdesc.c.

void mdesc_release ( struct mdesc_handle hp)

Definition at line 203 of file mdesc.c.

void mdesc_update ( void  )

Definition at line 327 of file mdesc.c.

void __init sun4v_mdesc_init ( void  )

Definition at line 951 of file mdesc.c.

Variable Documentation

u32 data_sz

Definition at line 44 of file mdesc.c.

u32 name_sz

Definition at line 43 of file mdesc.c.

u32 node_sz

Definition at line 42 of file mdesc.c.

u32 version

Definition at line 41 of file mdesc.c.