Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
devtree.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include "types.h"
#include "string.h"
#include "stdio.h"
#include "ops.h"

Go to the source code of this file.

Macros

#define MHZ(x)   ((x + 500000) / 1000000)
 
#define MAX_ADDR_CELLS   4
 

Functions

void dt_fixup_memory (u64 start, u64 size)
 
void dt_fixup_cpu_clocks (u32 cpu, u32 tb, u32 bus)
 
void dt_fixup_clock (const char *path, u32 freq)
 
void dt_fixup_mac_address_by_alias (const char *alias, const u8 *addr)
 
void dt_fixup_mac_address (u32 index, const u8 *addr)
 
void __dt_fixup_mac_addresses (u32 startindex,...)
 
void dt_get_reg_format (void *node, u32 *naddr, u32 *nsize)
 
int dt_xlate_reg (void *node, int res, unsigned long *addr, unsigned long *size)
 
int dt_xlate_addr (void *node, u32 *buf, int buflen, unsigned long *xlated_addr)
 
int dt_is_compatible (void *node, const char *compat)
 
int dt_get_virtual_reg (void *node, void **addr, int nres)
 

Macro Definition Documentation

#define MAX_ADDR_CELLS   4

Definition at line 134 of file devtree.c.

#define MHZ (   x)    ((x + 500000) / 1000000)

Definition at line 60 of file devtree.c.

Function Documentation

void __dt_fixup_mac_addresses ( u32  startindex,
  ... 
)

Definition at line 120 of file devtree.c.

void dt_fixup_clock ( const char path,
u32  freq 
)

Definition at line 81 of file devtree.c.

void dt_fixup_cpu_clocks ( u32  cpu,
u32  tb,
u32  bus 
)

Definition at line 62 of file devtree.c.

void dt_fixup_mac_address ( u32  index,
const u8 addr 
)

Definition at line 105 of file devtree.c.

void dt_fixup_mac_address_by_alias ( const char alias,
const u8 addr 
)

Definition at line 91 of file devtree.c.

void dt_fixup_memory ( u64  start,
u64  size 
)

Definition at line 21 of file devtree.c.

void dt_get_reg_format ( void node,
u32 naddr,
u32 nsize 
)

Definition at line 136 of file devtree.c.

int dt_get_virtual_reg ( void node,
void **  addr,
int  nres 
)

Definition at line 354 of file devtree.c.

int dt_is_compatible ( void node,
const char compat 
)

Definition at line 335 of file devtree.c.

int dt_xlate_addr ( void node,
u32 buf,
int  buflen,
unsigned long xlated_addr 
)

Definition at line 325 of file devtree.c.

int dt_xlate_reg ( void node,
int  res,
unsigned long addr,
unsigned long size 
)

Definition at line 317 of file devtree.c.