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

Go to the source code of this file.

Data Structures

struct  linux_mlist_p1275
 
struct  linux_mem_p1275
 

Macros

#define PROM_MAP_WRITE   0x0001 /* Writable */
 
#define PROM_MAP_READ   0x0002 /* Readable - sw */
 
#define PROM_MAP_EXEC   0x0004 /* Executable - sw */
 
#define PROM_MAP_LOCKED   0x0010 /* Locked, use i/dtlb load calls for this instead */
 
#define PROM_MAP_CACHED   0x0020 /* Cacheable in both L1 and L2 caches */
 
#define PROM_MAP_SE   0x0040 /* Side-Effects */
 
#define PROM_MAP_GLOB   0x0080 /* Global */
 
#define PROM_MAP_IE   0x0100 /* Invert-Endianness */
 
#define PROM_MAP_DEFAULT   (PROM_MAP_WRITE | PROM_MAP_READ | PROM_MAP_EXEC | PROM_MAP_CACHED)
 

Functions

void prom_init (void *cif_handler, void *cif_stack)
 
charprom_getbootargs (void)
 
void prom_reboot (const char *boot_command)
 
void prom_feval (const char *forth_string)
 
void prom_cmdline (void)
 
void prom_halt (void) __attribute__((noreturn))
 
void prom_halt_power_off (void) __attribute__((noreturn))
 
unsigned char prom_get_idprom (char *idp_buffer, int idpbuf_size)
 
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)
 
void prom_sleepself (void)
 
int prom_sleepsystem (void)
 
int prom_wakeupsystem (void)
 
int prom_getunumber (int syndrome_code, unsigned long phys_addr, char *buf, int buflen)
 
int prom_retain (const char *name, unsigned long size, unsigned long align, unsigned long *paddr)
 
long prom_itlb_load (unsigned long index, unsigned long tte_data, unsigned long vaddr)
 
long prom_dtlb_load (unsigned long index, unsigned long tte_data, unsigned long vaddr)
 
int prom_map (int mode, unsigned long size, unsigned long vaddr, unsigned long paddr)
 
void prom_unmap (unsigned long size, unsigned long vaddr)
 
phandle prom_getchild (phandle parent_node)
 
phandle prom_getsibling (phandle node)
 
int prom_getproplen (phandle thisnode, const char *property)
 
int prom_getproperty (phandle thisnode, const char *property, char *prop_buffer, int propbuf_size)
 
int prom_getint (phandle node, const char *property)
 
int prom_getintdefault (phandle node, const char *property, int defval)
 
int prom_getbool (phandle node, const char *prop)
 
void prom_getstring (phandle node, const char *prop, char *buf, int bufsize)
 
int prom_nodematch (phandle thisnode, const char *name)
 
phandle prom_searchsiblings (phandle node_start, const char *name)
 
charprom_firstprop (phandle node, char *buffer)
 
charprom_nextprop (phandle node, const char *prev_property, char *buf)
 
int prom_node_has_property (phandle node, const char *property)
 
phandle prom_finddevice (const char *name)
 
int prom_setprop (phandle node, const char *prop_name, char *prop_value, int value_size)
 
phandle prom_inst2pkg (int)
 
void prom_sun4v_guest_soft_state (void)
 
int prom_ihandle2path (int handle, char *buffer, int bufsize)
 
void p1275_cmd_direct (unsigned long *)
 

Variables

char prom_version []
 
phandle prom_root_node
 
int prom_stdout
 
phandle prom_chosen_node
 
const char prom_peer_name []
 
const char prom_compatible_name []
 
const char prom_root_compatible []
 
const char prom_cpu_compatible []
 
const char prom_finddev_name []
 
const char prom_chosen_path []
 
const char prom_cpu_path []
 
const char prom_getprop_name []
 
const char prom_mmu_name []
 
const char prom_callmethod_name []
 
const char prom_translate_name []
 
const char prom_map_name []
 
const char prom_unmap_name []
 
int prom_mmu_ihandle_cache
 
unsigned int prom_boot_mapped_pc
 
unsigned int prom_boot_mapping_mode
 
unsigned long prom_boot_mapping_phys_high
 
unsigned long prom_boot_mapping_phys_low
 

Macro Definition Documentation

#define PROM_MAP_CACHED   0x0020 /* Cacheable in both L1 and L2 caches */

Definition at line 167 of file oplib_64.h.

#define PROM_MAP_DEFAULT   (PROM_MAP_WRITE | PROM_MAP_READ | PROM_MAP_EXEC | PROM_MAP_CACHED)

Definition at line 171 of file oplib_64.h.

#define PROM_MAP_EXEC   0x0004 /* Executable - sw */

Definition at line 165 of file oplib_64.h.

#define PROM_MAP_GLOB   0x0080 /* Global */

Definition at line 169 of file oplib_64.h.

#define PROM_MAP_IE   0x0100 /* Invert-Endianness */

Definition at line 170 of file oplib_64.h.

#define PROM_MAP_LOCKED   0x0010 /* Locked, use i/dtlb load calls for this instead */

Definition at line 166 of file oplib_64.h.

#define PROM_MAP_READ   0x0002 /* Readable - sw */

Definition at line 164 of file oplib_64.h.

#define PROM_MAP_SE   0x0040 /* Side-Effects */

Definition at line 168 of file oplib_64.h.

#define PROM_MAP_WRITE   0x0001 /* Writable */

Definition at line 163 of file oplib_64.h.

Function Documentation

__printf ( ,
 
) const
void p1275_cmd_direct ( unsigned long )

Definition at line 36 of file p1275.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.

long prom_dtlb_load ( unsigned long  index,
unsigned long  tte_data,
unsigned long  vaddr 
)

Definition at line 234 of file misc_64.c.

void prom_feval ( const char forth_string)

Definition at line 68 of file misc_64.c.

phandle prom_finddevice ( const char name)

Definition at line 292 of file tree_64.c.

char* prom_firstprop ( phandle  node,
char buffer 
)
inline

Definition at line 238 of file tree_64.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,
const char prop 
)

Definition at line 172 of file tree_64.c.

char* prom_getbootargs ( void  )

Definition at line 16 of file bootstr_32.c.

phandle prom_getchild ( phandle  parent_node)
inline

Definition at line 39 of file tree_32.c.

int prom_getint ( phandle  node,
const char property 
)
inline

Definition at line 144 of file tree_64.c.

int prom_getintdefault ( phandle  node,
const char property,
int  defval 
)

Definition at line 159 of file tree_64.c.

int prom_getproperty ( phandle  thisnode,
const char property,
char prop_buffer,
int  propbuf_size 
)
inline

Definition at line 109 of file tree_32.c.

int prom_getproplen ( phandle  thisnode,
const char property 
)
inline

Definition at line 89 of file tree_32.c.

phandle prom_getsibling ( phandle  node)
inline

Definition at line 71 of file tree_32.c.

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

Definition at line 187 of file tree_64.c.

int prom_getunumber ( int  syndrome_code,
unsigned long  phys_addr,
char buf,
int  buflen 
)

Definition at line 322 of file misc_64.c.

void prom_halt ( void  )

Definition at line 39 of file misc.c.

void prom_halt_power_off ( void  )

Definition at line 135 of file misc_64.c.

int prom_ihandle2path ( int  handle,
char buffer,
int  bufsize 
)

Definition at line 377 of file tree_64.c.

void prom_init ( void cif_handler,
void cif_stack 
)

Definition at line 31 of file init_64.c.

phandle prom_inst2pkg ( int  )
inline

Definition at line 297 of file tree_32.c.

long prom_itlb_load ( unsigned long  index,
unsigned long  tte_data,
unsigned long  vaddr 
)

Definition at line 227 of file misc_64.c.

int prom_map ( int  mode,
unsigned long  size,
unsigned long  vaddr,
unsigned long  paddr 
)

Definition at line 241 of file misc_64.c.

char* prom_nextprop ( phandle  node,
const char prev_property,
char buf 
)
inline

Definition at line 264 of file tree_64.c.

int prom_node_has_property ( phandle  node,
const char property 
)

Definition at line 310 of file tree_64.c.

int prom_nodematch ( phandle  thisnode,
const char name 
)

Definition at line 202 of file tree_64.c.

void prom_reboot ( const char boot_command)

Definition at line 51 of file misc_64.c.

int prom_retain ( const char name,
unsigned long  size,
unsigned long  align,
unsigned long paddr 
)

Definition at line 285 of file misc_64.c.

phandle prom_searchsiblings ( phandle  node_start,
const char name 
)

Definition at line 214 of file tree_64.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_sleepself ( void  )

Definition at line 347 of file misc_64.c.

int prom_sleepsystem ( void  )

Definition at line 357 of file misc_64.c.

void prom_sun4v_guest_soft_state ( void  )

Definition at line 37 of file misc_64.c.

void prom_unmap ( unsigned long  size,
unsigned long  vaddr 
)

Definition at line 267 of file misc_64.c.

int prom_wakeupsystem ( void  )

Definition at line 370 of file misc_64.c.

void prom_write ( const char buf,
unsigned int  len 
)

Definition at line 29 of file printf.c.

Variable Documentation

unsigned int prom_boot_mapped_pc
unsigned int prom_boot_mapping_mode
unsigned long prom_boot_mapping_phys_high
unsigned long prom_boot_mapping_phys_low
const char prom_callmethod_name[]
phandle prom_chosen_node

Definition at line 22 of file init_64.c.

const char prom_chosen_path[]
const char prom_compatible_name[]
const char prom_cpu_compatible[]
const char prom_cpu_path[]
const char prom_finddev_name[]
const char prom_getprop_name[]
const char prom_map_name[]
int prom_mmu_ihandle_cache
const char prom_mmu_name[]
const char prom_peer_name[]
const char prom_root_compatible[]
phandle prom_root_node

Definition at line 19 of file init.c.

int prom_stdout

Definition at line 21 of file init_64.c.

const char prom_translate_name[]
const char prom_unmap_name[]
char prom_version[]

Definition at line 18 of file init_64.c.