Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
nvram.h File Reference
#include <linux/errno.h>
#include <linux/list.h>
#include <uapi/asm/nvram.h>

Go to the source code of this file.

Functions

int __init nvram_scan_partitions (void)
 
loff_t nvram_create_partition (const char *name, int sig, int req_size, int min_size)
 
int nvram_remove_partition (const char *name, int sig, const char *exceptions[])
 
int nvram_get_partition_size (loff_t data_index)
 
loff_t nvram_find_partition (const char *name, int sig, int *out_size)
 
int pmac_get_partition (int partition)
 
u8 pmac_xpram_read (int xpaddr)
 
void pmac_xpram_write (int xpaddr, u8 data)
 
void nvram_sync (void)
 
ssize_t nvram_get_size (void)
 
unsigned char nvram_read_byte (int i)
 
void nvram_write_byte (unsigned char c, int i)
 

Function Documentation

loff_t nvram_create_partition ( const char name,
int  sig,
int  req_size,
int  min_size 
)

Definition at line 329 of file nvram_64.c.

loff_t nvram_find_partition ( const char name,
int  sig,
int out_size 
)

Definition at line 451 of file nvram_64.c.

int nvram_get_partition_size ( loff_t  data_index)

nvram_get_partition_size - Get the data size of an nvram partition : This is the offset of the start of the data of the partition. The same value that is returned by nvram_create_partition().

Definition at line 433 of file nvram_64.c.

ssize_t nvram_get_size ( void  )
unsigned char nvram_read_byte ( int  i)

Definition at line 147 of file nvram.c.

int nvram_remove_partition ( const char name,
int  sig,
const char exceptions[] 
)

Definition at line 271 of file nvram_64.c.

int __init nvram_scan_partitions ( void  )

Definition at line 467 of file nvram_64.c.

void nvram_sync ( void  )
void nvram_write_byte ( unsigned char  c,
int  i 
)

Definition at line 166 of file nvram.c.

int pmac_get_partition ( int  partition)

Definition at line 625 of file nvram.c.

u8 pmac_xpram_read ( int  xpaddr)

Definition at line 630 of file nvram.c.

void pmac_xpram_write ( int  xpaddr,
u8  data 
)

Definition at line 640 of file nvram.c.