]>
Commit | Line | Data |
---|---|---|
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 | 14 | struct cmd_tbl; |
49cad547 MD |
15 | struct spi_slave; |
16 | ||
a6f2aafe SG |
17 | /* Set up the jump table for use by the API */ |
18 | void jumptable_init(void); | |
19 | ||
27b207fd WD |
20 | /* These are declarations of exported functions available in C code */ |
21 | unsigned long get_version(void); | |
22 | int getc(void); | |
23 | int tstc(void); | |
24 | void putc(const char); | |
25 | void puts(const char*); | |
d9c27253 | 26 | int printf(const char* fmt, ...); |
49cad547 | 27 | void install_hdlr(int, interrupt_handler_t, void*); |
27b207fd WD |
28 | void free_hdlr(int); |
29 | void *malloc(size_t); | |
1eb0c03c | 30 | #if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE) |
27b207fd | 31 | void free(void*); |
90594919 | 32 | #endif |
3eb90bad | 33 | void __udelay(unsigned long); |
27b207fd | 34 | unsigned long get_timer(unsigned long); |
d9c27253 | 35 | int vprintf(const char *, va_list); |
49cad547 | 36 | unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base); |
a7fd0d9f | 37 | int strict_strtoul(const char *cp, unsigned int base, unsigned long *res); |
00caae6d | 38 | char *env_get(const char *name); |
382bee57 | 39 | int env_set(const char *varname, const char *value); |
49cad547 MD |
40 | long simple_strtol(const char *cp, char **endp, unsigned int base); |
41 | int strcmp(const char *cs, const char *ct); | |
3ec44111 | 42 | unsigned long ustrtoul(const char *cp, char **endp, unsigned int base); |
7df54d31 | 43 | unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base); |
e3114824 | 44 | #if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C) |
4f7cb08e WD |
45 | int i2c_write (uchar, uint, int , uchar* , int); |
46 | int i2c_read (uchar, uint, int , uchar* , int); | |
068b60a0 | 47 | #endif |
95279315 PK |
48 | #ifdef CONFIG_PHY_AQUANTIA |
49 | struct mii_dev *mdio_get_current_dev(void); | |
50 | struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask, | |
51 | phy_interface_t interface); | |
52 | struct phy_device *mdio_phydev_for_ethname(const char *ethname); | |
53 | int miiphy_set_current_dev(const char *devname); | |
54 | #endif | |
27b207fd | 55 | |
54841ab5 | 56 | void app_startup(char * const *); |
27b207fd WD |
57 | |
58 | #endif /* ifndef __ASSEMBLY__ */ | |
59 | ||
49cad547 MD |
60 | struct 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 |
70 | extern gd_t *global_data; |
71 | #endif | |
72 | ||
c83bf6a2 | 73 | #endif /* __EXPORTS_H__ */ |