7 #ifdef CONFIG_PHY_AQUANTIA
9 #include <phy_interface.h>
16 /* Set up the jump table for use by the API */
17 void jumptable_init(void);
19 /* These are declarations of exported functions available in C code */
20 unsigned long get_version(void);
23 void putc(const char);
24 void puts(const char*);
25 int printf(const char* fmt
, ...);
26 void install_hdlr(int, interrupt_handler_t
, void*);
29 #if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
32 void __udelay(unsigned long);
33 unsigned long get_timer(unsigned long);
34 int vprintf(const char *, va_list);
35 unsigned long simple_strtoul(const char *cp
, char **endp
, unsigned int base
);
36 int strict_strtoul(const char *cp
, unsigned int base
, unsigned long *res
);
37 char *env_get(const char *name
);
38 int env_set(const char *varname
, const char *value
);
39 long simple_strtol(const char *cp
, char **endp
, unsigned int base
);
40 int strcmp(const char *cs
, const char *ct
);
41 unsigned long ustrtoul(const char *cp
, char **endp
, unsigned int base
);
42 unsigned long long ustrtoull(const char *cp
, char **endp
, unsigned int base
);
43 #if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C)
44 int i2c_write (uchar
, uint
, int , uchar
* , int);
45 int i2c_read (uchar
, uint
, int , uchar
* , int);
47 #ifdef CONFIG_PHY_AQUANTIA
48 struct mii_dev
*mdio_get_current_dev(void);
49 struct phy_device
*phy_find_by_mask(struct mii_dev
*bus
, unsigned phy_mask
,
50 phy_interface_t interface
);
51 struct phy_device
*mdio_phydev_for_ethname(const char *ethname
);
52 int miiphy_set_current_dev(const char *devname
);
55 void app_startup(char * const *);
57 #endif /* ifndef __ASSEMBLY__ */
60 #define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
68 #if defined(CONFIG_X86)
69 extern gd_t
*global_data
;
72 #endif /* __EXPORTS_H__ */