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

Go to the source code of this file.

Data Structures

struct  platform_ops
 
struct  dt_ops
 
struct  console_ops
 
struct  serial_console_data
 
struct  loader_info
 

Macros

#define COMMAND_LINE_SIZE   512
 
#define MAX_PATH_LEN   256
 
#define MAX_PROP_LEN   256 /* What should this be? */
 
#define setprop_val(devp, name, val)
 
#define dt_fixup_mac_addresses(...)   __dt_fixup_mac_addresses(0, __VA_ARGS__, NULL)
 
#define fatal(args...)   { printf(args); exit(); }
 
#define BSS_STACK(size)
 

Typedefs

typedef void(* kernel_entry_t )(unsigned long r3, unsigned long r4, void *r5)
 

Functions

void start (void)
 
void fdt_init (void *blob)
 
int serial_console_init (void)
 
int ns16550_console_init (void *devp, struct serial_console_data *scdp)
 
int mpsc_console_init (void *devp, struct serial_console_data *scdp)
 
int cpm_console_init (void *devp, struct serial_console_data *scdp)
 
int mpc5200_psc_console_init (void *devp, struct serial_console_data *scdp)
 
int uartlite_console_init (void *devp, struct serial_console_data *scdp)
 
voidsimple_alloc_init (char *base, unsigned long heap_size, unsigned long granularity, unsigned long max_allocs)
 
void flush_cache (void *, unsigned long)
 
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)
 
void dt_get_reg_format (void *node, u32 *naddr, u32 *nsize)
 
int dt_get_virtual_reg (void *node, void **addr, int nres)
 
void dt_fixup_memory (u64 start, u64 size)
 
void dt_fixup_cpu_clocks (u32 cpufreq, u32 tbfreq, u32 busfreq)
 
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 udelay (long delay)
 

Variables

struct platform_ops platform_ops
 
struct dt_ops dt_ops
 
struct console_ops console_ops
 
struct loader_info loader_info
 
unsigned long timebase_period_ns
 
char _start []
 
char __bss_start []
 
char _end []
 
char _vmlinux_start []
 
char _vmlinux_end []
 
char _initrd_start []
 
char _initrd_end []
 
char _dtb_start []
 
char _dtb_end []
 

Macro Definition Documentation

#define BSS_STACK (   size)
Value:
static char _bss_stack[size]; \
void *_platform_stack_top = _bss_stack + sizeof(_bss_stack);

Definition at line 237 of file ops.h.

#define COMMAND_LINE_SIZE   512

Definition at line 18 of file ops.h.

#define dt_fixup_mac_addresses (   ...)    __dt_fixup_mac_addresses(0, __VA_ARGS__, NULL)

Definition at line 199 of file ops.h.

#define fatal (   args...)    { printf(args); exit(); }

Definition at line 234 of file ops.h.

#define MAX_PATH_LEN   256

Definition at line 19 of file ops.h.

#define MAX_PROP_LEN   256 /* What should this be? */

Definition at line 20 of file ops.h.

#define setprop_val (   devp,
  name,
  val 
)
Value:
do { \
typeof(val) x = (val); \
setprop((devp), (name), &x, sizeof(x)); \
} while (0)

Definition at line 116 of file ops.h.

Typedef Documentation

typedef void(* kernel_entry_t)(unsigned long r3, unsigned long r4, void *r5)

Definition at line 22 of file ops.h.

Function Documentation

void __dt_fixup_mac_addresses ( u32  startindex,
  ... 
)

Definition at line 120 of file devtree.c.

int cpm_console_init ( void devp,
struct serial_console_data scdp 
)

Definition at line 198 of file cpm-serial.c.

void dt_fixup_clock ( const char path,
u32  freq 
)

Definition at line 81 of file devtree.c.

void dt_fixup_cpu_clocks ( u32  cpufreq,
u32  tbfreq,
u32  busfreq 
)

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.

void fdt_init ( void blob)

Definition at line 170 of file libfdt-wrapper.c.

void flush_cache ( void ,
unsigned  long 
)
int mpc5200_psc_console_init ( void devp,
struct serial_console_data scdp 
)

Definition at line 52 of file mpc52xx-psc.c.

int mpsc_console_init ( void devp,
struct serial_console_data scdp 
)

Definition at line 125 of file mpsc.c.

int ns16550_console_init ( void devp,
struct serial_console_data scdp 
)

Definition at line 55 of file ns16550.c.

int serial_console_init ( void  )

Definition at line 111 of file serial.c.

void* simple_alloc_init ( char base,
unsigned long  heap_size,
unsigned long  granularity,
unsigned long  max_allocs 
)

Definition at line 126 of file simple_alloc.c.

void start ( void  )

Definition at line 165 of file main.c.

int uartlite_console_init ( void devp,
struct serial_console_data scdp 
)

Definition at line 60 of file uartlite.c.

void udelay ( long  delay)

Variable Documentation

char __bss_start[]
char _dtb_end[]
char _dtb_start[]
char _end[]
char _initrd_end[]
char _initrd_start[]
char _start[]
char _vmlinux_end[]
char _vmlinux_start[]

Definition at line 162 of file main.c.

Definition at line 161 of file main.c.

Definition at line 163 of file main.c.

Definition at line 160 of file main.c.

unsigned long timebase_period_ns