os/nandboot-R2_0_4/lib/lib.c File Reference

#include <linux/autoconf.h>
#include <linux/types.h>
#include <asm/arch/hwregs/reg_rdwr.h>
#include <asm/arch/hwregs/reg_map.h>
#include <asm/arch/hwregs/ser_defs.h>
#include <asm/arch/hwregs/pinmux_defs.h>
#include "lib.h"

Include dependency graph for lib.c:

Go to the source code of this file.

Functions

void * malloc (unsigned int size)
void free (void *where)
unsigned char readb (const volatile void *addr)
unsigned short readw (const volatile void *addr)
void writeb (unsigned char b, volatile void *addr)
void writew (unsigned short b, volatile void *addr)
static void serout (const char c, reg_scope_instances regi_ser)
void putc (const char c)
void puts (const char *s)
void putnybble (unsigned int n)
void putx (unsigned int x)
void putnl (void)
void * memset (void *s, int c, size_t n)
void * memcpy (void *__dest, __const void *__src, size_t __n)
void error (const char *x)
void error2 (const char *x, int y, const char *z)
static void serial_setup (reg_scope_instances regi_ser)
void serial_init (void)

Variables

int _end
static long free_mem_ptr = (long)&_end


Function Documentation

void error ( const char *  x  ) 

Definition at line 191 of file lib.c.

References puts().

void error2 ( const char *  x,
int  y,
const char *  z 
)

Definition at line 201 of file lib.c.

References putc(), puts(), and putx().

void free ( void *  where  ) 

Definition at line 64 of file lib.c.

void* malloc ( unsigned int  size  ) 

Definition at line 52 of file lib.c.

References free_mem_ptr.

void* memcpy ( void *  __dest,
__const void *  __src,
size_t  __n 
)

Definition at line 180 of file lib.c.

References d, and s.

void* memset ( void *  s,
int  c,
size_t  n 
)

Definition at line 170 of file lib.c.

void putc ( const char  c  ) 

Definition at line 123 of file lib.c.

References serout().

Referenced by bootload(), error2(), error_msg(), error_msg_and_die(), putnybble(), puts(), and simple_printk().

void putnl ( void   ) 

Definition at line 164 of file lib.c.

References puts().

Referenced by bootload(), nand_rw(), nand_scan(), nand_scan_bbt(), read_bbt(), search_bbt(), and search_read_bbts().

void putnybble ( unsigned int  n  ) 

Definition at line 148 of file lib.c.

References putc().

Referenced by putx().

void puts ( const char *  s  ) 

Definition at line 141 of file lib.c.

References putc().

void putx ( unsigned int  x  ) 

Definition at line 154 of file lib.c.

References putnybble(), and puts().

Referenced by bootload(), error2(), nand_rw(), nand_scan(), nand_scan_bbt(), read_bbt(), search_bbt(), and search_read_bbts().

unsigned char readb ( const volatile void *  addr  ) 

Definition at line 70 of file lib.c.

Referenced by nand_read_buf(), nand_read_byte(), nand_verify_buf(), nand_write_byte(), and writeb().

unsigned short readw ( const volatile void *  addr  ) 

Definition at line 75 of file lib.c.

Referenced by nand_read_buf16(), nand_read_byte16(), nand_read_word(), and nand_verify_buf16().

void serial_init ( void   ) 

Definition at line 260 of file lib.c.

References serial_setup().

Referenced by bootload().

static void serial_setup ( reg_scope_instances  regi_ser  )  [inline, static]

Definition at line 215 of file lib.c.

static void serout ( const char  c,
reg_scope_instances  regi_ser 
) [inline, static]

Definition at line 107 of file lib.c.

void writeb ( unsigned char  b,
volatile void *  addr 
)

Definition at line 80 of file lib.c.

References readb(), and void().

Referenced by crisv32_hwcontrol(), nand_write_buf(), and nand_write_byte().

void writew ( unsigned short  b,
volatile void *  addr 
)

Definition at line 98 of file lib.c.

Referenced by nand_write_buf16(), nand_write_byte16(), and nand_write_word().


Variable Documentation

int _end

long free_mem_ptr = (long)&_end [static]

Definition at line 50 of file lib.c.


Generated on Fri Nov 28 00:08:32 2008 for elphel by  doxygen 1.5.1