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