]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/exports.h
mmc: remove the unnecessary define and fix the wrong bit control
[people/ms/u-boot.git] / include / exports.h
CommitLineData
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 */
7unsigned long get_version(void);
8int getc(void);
9int tstc(void);
10void putc(const char);
11void puts(const char*);
d9c27253 12int printf(const char* fmt, ...);
0910d0bc 13void install_hdlr(int, void (*interrupt_handler_t)(void *), void*);
27b207fd
WD
14void free_hdlr(int);
15void *malloc(size_t);
16void free(void*);
3eb90bad 17void __udelay(unsigned long);
27b207fd 18unsigned long get_timer(unsigned long);
d9c27253 19int vprintf(const char *, va_list);
d7c2a02d 20unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
a7fd0d9f 21int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
84b5e802
WD
22char *getenv (const char *name);
23int setenv (const char *varname, const char *varvalue);
8092fef4
MK
24long simple_strtol(const char *cp,char **endp,unsigned int base);
25int strcmp(const char * cs,const char * ct);
3ec44111 26unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
7df54d31 27unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
639221c7 28#if defined(CONFIG_CMD_I2C)
4f7cb08e
WD
29int i2c_write (uchar, uint, int , uchar* , int);
30int i2c_read (uchar, uint, int , uchar* , int);
068b60a0 31#endif
27b207fd 32
54841ab5 33void app_startup(char * const *);
27b207fd
WD
34
35#endif /* ifndef __ASSEMBLY__ */
36
37enum {
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
48extern gd_t *global_data;
49#endif
50
c83bf6a2 51#endif /* __EXPORTS_H__ */