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