Marvell Sheevaplug Board support
[u-boot-kw.git] / common / exports.c
blobec4656bfbd172116be925a860cccb84d1c23ca77
1 #include <common.h>
2 #include <exports.h>
4 DECLARE_GLOBAL_DATA_PTR;
6 static void dummy(void)
10 unsigned long get_version(void)
12 return XF_VERSION;
15 void jumptable_init (void)
17 int i;
19 gd->jt = (void **) malloc (XF_MAX * sizeof (void *));
20 for (i = 0; i < XF_MAX; i++)
21 gd->jt[i] = (void *) dummy;
23 gd->jt[XF_get_version] = (void *) get_version;
24 gd->jt[XF_malloc] = (void *) malloc;
25 gd->jt[XF_free] = (void *) free;
26 gd->jt[XF_getenv] = (void *) getenv;
27 gd->jt[XF_setenv] = (void *) setenv;
28 gd->jt[XF_get_timer] = (void *) get_timer;
29 gd->jt[XF_simple_strtoul] = (void *) simple_strtoul;
30 gd->jt[XF_udelay] = (void *) udelay;
31 gd->jt[XF_simple_strtol] = (void *) simple_strtol;
32 gd->jt[XF_strcmp] = (void *) strcmp;
33 #if defined(CONFIG_I386) || defined(CONFIG_PPC)
34 gd->jt[XF_install_hdlr] = (void *) irq_install_handler;
35 gd->jt[XF_free_hdlr] = (void *) irq_free_handler;
36 #endif /* I386 || PPC */
37 #if defined(CONFIG_CMD_I2C)
38 gd->jt[XF_i2c_write] = (void *) i2c_write;
39 gd->jt[XF_i2c_read] = (void *) i2c_read;
40 #endif