Add more stock U-Boot images
[oweals/u-boot_mod.git] / u-boot / include / exports.h
1 #ifndef __EXPORTS_H__
2 #define __EXPORTS_H__
3
4 #ifndef __ASSEMBLY__
5 #include <common.h>
6
7 /*
8  * These are declarations of exported
9  * functions available in C code
10  */
11 unsigned long get_timer(unsigned long);
12 unsigned long get_version(void);
13
14 void app_startup(char **);
15 void do_reset(void);
16 void free(void*);
17 void free_hdlr(int);
18 void install_hdlr(int, interrupt_handler_t*, void*);
19 void printf(const char* fmt, ...);
20 void putc(const char);
21 void puts(const char*);
22 void udelay(unsigned long);
23 void *malloc(size_t);
24
25 int getc(void);
26 int tstc(void);
27 #endif /* ifndef __ASSEMBLY__ */
28
29 enum {
30         #define EXPORT_FUNC(x) XF_ ## x ,
31         EXPORT_FUNC(get_version)
32         EXPORT_FUNC(getc)
33         EXPORT_FUNC(tstc)
34         EXPORT_FUNC(putc)
35         EXPORT_FUNC(puts)
36         EXPORT_FUNC(printf)
37         EXPORT_FUNC(install_hdlr)
38         EXPORT_FUNC(free_hdlr)
39         EXPORT_FUNC(malloc)
40         EXPORT_FUNC(free)
41         EXPORT_FUNC(udelay)
42         EXPORT_FUNC(get_timer)
43         EXPORT_FUNC(do_reset)
44         #undef EXPORT_FUNC
45         XF_MAX
46 };
47
48 #define XF_VERSION      2
49
50 #if defined(CONFIG_I386)
51 extern gd_t *global_data;
52 #endif
53
54 #endif /* __EXPORTS_H__ */