#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 |
| void error2 | ( | const char * | x, | |
| int | y, | |||
| const char * | z | |||
| ) |
| void* malloc | ( | unsigned int | size | ) |
| void* memcpy | ( | void * | __dest, | |
| __const void * | __src, | |||
| size_t | __n | |||
| ) |
| 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 | ) |
| 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 | ) |
| static void serial_setup | ( | reg_scope_instances | regi_ser | ) | [inline, static] |
| static void serout | ( | const char | c, | |
| reg_scope_instances | regi_ser | |||
| ) | [inline, static] |
| 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().
| int _end |
long free_mem_ptr = (long)&_end [static] |
1.5.1