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

#include <linux/types.h>

Include dependency graph for lib.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define memzero(s, n)   memset((s), 0, (n))
#define GPIO_SYNC   0

Functions

void * memset (void *s, int c, size_t n)
void * memcpy (void *__dest, __const void *__src, size_t __n)
void * malloc (unsigned int size)
void free (void *where)
void error (const char *m) __attribute__((noreturn))
void error2 (const char *m, int l, const char *f) __attribute__((noreturn))
void serial_init (void)
void putc (const char)
void puts (const char *)
void putnybble (unsigned int n)
void putx (unsigned int x)
void putnl ()
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)


Define Documentation

#define GPIO_SYNC   0

Definition at line 61 of file lib.h.

#define memzero ( s,
n   )     memset((s), 0, (n))

Definition at line 47 of file lib.h.


Function Documentation

void error ( const char *  m  ) 

Definition at line 191 of file lib.c.

References puts().

void error2 ( const char *  m,
int  l,
const char *  f 
)

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  ) 

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 (  ) 

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 *   ) 

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().

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().


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