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

Go to the source code of this file.

Typedefs

typedef void(* sync_func_t )(void)
 

Enumerations

enum  prom_major_version {
  PROM_V0, PROM_V2, PROM_V3, PROM_P1275,
  PROM_V0, PROM_V2, PROM_V3, PROM_P1275
}
 
enum  prom_input_device { PROMDEV_IKBD, PROMDEV_ITTYA, PROMDEV_ITTYB, PROMDEV_I_UNK }
 
enum  prom_output_device { PROMDEV_OSCREEN, PROMDEV_OTTYA, PROMDEV_OTTYB, PROMDEV_O_UNK }
 

Functions

void prom_init (struct linux_romvec *rom_ptr)
 
charprom_getbootargs (void)
 
charprom_mapio (char *virt_hint, int io_space, unsigned int phys_addr, unsigned int num_bytes)
 
void prom_unmapio (char *virt_addr, unsigned int num_bytes)
 
int prom_devopen (char *device_string)
 
int prom_devclose (int device_handle)
 
void prom_seek (int device_handle, unsigned int seek_hival, unsigned int seek_lowval)
 
struct linux_mem_v0prom_meminfo (void)
 
void prom_reboot (char *boot_command)
 
void prom_feval (char *forth_string)
 
void prom_cmdline (void)
 
void 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)
 
int prom_nbgetchar (void)
 
int prom_nbputchar (char character)
 
char prom_getchar (void)
 
void prom_putchar (char character)
 
void prom_printf (char *fmt,...)
 
enum prom_input_device prom_query_input_device (void)
 
enum prom_output_device prom_query_output_device (void)
 
int prom_startcpu (int cpunode, struct linux_prom_registers *context_table, int context, char *program_counter)
 
int prom_stopcpu (int cpunode)
 
int prom_idlecpu (int cpunode)
 
int prom_restartcpu (int cpunode)
 
charprom_alloc (char *virt_hint, unsigned int size)
 
void prom_free (char *virt_addr, unsigned int size)
 
void prom_putsegment (int context, unsigned long virt_addr, int physical_segment)
 
int prom_getchild (int parent_node)
 
int prom_getsibling (int node)
 
int prom_getproplen (int thisnode, char *property)
 
int prom_getproperty (int thisnode, char *property, char *prop_buffer, int propbuf_size)
 
int prom_getint (int node, char *property)
 
int prom_getintdefault (int node, char *property, int defval)
 
int prom_getbool (int node, char *prop)
 
void prom_getstring (int node, char *prop, char *buf, int bufsize)
 
int prom_nodematch (int thisnode, char *name)
 
int prom_searchsiblings (int node_start, char *name)
 
charprom_firstprop (int node)
 
charprom_nextprop (int node, char *prev_property)
 
int prom_node_has_property (int node, char *property)
 
int prom_setprop (int node, char *prop_name, char *prop_value, int value_size)
 
int prom_pathtoinode (char *path)
 
int prom_inst2pkg (int)
 
void prom_adjust_regs (struct linux_prom_registers *regp, int nregs, struct linux_prom_ranges *rangep, int nranges)
 
void prom_adjust_ranges (struct linux_prom_ranges *cranges, int ncranges, struct linux_prom_ranges *pranges, int npranges)
 
void prom_apply_obio_ranges (struct linux_prom_registers *obioregs, int nregs)
 
void prom_apply_generic_ranges (int node, int parent, struct linux_prom_registers *sbusregs, int nregs)
 

Variables

struct linux_romvecromvec
 
enum prom_major_version prom_vers
 
unsigned int prom_rev
 
unsigned int prom_prev
 
int prom_root_node
 
struct linux_nodeopsprom_nodeops
 

Typedef Documentation

typedef void(* sync_func_t)(void)

Definition at line 118 of file oplib.h.

Enumeration Type Documentation

Enumerator:
PROMDEV_IKBD 
PROMDEV_ITTYA 
PROMDEV_ITTYB 
PROMDEV_I_UNK 

Definition at line 155 of file oplib.h.

Enumerator:
PROM_V0 
PROM_V2 
PROM_V3 
PROM_P1275 
PROM_V0 
PROM_V2 
PROM_V3 
PROM_P1275 

Definition at line 17 of file oplib.h.

Enumerator:
PROMDEV_OSCREEN 
PROMDEV_OTTYA 
PROMDEV_OTTYB 
PROMDEV_O_UNK 

Definition at line 166 of file oplib.h.

Function Documentation

void prom_adjust_ranges ( struct linux_prom_ranges cranges,
int  ncranges,
struct linux_prom_ranges pranges,
int  npranges 
)
void prom_adjust_regs ( struct linux_prom_registers regp,
int  nregs,
struct linux_prom_ranges rangep,
int  nranges 
)
char* prom_alloc ( char virt_hint,
unsigned int  size 
)
void prom_apply_generic_ranges ( int  node,
int  parent,
struct linux_prom_registers sbusregs,
int  nregs 
)
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.

int prom_devclose ( int  device_handle)
int prom_devopen ( char device_string)
void prom_feval ( char forth_string)

Definition at line 35 of file misc_32.c.

char* prom_firstprop ( int  node)
void prom_free ( char virt_addr,
unsigned int  size 
)
unsigned char prom_get_idprom ( char idp_buffer,
int  idpbuf_size 
)

Definition at line 56 of file misc.c.

int prom_getbool ( int  node,
char prop 
)

Definition at line 138 of file prom.c.

char* prom_getbootargs ( void  )

Definition at line 16 of file bootstr_32.c.

char prom_getchar ( void  )

Definition at line 47 of file console.c.

int prom_getchild ( int  parent_node)
int prom_getint ( int  node,
char property 
)
int prom_getintdefault ( int  node,
char property,
int  defval 
)

Definition at line 133 of file prom.c.

int prom_getprev ( void  )

Definition at line 91 of file misc.c.

int prom_getproperty ( int  thisnode,
char property,
char prop_buffer,
int  propbuf_size 
)
int prom_getproplen ( int  thisnode,
char property 
)
int prom_getrev ( void  )

Definition at line 84 of file misc.c.

int prom_getsibling ( int  node)
void prom_getstring ( int  node,
char prop,
char buf,
int  bufsize 
)
void prom_halt ( void  )

Definition at line 39 of file misc.c.

int prom_idlecpu ( int  cpunode)
void prom_init ( struct linux_romvec rom_ptr)

Definition at line 29 of file init.c.

int prom_inst2pkg ( int  )
inline

Definition at line 297 of file tree_32.c.

char* prom_mapio ( char virt_hint,
int  io_space,
unsigned int  phys_addr,
unsigned int  num_bytes 
)
struct linux_mem_v0* prom_meminfo ( void  )
read
int prom_nbgetchar ( void  )

Definition at line 19 of file console.c.

int prom_nbputchar ( char  character)

Definition at line 34 of file console.c.

char* prom_nextprop ( int  node,
char prev_property 
)
int prom_node_has_property ( int  node,
char property 
)
int prom_nodematch ( int  thisnode,
char name 
)
int prom_pathtoinode ( char path)
void prom_printf ( char fmt,
  ... 
)

Definition at line 23 of file printf.c.

void prom_putchar ( char  character)

Definition at line 56 of file console.c.

void prom_putsegment ( int  context,
unsigned long  virt_addr,
int  physical_segment 
)
enum prom_input_device prom_query_input_device ( void  )
enum prom_output_device prom_query_output_device ( void  )
void prom_reboot ( char boot_command)

Definition at line 19 of file misc.c.

int prom_restartcpu ( int  cpunode)
int prom_searchsiblings ( int  node_start,
char name 
)
void prom_seek ( int  device_handle,
unsigned int  seek_hival,
unsigned int  seek_lowval 
)
int prom_setprop ( int  node,
char prop_name,
char prop_value,
int  value_size 
)
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_stopcpu ( int  cpunode)
void prom_unmapio ( char virt_addr,
unsigned int  num_bytes 
)
int prom_version ( void  )

Definition at line 77 of file misc.c.

Variable Documentation

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.

int 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.