xref: /openbmc/u-boot/include/exports.h (revision d6208a3c)
1 #ifndef __EXPORTS_H__
2 #define __EXPORTS_H__
3 
4 #ifndef __ASSEMBLY__
5 
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*);
12 int printf(const char* fmt, ...);
13 void install_hdlr(int, void (*interrupt_handler_t)(void *), void*);
14 void free_hdlr(int);
15 void *malloc(size_t);
16 void free(void*);
17 void __udelay(unsigned long);
18 unsigned long get_timer(unsigned long);
19 int vprintf(const char *, va_list);
20 unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
21 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
22 char *getenv (const char *name);
23 int setenv (const char *varname, const char *varvalue);
24 long simple_strtol(const char *cp,char **endp,unsigned int base);
25 int strcmp(const char * cs,const char * ct);
26 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
27 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
28 #if defined(CONFIG_CMD_I2C)
29 int i2c_write (uchar, uint, int , uchar* , int);
30 int i2c_read (uchar, uint, int , uchar* , int);
31 #endif
32 
33 void app_startup(char * const *);
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 
45 #define XF_VERSION	6
46 
47 #if defined(CONFIG_X86)
48 extern gd_t *global_data;
49 #endif
50 
51 #endif	/* __EXPORTS_H__ */
52