Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Enumerations | Functions | Variables
oplib_32.h File Reference
#include <asm/openprom.h>
#include <linux/spinlock.h>
#include <linux/compiler.h>

Go to the source code of this file.


typedef void(* sync_func_t )(void)


enum  prom_major_version {
  PROM_V0, PROM_V2, PROM_V3, PROM_P1275,


void prom_init (struct linux_romvec *rom_ptr)
charprom_getbootargs (void)
void prom_reboot (char *boot_command)
void prom_feval (char *forth_string)
void prom_cmdline (void)
void __noreturn prom_halt (void)
void prom_setsync (sync_func_t func_ptr)
unsigned char prom_get_idprom (char *idp_buffer, int idpbuf_size)
int prom_version (void)
int prom_getrev (void)
int prom_getprev (void)
void prom_console_write_buf (const char *buf, int len)
 __printf (1, 2) void prom_printf(const char *fmt
void prom_write (const char *buf, unsigned int len)
int prom_startcpu (int cpunode, struct linux_prom_registers *context_table, int context, char *program_counter)
void prom_meminit (void)
phandle prom_getchild (phandle parent_node)
phandle prom_getsibling (phandle node)
int prom_getproplen (phandle thisnode, const char *property)
int __must_check prom_getproperty (phandle thisnode, const char *property, char *prop_buffer, int propbuf_size)
int prom_getint (phandle node, char *property)
int prom_getintdefault (phandle node, char *property, int defval)
int prom_getbool (phandle node, char *prop)
void prom_getstring (phandle node, char *prop, char *buf, int bufsize)
phandle prom_searchsiblings (phandle node_start, char *name)
charprom_nextprop (phandle node, char *prev_property, char *buffer)
phandle prom_finddevice (char *name)
int prom_setprop (phandle node, const char *prop_name, char *prop_value, int value_size)
phandle prom_inst2pkg (int)
void prom_apply_obio_ranges (struct linux_prom_registers *obioregs, int nregs)
void prom_apply_generic_ranges (phandle node, phandle parent, struct linux_prom_registers *sbusregs, int nregs)
void prom_ranges_init (void)
int cpu_find_by_instance (int instance, phandle *prom_node, int *mid)
int cpu_find_by_mid (int mid, phandle *prom_node)
int cpu_get_hwmid (phandle prom_node)


struct linux_romvecromvec
enum prom_major_version prom_vers
unsigned int prom_rev
unsigned int prom_prev
phandle prom_root_node
struct linux_nodeopsprom_nodeops
spinlock_t prom_lock

Typedef Documentation

typedef void(* sync_func_t)(void)

Definition at line 75 of file oplib_32.h.

Enumeration Type Documentation


Definition at line 19 of file oplib_32.h.

Function Documentation

__printf ( ,
) const
Initial value:
return 0
int cpu_find_by_instance ( int  instance,
phandle prom_node,
int mid 

Definition at line 81 of file devices.c.

int cpu_find_by_mid ( int  mid,
phandle prom_node 

Definition at line 99 of file devices.c.

int cpu_get_hwmid ( phandle  prom_node)

Definition at line 109 of file devices.c.

void prom_apply_generic_ranges ( phandle  node,
phandle  parent,
struct linux_prom_registers sbusregs,
int  nregs 

Definition at line 91 of file ranges.c.

void prom_apply_obio_ranges ( struct linux_prom_registers obioregs,
int  nregs 

Definition at line 61 of file ranges.c.

void prom_cmdline ( void  )

Definition at line 31 of file misc.c.

void prom_console_write_buf ( const char buf,
int  len 

Definition at line 46 of file console_32.c.

void prom_feval ( char forth_string)

Definition at line 35 of file misc_32.c.

phandle prom_finddevice ( char name)

Definition at line 229 of file tree_32.c.

unsigned char prom_get_idprom ( char idp_buffer,
int  idpbuf_size 

Definition at line 56 of file misc.c.

int prom_getbool ( phandle  node,
char prop 

Definition at line 155 of file tree_32.c.

char* prom_getbootargs ( void  )

Definition at line 16 of file bootstr_32.c.

phandle prom_getchild ( phandle  parent_node)

Definition at line 39 of file tree_32.c.

int prom_getint ( phandle  node,
char property 

Definition at line 129 of file tree_32.c.

int prom_getintdefault ( phandle  node,
char property,
int  defval 

Definition at line 143 of file tree_32.c.

int prom_getprev ( void  )

Definition at line 91 of file misc.c.

int __must_check prom_getproperty ( phandle  thisnode,
const char property,
char prop_buffer,
int  propbuf_size 

Definition at line 109 of file tree_32.c.

int prom_getproplen ( phandle  thisnode,
const char property 

Definition at line 89 of file tree_32.c.

int prom_getrev ( void  )

Definition at line 84 of file misc.c.

phandle prom_getsibling ( phandle  node)

Definition at line 71 of file tree_32.c.

void prom_getstring ( phandle  node,
char prop,
char buf,
int  bufsize 

Definition at line 169 of file tree_32.c.

void __noreturn prom_halt ( void  )

Definition at line 39 of file misc.c.

void prom_init ( struct linux_romvec rom_ptr)

Definition at line 29 of file init.c.

phandle prom_inst2pkg ( int  )

Definition at line 297 of file tree_32.c.

void prom_meminit ( void  )

Definition at line 60 of file memory.c.

char* prom_nextprop ( phandle  node,
char prev_property,
char buffer 

Definition at line 220 of file tree_32.c.

void prom_ranges_init ( void  )

Definition at line 68 of file ranges.c.

void prom_reboot ( char boot_command)

Definition at line 19 of file misc.c.

phandle prom_searchsiblings ( phandle  node_start,
char name 

Definition at line 183 of file tree_32.c.

int prom_setprop ( phandle  node,
const char prop_name,
char prop_value,
int  value_size 

Definition at line 280 of file tree_32.c.

void prom_setsync ( sync_func_t  func_ptr)

Definition at line 85 of file misc_32.c.

int prom_startcpu ( int  cpunode,
struct linux_prom_registers context_table,
int  context,
char program_counter 

Definition at line 23 of file mp.c.

int prom_version ( void  )

Definition at line 77 of file misc.c.

void prom_write ( const char buf,
unsigned int  len 

Definition at line 29 of file printf.c.

Variable Documentation

spinlock_t prom_lock
struct linux_nodeops* prom_nodeops

Definition at line 22 of file init.c.

unsigned int prom_prev

Definition at line 16 of file init.c.

unsigned int prom_rev

Definition at line 16 of file init.c.

phandle prom_root_node

Definition at line 19 of file init.c.

enum prom_major_version prom_vers

Definition at line 15 of file init.c.

Definition at line 14 of file init.c.