Blame view
include/exports.h
1.4 KB
c83bf6a2d
|
1 2 |
#ifndef __EXPORTS_H__ #define __EXPORTS_H__ |
27b207fd0
|
3 4 |
#ifndef __ASSEMBLY__ |
27b207fd0
|
5 6 7 8 9 10 |
/* These are declarations of exported functions available in C code */ unsigned long get_version(void); int getc(void); int tstc(void); void putc(const char); void puts(const char*); |
d9c27253c
|
11 |
int printf(const char* fmt, ...); |
0910d0bcb
|
12 |
void install_hdlr(int, void (*interrupt_handler_t)(void *), void*); |
27b207fd0
|
13 14 15 |
void free_hdlr(int); void *malloc(size_t); void free(void*); |
3eb90bad6
|
16 |
void __udelay(unsigned long); |
27b207fd0
|
17 |
unsigned long get_timer(unsigned long); |
d9c27253c
|
18 |
int vprintf(const char *, va_list); |
d7c2a02de
|
19 |
unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base); |
a7fd0d9ff
|
20 |
int strict_strtoul(const char *cp, unsigned int base, unsigned long *res); |
84b5e8022
|
21 22 |
char *getenv (const char *name); int setenv (const char *varname, const char *varvalue); |
8092fef4c
|
23 24 |
long simple_strtol(const char *cp,char **endp,unsigned int base); int strcmp(const char * cs,const char * ct); |
3ec44111a
|
25 |
unsigned long ustrtoul(const char *cp, char **endp, unsigned int base); |
7df54d316
|
26 |
unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base); |
639221c76
|
27 |
#if defined(CONFIG_CMD_I2C) |
4f7cb08ee
|
28 29 |
int i2c_write (uchar, uint, int , uchar* , int); int i2c_read (uchar, uint, int , uchar* , int); |
068b60a0e
|
30 |
#endif |
27b207fd0
|
31 |
|
54841ab50
|
32 |
void app_startup(char * const *); |
27b207fd0
|
33 34 35 36 37 38 39 40 41 42 |
#endif /* ifndef __ASSEMBLY__ */ enum { #define EXPORT_FUNC(x) XF_ ## x , #include <_exports.h> #undef EXPORT_FUNC XF_MAX }; |
3469424cb
|
43 |
#define XF_VERSION 6 |
27b207fd0
|
44 |
|
fea257200
|
45 |
#if defined(CONFIG_X86) |
778467485
|
46 47 |
extern gd_t *global_data; #endif |
c83bf6a2d
|
48 |
#endif /* __EXPORTS_H__ */ |