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