]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/exports.h
NAND: Fix integer overflow in ONFI detection of chips >= 4GiB
[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
6#include <common.h>
7
8/* These are declarations of exported functions available in C code */
9unsigned long get_version(void);
10int getc(void);
11int tstc(void);
12void putc(const char);
13void puts(const char*);
d9c27253 14int printf(const char* fmt, ...);
27b207fd
WD
15void install_hdlr(int, interrupt_handler_t*, void*);
16void free_hdlr(int);
17void *malloc(size_t);
18void free(void*);
3eb90bad 19void __udelay(unsigned long);
27b207fd 20unsigned long get_timer(unsigned long);
d9c27253 21int vprintf(const char *, va_list);
d7c2a02d
DZ
22unsigned long simple_strtoul(const char *cp,char **endp,unsigned int base);
23char *getenv (char *name);
75678c80 24int setenv (char *varname, char *varvalue);
8092fef4
MK
25long simple_strtol(const char *cp,char **endp,unsigned int base);
26int strcmp(const char * cs,const char * ct);
7e6ee7ad 27int ustrtoul(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
bedd8403 32#include <spi.h>
27b207fd 33
54841ab5 34void app_startup(char * const *);
27b207fd
WD
35
36#endif /* ifndef __ASSEMBLY__ */
37
38enum {
39#define EXPORT_FUNC(x) XF_ ## x ,
40#include <_exports.h>
41#undef EXPORT_FUNC
42
43 XF_MAX
44};
45
3469424c 46#define XF_VERSION 6
27b207fd 47
fea25720 48#if defined(CONFIG_X86)
77846748
WD
49extern gd_t *global_data;
50#endif
51
c83bf6a2 52#endif /* __EXPORTS_H__ */