#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) |
void error2 | ( | const char * | m, | |
int | l, | |||
const char * | f | |||
) |
void* malloc | ( | unsigned int | size | ) |
void* memcpy | ( | void * | __dest, | |
__const void * | __src, | |||
size_t | __n | |||
) |
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 | ) |
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 | ) |
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().