imx8mm: clock: fix fracpll decode issue
[oweals/u-boot.git] / include / exports.h
1 #ifndef __EXPORTS_H__
2 #define __EXPORTS_H__
3
4 #include <irq_func.h>
5
6 #ifndef __ASSEMBLY__
7 #ifdef CONFIG_PHY_AQUANTIA
8 #include <env.h>
9 #include <phy_interface.h>
10 #endif
11
12 #include <irq_func.h>
13
14 struct spi_slave;
15
16 /* Set up the jump table for use by the API */
17 void jumptable_init(void);
18
19 /* These are declarations of exported functions available in C code */
20 unsigned long get_version(void);
21 int  getc(void);
22 int  tstc(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*);
27 void free_hdlr(int);
28 void *malloc(size_t);
29 #if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
30 void free(void*);
31 #endif
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);
46 #endif
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);
53 #endif
54
55 void app_startup(char * const *);
56
57 #endif    /* ifndef __ASSEMBLY__ */
58
59 struct jt_funcs {
60 #define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
61 #include <_exports.h>
62 #undef EXPORT_FUNC
63 };
64
65
66 #define XF_VERSION      9
67
68 #if defined(CONFIG_X86)
69 extern gd_t *global_data;
70 #endif
71
72 #endif  /* __EXPORTS_H__ */