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