mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
After finishing a later patch in this series, I discovered I had neglected to update the list of declarations in exports.h to match. But then I realized I wasn't the first to do that. Use the existing mechanism and DRY it out. Signed-off-by: Rasmus Villemoes <ravi@prevas.dk> Reviewed-by: Tom Rini <trini@konsulko.com>
50 lines
956 B
C
50 lines
956 B
C
#ifndef __EXPORTS_H__
|
|
#define __EXPORTS_H__
|
|
|
|
#include <irq_func.h>
|
|
#include <asm/global_data.h>
|
|
#include <linux/delay.h>
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#ifdef CONFIG_PHY_AQUANTIA
|
|
#include <env.h>
|
|
#include <phy_interface.h>
|
|
#endif
|
|
|
|
#include <irq_func.h>
|
|
|
|
struct cmd_tbl;
|
|
struct spi_slave;
|
|
|
|
/**
|
|
* jumptable_init() - Set up the jump table for use by the API
|
|
*
|
|
* It is called during the generic post-relocation init sequence.
|
|
*
|
|
* Return: 0 if OK
|
|
*/
|
|
int jumptable_init(void);
|
|
|
|
/* These are declarations of exported functions available in C code */
|
|
#define EXPORT_FUNC(impl, res, func, ...) res func(__VA_ARGS__);
|
|
#include <_exports.h>
|
|
#undef EXPORT_FUNC
|
|
|
|
void app_startup(char * const *);
|
|
|
|
#endif /* ifndef __ASSEMBLY__ */
|
|
|
|
struct jt_funcs {
|
|
#define EXPORT_FUNC(impl, res, func, ...) res(*func)(__VA_ARGS__);
|
|
#include <_exports.h>
|
|
#undef EXPORT_FUNC
|
|
};
|
|
|
|
#define XF_VERSION 9
|
|
|
|
#if defined(CONFIG_X86)
|
|
extern gd_t *global_data;
|
|
#endif
|
|
|
|
#endif /* __EXPORTS_H__ */
|