7 #ifdef CONFIG_PHY_AQUANTIA
9 #include <phy_interface.h>
17 /* Set up the jump table for use by the API */
18 void jumptable_init(void);
20 /* These are declarations of exported functions available in C code */
21 unsigned long get_version(void);
24 void putc(const char);
25 void puts(const char*);
26 int printf(const char* fmt, ...);
27 void install_hdlr(int, interrupt_handler_t, void*);
30 #if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
33 void __udelay(unsigned long);
34 unsigned long get_timer(unsigned long);
35 int vprintf(const char *, va_list);
36 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base);
37 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
38 char *env_get(const char *name);
39 int env_set(const char *varname, const char *value);
40 long simple_strtol(const char *cp, char **endp, unsigned int base);
41 int strcmp(const char *cs, const char *ct);
42 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
43 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
44 #if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C)
45 int i2c_write (uchar, uint, int , uchar* , int);
46 int i2c_read (uchar, uint, int , uchar* , int);
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);
56 void app_startup(char * const *);
58 #endif /* ifndef __ASSEMBLY__ */
61 #define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
69 #if defined(CONFIG_X86)
70 extern gd_t *global_data;
73 #endif /* __EXPORTS_H__ */