wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 1 | #include <common.h> |
2 | #include <exports.h> | ||||
Simon Glass | 0bc1724 | 2011-12-06 19:31:32 +0000 | [diff] [blame] | 3 | #include <spi.h> |
Martin Dorwig | cb2c286 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 4 | #include <i2c.h> |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 5 | |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 6 | DECLARE_GLOBAL_DATA_PTR; |
7 | |||||
Wolfgang Denk | b569361 | 2010-06-20 23:33:02 +0200 | [diff] [blame] | 8 | __attribute__((unused)) static void dummy(void) |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 9 | { |
10 | } | ||||
11 | |||||
12 | unsigned long get_version(void) | ||||
13 | { | ||||
14 | return XF_VERSION; | ||||
15 | } | ||||
16 | |||||
Martin Dorwig | cb2c286 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 17 | #define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f; |
Mike Frysinger | 9a14a5a | 2009-11-04 16:34:42 -0500 | [diff] [blame] | 18 | |
19 | void jumptable_init(void) | ||||
20 | { | ||||
Martin Dorwig | cb2c286 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 21 | gd->jt = malloc(sizeof(struct jt_funcs)); |
Mike Frysinger | 9a14a5a | 2009-11-04 16:34:42 -0500 | [diff] [blame] | 22 | #include <_exports.h> |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 23 | } |