Blame view
common/exports.c
562 Bytes
27b207fd0
|
1 2 |
#include <common.h> #include <exports.h> |
1f6510c4c
|
3 |
#include <malloc.h> |
80729a549
|
4 |
#include <spi.h> |
49cad5478
|
5 |
#include <i2c.h> |
27b207fd0
|
6 |
|
d87080b72
|
7 |
DECLARE_GLOBAL_DATA_PTR; |
c0c15379e
|
8 |
__attribute__((unused)) static void dummy(void) |
27b207fd0
|
9 10 11 12 13 14 15 |
{ } unsigned long get_version(void) { return XF_VERSION; } |
49cad5478
|
16 |
#define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f; |
bf44f3f32
|
17 |
|
952793150
|
18 19 20 21 22 23 |
#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 |
bf44f3f32
|
24 25 |
void jumptable_init(void) { |
49cad5478
|
26 |
gd->jt = malloc(sizeof(struct jt_funcs)); |
bf44f3f32
|
27 |
#include <_exports.h> |
27b207fd0
|
28 |
} |