]> git.ipfire.org Git - people/ms/u-boot.git/blame_incremental - common/exports.c
net: sh_eth: Zap port variable
[people/ms/u-boot.git] / common / exports.c
... / ...
CommitLineData
1#include <common.h>
2#include <exports.h>
3#include <spi.h>
4#include <i2c.h>
5
6DECLARE_GLOBAL_DATA_PTR;
7
8__attribute__((unused)) static void dummy(void)
9{
10}
11
12unsigned 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
26void jumptable_init(void)
27{
28 gd->jt = malloc(sizeof(struct jt_funcs));
29#include <_exports.h>
30}