]>
Commit | Line | Data |
---|---|---|
c83bf6a2 WD |
1 | #ifndef __EXPORTS_H__ |
2 | #define __EXPORTS_H__ | |
27b207fd WD |
3 | |
4 | #ifndef __ASSEMBLY__ | |
5 | ||
27b207fd WD |
6 | /* These are declarations of exported functions available in C code */ |
7 | unsigned long get_version(void); | |
8 | int getc(void); | |
9 | int tstc(void); | |
10 | void putc(const char); | |
11 | void puts(const char*); | |
d9c27253 | 12 | int printf(const char* fmt, ...); |
0910d0bc | 13 | void install_hdlr(int, void (*interrupt_handler_t)(void *), void*); |
27b207fd WD |
14 | void free_hdlr(int); |
15 | void *malloc(size_t); | |
16 | void free(void*); | |
3eb90bad | 17 | void __udelay(unsigned long); |
27b207fd | 18 | unsigned long get_timer(unsigned long); |
d9c27253 | 19 | int vprintf(const char *, va_list); |
d7c2a02d | 20 | unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base); |
a7fd0d9f | 21 | int strict_strtoul(const char *cp, unsigned int base, unsigned long *res); |
84b5e802 WD |
22 | char *getenv (const char *name); |
23 | int setenv (const char *varname, const char *varvalue); | |
8092fef4 MK |
24 | long simple_strtol(const char *cp,char **endp,unsigned int base); |
25 | int strcmp(const char * cs,const char * ct); | |
3ec44111 | 26 | unsigned long ustrtoul(const char *cp, char **endp, unsigned int base); |
7df54d31 | 27 | unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base); |
639221c7 | 28 | #if defined(CONFIG_CMD_I2C) |
4f7cb08e WD |
29 | int i2c_write (uchar, uint, int , uchar* , int); |
30 | int i2c_read (uchar, uint, int , uchar* , int); | |
068b60a0 | 31 | #endif |
27b207fd | 32 | |
54841ab5 | 33 | void app_startup(char * const *); |
27b207fd WD |
34 | |
35 | #endif /* ifndef __ASSEMBLY__ */ | |
36 | ||
37 | enum { | |
38 | #define EXPORT_FUNC(x) XF_ ## x , | |
39 | #include <_exports.h> | |
40 | #undef EXPORT_FUNC | |
41 | ||
42 | XF_MAX | |
43 | }; | |
44 | ||
3469424c | 45 | #define XF_VERSION 6 |
27b207fd | 46 | |
fea25720 | 47 | #if defined(CONFIG_X86) |
77846748 WD |
48 | extern gd_t *global_data; |
49 | #endif | |
50 | ||
c83bf6a2 | 51 | #endif /* __EXPORTS_H__ */ |