xref: /openbmc/u-boot/include/exports.h (revision ae03661f)
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 int ustrtoul(const char *cp, char **endp, unsigned int base);
27 #if defined(CONFIG_CMD_I2C)
28 int i2c_write (uchar, uint, int , uchar* , int);
29 int i2c_read (uchar, uint, int , uchar* , int);
30 #endif
31 
32 void app_startup(char * const *);
33 
34 #endif    /* ifndef __ASSEMBLY__ */
35 
36 enum {
37 #define EXPORT_FUNC(x) XF_ ## x ,
38 #include <_exports.h>
39 #undef EXPORT_FUNC
40 
41 	XF_MAX
42 };
43 
44 #define XF_VERSION	6
45 
46 #if defined(CONFIG_X86)
47 extern gd_t *global_data;
48 #endif
49 
50 #endif	/* __EXPORTS_H__ */
51