2003-07-24 23:38:38 +00:00
|
|
|
#include <common.h>
|
2020-05-10 17:40:03 +00:00
|
|
|
#include <command.h>
|
2003-07-24 23:38:38 +00:00
|
|
|
#include <exports.h>
|
2020-02-03 14:35:59 +00:00
|
|
|
#include <malloc.h>
|
2011-12-06 19:31:32 +00:00
|
|
|
#include <spi.h>
|
2015-01-26 22:22:54 +00:00
|
|
|
#include <i2c.h>
|
2003-07-24 23:38:38 +00:00
|
|
|
|
2006-03-31 16:32:53 +00:00
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
2010-06-20 21:33:02 +00:00
|
|
|
__attribute__((unused)) static void dummy(void)
|
2003-07-24 23:38:38 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned long get_version(void)
|
|
|
|
{
|
|
|
|
return XF_VERSION;
|
|
|
|
}
|
|
|
|
|
2015-01-26 22:22:54 +00:00
|
|
|
#define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f;
|
2009-11-04 21:34:42 +00:00
|
|
|
|
2015-06-28 05:33:59 +00:00
|
|
|
#ifndef CONFIG_PHY_AQUANTIA
|
|
|
|
# define mdio_get_current_dev dummy
|
|
|
|
# define phy_find_by_mask dummy
|
|
|
|
# define mdio_phydev_for_ethname dummy
|
|
|
|
# define miiphy_set_current_dev dummy
|
|
|
|
#endif
|
|
|
|
|
2020-11-28 08:43:15 +00:00
|
|
|
int jumptable_init(void)
|
2009-11-04 21:34:42 +00:00
|
|
|
{
|
2015-01-26 22:22:54 +00:00
|
|
|
gd->jt = malloc(sizeof(struct jt_funcs));
|
2009-11-04 21:34:42 +00:00
|
|
|
#include <_exports.h>
|
2020-11-28 08:43:15 +00:00
|
|
|
|
|
|
|
return 0;
|
2003-07-24 23:38:38 +00:00
|
|
|
}
|