colibri_imx6: fix video stdout in default environment
[oweals/u-boot.git] / include / exports.h
1 #ifndef __EXPORTS_H__
2 #define __EXPORTS_H__
3
4 #include <irq_func.h>
5 #include <linux/delay.h>
6
7 #ifndef __ASSEMBLY__
8 #ifdef CONFIG_PHY_AQUANTIA
9 #include <env.h>
10 #include <phy_interface.h>
11 #endif
12
13 #include <irq_func.h>
14
15 struct cmd_tbl;
16 struct spi_slave;
17
18 /* Set up the jump table for use by the API */
19 void jumptable_init(void);
20
21 /* These are declarations of exported functions available in C code */
22 unsigned long get_version(void);
23 int  getc(void);
24 int  tstc(void);
25 void putc(const char);
26 void puts(const char*);
27 int printf(const char* fmt, ...);
28 void install_hdlr(int, interrupt_handler_t, void*);
29 void free_hdlr(int);
30 void *malloc(size_t);
31 #if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
32 void free(void*);
33 #endif
34 void __udelay(unsigned long);
35 unsigned long get_timer(unsigned long);
36 int vprintf(const char *, va_list);
37 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base);
38 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
39 char *env_get(const char *name);
40 int env_set(const char *varname, const char *value);
41 long simple_strtol(const char *cp, char **endp, unsigned int base);
42 int strcmp(const char *cs, const char *ct);
43 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
44 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
45 #if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C)
46 int i2c_write (uchar, uint, int , uchar* , int);
47 int i2c_read (uchar, uint, int , uchar* , int);
48 #endif
49 #ifdef CONFIG_PHY_AQUANTIA
50 struct mii_dev *mdio_get_current_dev(void);
51 struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
52                 phy_interface_t interface);
53 struct phy_device *mdio_phydev_for_ethname(const char *ethname);
54 int miiphy_set_current_dev(const char *devname);
55 #endif
56
57 void app_startup(char * const *);
58
59 #endif    /* ifndef __ASSEMBLY__ */
60
61 struct jt_funcs {
62 #define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
63 #include <_exports.h>
64 #undef EXPORT_FUNC
65 };
66
67
68 #define XF_VERSION      9
69
70 #if defined(CONFIG_X86)
71 extern gd_t *global_data;
72 #endif
73
74 #endif  /* __EXPORTS_H__ */