]> Git Repo - J-u-boot.git/blame - include/exports.h
imx: imx8qm/qxp: Recover SPL data section for partition reboot
[J-u-boot.git] / include / exports.h
CommitLineData
c83bf6a2
WD
1#ifndef __EXPORTS_H__
2#define __EXPORTS_H__
27b207fd 3
c30b7adb
SG
4#include <irq_func.h>
5
27b207fd 6#ifndef __ASSEMBLY__
95279315 7#ifdef CONFIG_PHY_AQUANTIA
9fb625ce 8#include <env.h>
f070b1a2 9#include <phy_interface.h>
95279315 10#endif
27b207fd 11
36bf446b
SG
12#include <irq_func.h>
13
49cad547
MD
14struct spi_slave;
15
a6f2aafe
SG
16/* Set up the jump table for use by the API */
17void jumptable_init(void);
18
27b207fd
WD
19/* These are declarations of exported functions available in C code */
20unsigned long get_version(void);
21int getc(void);
22int tstc(void);
23void putc(const char);
24void puts(const char*);
d9c27253 25int printf(const char* fmt, ...);
49cad547 26void install_hdlr(int, interrupt_handler_t, void*);
27b207fd
WD
27void free_hdlr(int);
28void *malloc(size_t);
1eb0c03c 29#if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
27b207fd 30void free(void*);
90594919 31#endif
3eb90bad 32void __udelay(unsigned long);
27b207fd 33unsigned long get_timer(unsigned long);
d9c27253 34int vprintf(const char *, va_list);
49cad547 35unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base);
a7fd0d9f 36int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
00caae6d 37char *env_get(const char *name);
382bee57 38int env_set(const char *varname, const char *value);
49cad547
MD
39long simple_strtol(const char *cp, char **endp, unsigned int base);
40int strcmp(const char *cs, const char *ct);
3ec44111 41unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
7df54d31 42unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
e3114824 43#if defined(CONFIG_CMD_I2C) && !defined(CONFIG_DM_I2C)
4f7cb08e
WD
44int i2c_write (uchar, uint, int , uchar* , int);
45int i2c_read (uchar, uint, int , uchar* , int);
068b60a0 46#endif
95279315
PK
47#ifdef CONFIG_PHY_AQUANTIA
48struct mii_dev *mdio_get_current_dev(void);
49struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
50 phy_interface_t interface);
51struct phy_device *mdio_phydev_for_ethname(const char *ethname);
52int miiphy_set_current_dev(const char *devname);
53#endif
27b207fd 54
54841ab5 55void app_startup(char * const *);
27b207fd
WD
56
57#endif /* ifndef __ASSEMBLY__ */
58
49cad547
MD
59struct jt_funcs {
60#define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
27b207fd
WD
61#include <_exports.h>
62#undef EXPORT_FUNC
27b207fd
WD
63};
64
49cad547 65
9578c427 66#define XF_VERSION 9
27b207fd 67
fea25720 68#if defined(CONFIG_X86)
77846748
WD
69extern gd_t *global_data;
70#endif
71
c83bf6a2 72#endif /* __EXPORTS_H__ */
This page took 0.689236 seconds and 4 git commands to generate.