]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/exports.h
colibri_imx6: switch to zimage
[thirdparty/u-boot.git] / include / exports.h
CommitLineData
c83bf6a2
WD
1#ifndef __EXPORTS_H__
2#define __EXPORTS_H__
27b207fd
WD
3
4#ifndef __ASSEMBLY__
95279315 5#ifdef CONFIG_PHY_AQUANTIA
f070b1a2 6#include <phy_interface.h>
95279315 7#endif
27b207fd 8
49cad547
MD
9struct spi_slave;
10
27b207fd
WD
11/* These are declarations of exported functions available in C code */
12unsigned long get_version(void);
13int getc(void);
14int tstc(void);
15void putc(const char);
16void puts(const char*);
d9c27253 17int printf(const char* fmt, ...);
49cad547 18void install_hdlr(int, interrupt_handler_t, void*);
27b207fd
WD
19void free_hdlr(int);
20void *malloc(size_t);
1eb0c03c 21#if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
27b207fd 22void free(void*);
90594919 23#endif
3eb90bad 24void __udelay(unsigned long);
27b207fd 25unsigned long get_timer(unsigned long);
d9c27253 26int vprintf(const char *, va_list);
49cad547 27unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base);
a7fd0d9f 28int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
00caae6d 29char *env_get(const char *name);
382bee57 30int env_set(const char *varname, const char *value);
49cad547
MD
31long simple_strtol(const char *cp, char **endp, unsigned int base);
32int strcmp(const char *cs, const char *ct);
3ec44111 33unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
7df54d31 34unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
49cad547
MD
35#if defined(CONFIG_CMD_I2C) && \
36 (!defined(CONFIG_DM_I2C) || defined(CONFIG_DM_I2C_COMPAT))
4f7cb08e
WD
37int i2c_write (uchar, uint, int , uchar* , int);
38int i2c_read (uchar, uint, int , uchar* , int);
068b60a0 39#endif
95279315
PK
40#ifdef CONFIG_PHY_AQUANTIA
41struct mii_dev *mdio_get_current_dev(void);
42struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
43 phy_interface_t interface);
44struct phy_device *mdio_phydev_for_ethname(const char *ethname);
45int miiphy_set_current_dev(const char *devname);
46#endif
27b207fd 47
54841ab5 48void app_startup(char * const *);
27b207fd
WD
49
50#endif /* ifndef __ASSEMBLY__ */
51
49cad547
MD
52struct jt_funcs {
53#define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
27b207fd
WD
54#include <_exports.h>
55#undef EXPORT_FUNC
27b207fd
WD
56};
57
49cad547 58
9578c427 59#define XF_VERSION 9
27b207fd 60
fea25720 61#if defined(CONFIG_X86)
77846748
WD
62extern gd_t *global_data;
63#endif
64
c83bf6a2 65#endif /* __EXPORTS_H__ */