exports.c 623 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include <common.h>
  2. #include <command.h>
  3. #include <exports.h>
  4. #include <malloc.h>
  5. #include <spi.h>
  6. #include <i2c.h>
  7. #include <asm/global_data.h>
  8. DECLARE_GLOBAL_DATA_PTR;
  9. __attribute__((unused)) static void dummy(void)
  10. {
  11. }
  12. unsigned long get_version(void)
  13. {
  14. return XF_VERSION;
  15. }
  16. #define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f;
  17. #ifndef CONFIG_PHY_AQUANTIA
  18. # define mdio_get_current_dev dummy
  19. # define phy_find_by_mask dummy
  20. # define mdio_phydev_for_ethname dummy
  21. # define miiphy_set_current_dev dummy
  22. #endif
  23. int jumptable_init(void)
  24. {
  25. gd->jt = malloc(sizeof(struct jt_funcs));
  26. #include <_exports.h>
  27. return 0;
  28. }