Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nvram.c File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/kmsg_dump.h>
#include <linux/ctype.h>
#include <linux/zlib.h>
#include <asm/uaccess.h>
#include <asm/nvram.h>
#include <asm/rtas.h>
#include <asm/prom.h>
#include <asm/machdep.h>

Go to the source code of this file.

Data Structures

struct  err_log_info
 
struct  nvram_os_partition
 

Macros

#define NVRW_CNT   0x20
 
#define NVRAM_RTAS_READ_TIMEOUT   5 /* seconds */
 
#define COMPR_LEVEL   6
 
#define WINDOW_BITS   12
 
#define MEM_LEVEL   4
 

Functions

int nvram_write_os_partition (struct nvram_os_partition *part, char *buff, int length, unsigned int err_type, unsigned int error_log_cnt)
 
int nvram_write_error_log (char *buff, int length, unsigned int err_type, unsigned int error_log_cnt)
 
int nvram_read_error_log (char *buff, int length, unsigned int *err_type, unsigned int *error_log_cnt)
 
int nvram_clear_error_log (void)
 
 machine_arch_initcall (pseries, pseries_nvram_init_log_partitions)
 
int __init pSeries_nvram_init (void)
 

Macro Definition Documentation

#define COMPR_LEVEL   6

Definition at line 112 of file nvram.c.

#define MEM_LEVEL   4

Definition at line 114 of file nvram.c.

#define NVRAM_RTAS_READ_TIMEOUT   5 /* seconds */

Definition at line 78 of file nvram.c.

#define NVRW_CNT   0x20

Definition at line 30 of file nvram.c.

#define WINDOW_BITS   12

Definition at line 113 of file nvram.c.

Function Documentation

machine_arch_initcall ( pseries  ,
pseries_nvram_init_log_partitions   
)
int nvram_clear_error_log ( void  )

Definition at line 323 of file nvram.c.

int nvram_read_error_log ( char buff,
int  length,
unsigned int err_type,
unsigned int error_log_cnt 
)

Definition at line 287 of file nvram.c.

int nvram_write_error_log ( char buff,
int  length,
unsigned int  err_type,
unsigned int  error_log_cnt 
)

Definition at line 273 of file nvram.c.

int nvram_write_os_partition ( struct nvram_os_partition part,
char buff,
int  length,
unsigned int  err_type,
unsigned int  error_log_cnt 
)

Definition at line 238 of file nvram.c.

int __init pSeries_nvram_init ( void  )

Definition at line 474 of file nvram.c.