Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
rtas.c File Reference
#include <stdarg.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/spinlock.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/capability.h>
#include <linux/delay.h>
#include <linux/smp.h>
#include <linux/completion.h>
#include <linux/cpumask.h>
#include <linux/memblock.h>
#include <linux/slab.h>
#include <linux/reboot.h>
#include <asm/prom.h>
#include <asm/rtas.h>
#include <asm/hvcall.h>
#include <asm/machdep.h>
#include <asm/firmware.h>
#include <asm/page.h>
#include <asm/param.h>
#include <asm/delay.h>
#include <asm/uaccess.h>
#include <asm/udbg.h>
#include <asm/syscalls.h>
#include <asm/smp.h>
#include <linux/atomic.h>
#include <asm/time.h>
#include <asm/mmu.h>
#include <asm/topology.h>
#include <asm/pSeries_reconfig.h>

Go to the source code of this file.

Macros

#define __fetch_rtas_last_error(x)   NULL
 
#define get_errorlog_buffer()   NULL
 

Functions

 EXPORT_SYMBOL (rtas)
 
 DEFINE_SPINLOCK (rtas_data_buf_lock)
 
 EXPORT_SYMBOL (rtas_data_buf_lock)
 
 EXPORT_SYMBOL (rtas_data_buf)
 
 EXPORT_SYMBOL (rtas_flash_term_hook)
 
void __init udbg_init_rtas_panel (void)
 
void rtas_progress (char *s, unsigned short hex)
 
 EXPORT_SYMBOL (rtas_progress)
 
int rtas_token (const char *service)
 
 EXPORT_SYMBOL (rtas_token)
 
int rtas_service_present (const char *service)
 
 EXPORT_SYMBOL (rtas_service_present)
 
int rtas_call (int token, int nargs, int nret, int *outputs,...)
 
 EXPORT_SYMBOL (rtas_call)
 
unsigned int rtas_busy_delay_time (int status)
 
 EXPORT_SYMBOL (rtas_busy_delay_time)
 
unsigned int rtas_busy_delay (int status)
 
 EXPORT_SYMBOL (rtas_busy_delay)
 
int rtas_get_power_level (int powerdomain, int *level)
 
 EXPORT_SYMBOL (rtas_get_power_level)
 
int rtas_set_power_level (int powerdomain, int level, int *setlevel)
 
 EXPORT_SYMBOL (rtas_set_power_level)
 
int rtas_get_sensor (int sensor, int index, int *state)
 
 EXPORT_SYMBOL (rtas_get_sensor)
 
bool rtas_indicator_present (int token, int *maxindex)
 
 EXPORT_SYMBOL (rtas_indicator_present)
 
int rtas_set_indicator (int indicator, int index, int new_value)
 
 EXPORT_SYMBOL (rtas_set_indicator)
 
int rtas_set_indicator_fast (int indicator, int index, int new_value)
 
void rtas_restart (char *cmd)
 
void rtas_power_off (void)
 
void rtas_halt (void)
 
void rtas_os_term (char *str)
 
int rtas_ibm_suspend_me (struct rtas_args *args)
 
struct pseries_errorlog * get_pseries_errorlog (struct rtas_error_log *log, uint16_t section_id)
 
asmlinkage int ppc_rtas (struct rtas_args __user *uargs)
 
void __init rtas_initialize (void)
 
int __init early_init_dt_scan_rtas (unsigned long node, const char *uname, int depth, void *data)
 
void __cpuinit rtas_give_timebase (void)
 
void __cpuinit rtas_take_timebase (void)
 

Variables

struct rtas_t rtas
 
char rtas_data_buf[RTAS_DATA_BUF_SIZE] __cacheline_aligned
 
unsigned long rtas_rmo_buf
 
void(* rtas_flash_term_hook )(int)
 

Macro Definition Documentation

#define __fetch_rtas_last_error (   x)    NULL

Definition at line 417 of file rtas.c.

#define get_errorlog_buffer ( )    NULL

Definition at line 418 of file rtas.c.

Function Documentation

DEFINE_SPINLOCK ( rtas_data_buf_lock  )
int __init early_init_dt_scan_rtas ( unsigned long  node,
const char uname,
int  depth,
void data 
)

Definition at line 1023 of file rtas.c.

EXPORT_SYMBOL ( rtas  )
EXPORT_SYMBOL ( rtas_data_buf_lock  )
EXPORT_SYMBOL ( rtas_data_buf  )
EXPORT_SYMBOL ( rtas_flash_term_hook  )
EXPORT_SYMBOL ( rtas_progress  )
EXPORT_SYMBOL ( rtas_token  )
EXPORT_SYMBOL ( rtas_service_present  )
EXPORT_SYMBOL ( rtas_call  )
EXPORT_SYMBOL ( rtas_busy_delay_time  )
EXPORT_SYMBOL ( rtas_busy_delay  )
EXPORT_SYMBOL ( rtas_get_power_level  )
EXPORT_SYMBOL ( rtas_set_power_level  )
EXPORT_SYMBOL ( rtas_get_sensor  )
EXPORT_SYMBOL ( rtas_indicator_present  )
EXPORT_SYMBOL ( rtas_set_indicator  )
struct pseries_errorlog* get_pseries_errorlog ( struct rtas_error_log *  log,
uint16_t  section_id 
)
read

Find a specific pseries error log in an RTAS extended event log. : RTAS error/event log : two character section identifier

Returns a pointer to the specified errorlog or NULL if not found.

Definition at line 877 of file rtas.c.

asmlinkage int ppc_rtas ( struct rtas_args __user uargs)

Definition at line 904 of file rtas.c.

unsigned int rtas_busy_delay ( int  status)

Definition at line 492 of file rtas.c.

unsigned int rtas_busy_delay_time ( int  status)

Definition at line 474 of file rtas.c.

int rtas_call ( int  token,
int  nargs,
int  nret,
int outputs,
  ... 
)

Definition at line 421 of file rtas.c.

int rtas_get_power_level ( int  powerdomain,
int level 
)

Definition at line 534 of file rtas.c.

int rtas_get_sensor ( int  sensor,
int  index,
int state 
)

Definition at line 569 of file rtas.c.

void __cpuinit rtas_give_timebase ( void  )

Definition at line 1063 of file rtas.c.

void rtas_halt ( void  )

Definition at line 671 of file rtas.c.

int rtas_ibm_suspend_me ( struct rtas_args *  args)

Definition at line 864 of file rtas.c.

bool rtas_indicator_present ( int  token,
int maxindex 
)

Definition at line 587 of file rtas.c.

void __init rtas_initialize ( void  )

Definition at line 979 of file rtas.c.

void rtas_os_term ( char str)

Definition at line 684 of file rtas.c.

void rtas_power_off ( void  )

Definition at line 661 of file rtas.c.

void rtas_progress ( char s,
unsigned short  hex 
)

Definition at line 203 of file rtas.c.

void rtas_restart ( char cmd)

Definition at line 652 of file rtas.c.

int rtas_service_present ( const char service)

Definition at line 333 of file rtas.c.

int rtas_set_indicator ( int  indicator,
int  index,
int  new_value 
)

Definition at line 613 of file rtas.c.

int rtas_set_indicator_fast ( int  indicator,
int  index,
int  new_value 
)

Definition at line 634 of file rtas.c.

int rtas_set_power_level ( int  powerdomain,
int  level,
int setlevel 
)

Definition at line 551 of file rtas.c.

void __cpuinit rtas_take_timebase ( void  )

Definition at line 1080 of file rtas.c.

int rtas_token ( const char service)

Definition at line 323 of file rtas.c.

void __init udbg_init_rtas_panel ( void  )

Definition at line 138 of file rtas.c.

Variable Documentation

char rtas_data_buf [RTAS_DATA_BUF_SIZE] __cacheline_aligned

Definition at line 55 of file rtas.c.

struct rtas_t rtas
Initial value:

Definition at line 47 of file rtas.c.

void(* rtas_flash_term_hook)(int)

Definition at line 64 of file rtas.c.

unsigned long rtas_rmo_buf

Definition at line 58 of file rtas.c.