Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
fdt.c File Reference
#include <linux/kernel.h>
#include <linux/initrd.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_fdt.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <asm/setup.h>
#include <asm/page.h>

Go to the source code of this file.

Functions

charof_fdt_get_string (struct boot_param_header *blob, u32 offset)
 
voidof_fdt_get_property (struct boot_param_header *blob, unsigned long node, const char *name, unsigned long *size)
 
int of_fdt_is_compatible (struct boot_param_header *blob, unsigned long node, const char *compat)
 
int of_fdt_match (struct boot_param_header *blob, unsigned long node, const char *const *compat)
 
void of_fdt_unflatten_tree (unsigned long *blob, struct device_node **mynodes)
 
 EXPORT_SYMBOL_GPL (of_fdt_unflatten_tree)
 

Variables

int __initdata dt_root_addr_cells
 
int __initdata dt_root_size_cells
 
struct boot_param_headerinitial_boot_params
 

Function Documentation

EXPORT_SYMBOL_GPL ( of_fdt_unflatten_tree  )
void* of_fdt_get_property ( struct boot_param_header blob,
unsigned long  node,
const char name,
unsigned long size 
)

of_fdt_get_property - Given a node in the given flat blob, return the property ptr

Definition at line 38 of file fdt.c.

char* of_fdt_get_string ( struct boot_param_header blob,
u32  offset 
)

Definition at line 28 of file fdt.c.

int of_fdt_is_compatible ( struct boot_param_header blob,
unsigned long  node,
const char compat 
)

of_fdt_is_compatible - Return true if given node from the given blob has compat in its compatible list : A device tree blob : node to test : compatible string to compare with compatible list.

On match, returns a non-zero value with smaller values returned for more specific compatible values.

Definition at line 86 of file fdt.c.

int of_fdt_match ( struct boot_param_header blob,
unsigned long  node,
const char *const compat 
)

of_fdt_match - Return true if node matches a list of compatible values

Definition at line 110 of file fdt.c.

void of_fdt_unflatten_tree ( unsigned long blob,
struct device_node **  mynodes 
)

of_fdt_unflatten_tree - create tree of device_nodes from flat blob

unflattens the device-tree passed by the firmware, creating the tree of struct device_node. It also fills the "name" and "type" pointers of the nodes so the normal device-tree walking functions can be used.

Definition at line 424 of file fdt.c.

Variable Documentation

int __initdata dt_root_addr_cells

Definition at line 434 of file fdt.c.

int __initdata dt_root_size_cells

Definition at line 435 of file fdt.c.

struct boot_param_header* initial_boot_params

Definition at line 437 of file fdt.c.