xref: /openbmc/u-boot/common/exports.c (revision 699c4e59)
1 #include <common.h>
2 #include <exports.h>
3 #include <spi.h>
4 #include <i2c.h>
5 
6 DECLARE_GLOBAL_DATA_PTR;
7 
8 __attribute__((unused)) static void dummy(void)
9 {
10 }
11 
12 unsigned long get_version(void)
13 {
14 	return XF_VERSION;
15 }
16 
17 #define EXPORT_FUNC(f, a, x, ...)  gd->jt->x = f;
18 
19 #ifndef CONFIG_PHY_AQUANTIA
20 # define mdio_get_current_dev		dummy
21 # define phy_find_by_mask		dummy
22 # define mdio_phydev_for_ethname	dummy
23 # define miiphy_set_current_dev		dummy
24 #endif
25 
26 void jumptable_init(void)
27 {
28 	gd->jt = malloc(sizeof(struct jt_funcs));
29 #include <_exports.h>
30 }
31